/* ai-agent.css - Weekend Explore AI Travel Assistant Widget */

:root {
  --wai-primary: #8338EC;
  --wai-primary-dark: #6C2BD9;
  --wai-primary-light: #f3f0ff;
  --wai-dot-inactive: #e0d4f7;
  --wai-text-dark: #1e293b;
  --wai-text-muted: #64748b;
  --wai-border: #e2e8f0;
  --wai-bg-white: #ffffff;
  --wai-font: 'Outfit', sans-serif;
}

/* Reset for widget elements */
.wai-widget-container * {
  box-sizing: border-box;
  font-family: var(--wai-font);
  margin: 0;
  padding: 0;
}

/* 1. Floating Trigger Badge */
/* 1. Floating Trigger Badge with Alive AI Agent Movement */
.wai-trigger-badge {
  /* Hardware acceleration for mobile performance */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  background: linear-gradient(135deg, #5850ec 0%, #6839e6 48%, #7c22e8 100%);
  background-size: 200% 200%;
  color: #ffffff;
  padding: 8px 12px 8px 8px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(104, 57, 230, 0.48), 0 2px 10px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  user-select: none;
  animation: waiAttentionPulse 3s infinite ease-in-out, waiBgShift 8s infinite ease-in-out;
}

.wai-trigger-badge:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 40px rgba(104, 57, 230, 0.65), 0 6px 16px rgba(0, 0, 0, 0.25), 0 0 24px rgba(124, 34, 232, 0.45);
  border-color: rgba(255, 255, 255, 0.7);
}

/* AI Agent Mascot Housing */
.wai-trigger-sparkle-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18), inset 0 0 8px rgba(255, 255, 255, 0.15);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.wai-trigger-badge:hover .wai-trigger-sparkle-circle {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
}

/* SVG AI Robot Mascot Character & Alive Movements */
.wai-robot-mascot-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  animation: waiRobotLevitate 2.8s infinite ease-in-out;
}

.wai-trigger-badge:hover .wai-robot-mascot-svg {
  animation: waiRobotExcited 0.7s infinite ease-in-out;
}

/* Robot Eye Blinking Animation */
.wai-robot-eyes-group {
  transform-origin: 16px 15.2px;
  animation: waiRobotBlink 3.4s infinite ease-in-out;
}

/* Antenna Glowing & Radar Waves */
.wai-antenna-dot {
  animation: waiAntennaBeam 2s infinite ease-in-out;
}

.wai-antenna-pulse-wave {
  transform-origin: 16px 2.5px;
  animation: waiAntennaRadar 2s infinite ease-out;
}

/* Orbiting Sparkle Star */
.wai-orbit-spark {
  transform-origin: 26px 5.8px;
  animation: waiOrbitSparkle 2.4s infinite ease-in-out;
}

.wai-trigger-divider {
  width: 1.5px;
  height: 24px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 12px 0 10px;
  border-radius: 2px;
}

/* Typewriter Dynamic Agent Text */
.wai-trigger-text {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-width: 115px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.wai-type-text {
  display: inline-block;
}

.wai-type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: #ffffff;
  margin-left: 2px;
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
  animation: waiCursorBlink 0.9s infinite steps(2, start);
  vertical-align: middle;
}

/* Button Arrow Highlight & Attention-Seeking Animation */
.wai-trigger-arrow-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: arrowPulseSlide 0.8s infinite ease-in-out;
}

.wai-trigger-badge:hover .wai-trigger-arrow-circle {
  animation: none;
  transform: scale(1.15) translateX(4px);
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.8), 0 0 25px rgba(104, 57, 230, 0.5);
}

.wai-trigger-badge:hover .wai-trigger-arrow-circle svg {
  stroke: #6839e6;
}

/* 2. Chat Window (Desktop) */
.wai-chat-window {
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 80vh;
  max-height: 580px;
  z-index: 99999;
  border-radius: 20px;
  background-color: var(--wai-bg-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none; /* Hidden by default, toggled via JS */
  flex-direction: column;
  overflow: hidden;
  animation: weekendAiSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wai-chat-window.wai-open {
  display: flex;
}

/* 3. Chat Header */
.wai-header {
  background: linear-gradient(135deg, var(--wai-primary), var(--wai-primary-dark));
  color: var(--wai-bg-white);
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: 20px 20px 0 0;
}

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

.wai-agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wai-agent-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.wai-close-btn {
  background: transparent;
  border: none;
  color: var(--wai-bg-white);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.wai-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 4. Chat Body / Messages */
.wai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  background-color: #f8fafc;
}

/* Smooth scrollbar for chat body */
.wai-chat-body::-webkit-scrollbar {
  width: 6px;
}
.wai-chat-body::-webkit-scrollbar-track {
  background: transparent;
}
.wai-chat-body::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

.wai-message {
  max-width: 95%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: weekendAiFadeIn 0.3s ease forwards;
}

.wai-message-ai {
  align-self: flex-start;
  background-color: var(--wai-primary-light);
  color: var(--wai-text-dark);
  border-radius: 16px 16px 16px 4px;
  width: 100%;
}

.wai-message-user {
  align-self: flex-end;
  background-color: var(--wai-primary);
  color: var(--wai-bg-white);
  border-radius: 16px 16px 4px 16px;
  max-width: 85%;
}

/* 5. Option Chips/Buttons */
.wai-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.wai-chip {
  background-color: var(--wai-bg-white);
  color: var(--wai-primary);
  border: 1.5px solid var(--wai-primary);
  border-radius: 24px; /* pill */
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: weekendAiChipIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: scale(0.8);
}

/* Stagger chip animations */
.wai-chip:nth-child(1) { animation-delay: 0.1s; }
.wai-chip:nth-child(2) { animation-delay: 0.15s; }
.wai-chip:nth-child(3) { animation-delay: 0.2s; }
.wai-chip:nth-child(4) { animation-delay: 0.25s; }
.wai-chip:nth-child(5) { animation-delay: 0.3s; }
.wai-chip:nth-child(n+6) { animation-delay: 0.35s; }

.wai-chip:hover, .wai-chip.wai-selected {
  background-color: var(--wai-primary);
  color: var(--wai-bg-white);
}

/* 6. Progress Dots */
.wai-progress-container {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--wai-border);
}

.wai-progress-dots {
  display: flex;
  gap: 8px;
}

.wai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--wai-dot-inactive);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.wai-dot-active {
  background-color: var(--wai-primary);
  transform: scale(1.2);
}

/* 7. Typing Indicator */
.wai-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background-color: var(--wai-primary-light);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
  width: fit-content;
  margin-bottom: 8px;
  animation: weekendAiFadeIn 0.3s ease forwards;
}

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

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

/* 8. Itinerary Result Renderer */
.wai-itinerary {
  background: var(--wai-bg-white);
  border: 1px solid var(--wai-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
  animation: weekendAiFadeIn 0.4s ease forwards;
}

.wai-itinerary-title {
  font-size: 1.1rem;
  color: var(--wai-text-dark);
  font-weight: 600;
  margin-bottom: 16px;
}

.wai-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.wai-timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--wai-border);
}

.wai-timeline-item {
  display: flex;
  gap: 12px;
  position: relative;
}

.wai-time-slot {
  width: 48px;
  font-size: 0.8rem;
  color: var(--wai-text-muted);
  font-weight: 500;
  padding-top: 2px;
  text-align: right;
  flex-shrink: 0;
}

.wai-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--wai-primary);
  margin-top: 4px;
  border: 2px solid var(--wai-bg-white);
  z-index: 1;
  flex-shrink: 0;
}

.wai-timeline-content {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--wai-border);
  border-radius: 8px;
  padding: 12px;
}

.wai-timeline-content-title {
  font-weight: 600;
  color: var(--wai-text-dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.wai-timeline-content-desc {
  font-size: 0.85rem;
  color: var(--wai-text-muted);
  line-height: 1.4;
}

.wai-budget-card {
  margin-top: 14px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.wai-budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--wai-text-muted);
  width: 100%;
  box-sizing: border-box;
}

.wai-budget-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--wai-text-dark);
  font-size: 0.9rem;
  border-top: 1px solid var(--wai-border);
  padding-top: 8px;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.wai-budget-label {
  font-weight: 500;
  color: var(--wai-text-dark);
  font-size: 0.9rem;
}

.wai-budget-amount {
  font-weight: 700;
  color: var(--wai-primary);
  font-size: 1.05rem;
}

.wai-btn-outline {
  display: block;
  width: 100%;
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--wai-primary);
  color: var(--wai-primary);
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.wai-btn-outline:hover {
  background: var(--wai-primary);
  color: var(--wai-bg-white);
}

/* 11. Language Selector */
.wai-language-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.wai-lang-chip {
  text-align: center;
  padding: 10px 4px;
  border-radius: 12px;
  border: 1px solid var(--wai-border);
  background: var(--wai-bg-white);
  color: var(--wai-text-dark);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.wai-lang-chip:hover {
  border-color: var(--wai-primary);
  color: var(--wai-primary);
}

/* 10. Animations */
@keyframes weekendAiFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes weekendAiSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes weekendAiPulse {
  0% { box-shadow: 0 0 0 0 rgba(131, 56, 236, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(131, 56, 236, 0); }
  100% { box-shadow: 0 0 0 0 rgba(131, 56, 236, 0); }
}

@keyframes weekendAiBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

@keyframes weekendAiChipIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes arrowPulseSlide {
  0%, 100% {
    transform: translateX(0) scale(1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
  }
  50% {
    transform: translateX(6px) scale(1.1);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
  }
}

@keyframes waiAttentionPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 28px rgba(104, 57, 230, 0.48), 0 2px 10px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(104, 57, 230, 0.45);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 36px rgba(104, 57, 230, 0.62), 0 4px 14px rgba(0, 0, 0, 0.22), 0 0 0 9px rgba(104, 57, 230, 0);
  }
}

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

/* AI Robot Floating Movement */
@keyframes waiRobotLevitate {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(2deg);
  }
}

@keyframes waiRobotExcited {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1.08);
  }
  50% {
    transform: translateY(-4px) rotate(-3deg) scale(1.12);
  }
}

/* Robot Eyes Natural Blinking */
@keyframes waiRobotBlink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  94%, 96% {
    transform: scaleY(0.12);
  }
}

/* Antenna Glowing & Radar Waves */
@keyframes waiAntennaBeam {
  0%, 100% {
    fill: #38bdf8;
    filter: drop-shadow(0 0 2px #38bdf8);
  }
  50% {
    fill: #ec4899;
    filter: drop-shadow(0 0 5px #ec4899);
  }
}

@keyframes waiAntennaRadar {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Orbiting Star Sparkle */
@keyframes waiOrbitSparkle {
  0%, 100% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.3) rotate(35deg);
    opacity: 1;
    filter: drop-shadow(0 0 5px #facc15);
  }
}

/* Typewriter Blinking Cursor */
@keyframes waiCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes waiSparkleGlow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(10deg);
  }
}

/* 9. Mobile Responsive */
.wai-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wai-backdrop.wai-show {
  opacity: 1;
}

@media (max-width: 600px) {
  .wai-trigger-badge {
    bottom: 16px;
    right: 16px;
    padding: 6px 10px 6px 6px;
  }
  
  .wai-trigger-sparkle-circle {
    width: 36px;
    height: 36px;
  }

  .wai-robot-mascot-svg {
    width: 24px;
    height: 24px;
  }
  
  .wai-trigger-text {
    font-size: 0.95rem;
    min-width: 95px;
  }
  
  .wai-trigger-arrow-circle {
    width: 28px;
    height: 28px;
    margin-left: 8px;
  }
  
  .wai-chat-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    animation: weekendAiSlideUp 0.3s ease-out forwards;
  }
  
  /* Show backdrop on mobile when chat is open */
  .wai-chat-window.wai-open ~ .wai-backdrop {
    display: block;
  }

  .wai-language-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 10. Sliding Graph & Interactive Sliders --- */
.wai-slider-card {
  background: #ffffff;
  border: 1.5px solid rgba(131, 56, 236, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 10px;
  box-shadow: 0 4px 20px rgba(131, 56, 236, 0.08);
  animation: weekendAiChipIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  max-width: 100%;
}

.wai-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wai-slider-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wai-slider-value-badge {
  background: rgba(131, 56, 236, 0.1);
  color: #8338EC;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(131, 56, 236, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.wai-slider-subtext {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 12px;
  min-height: 18px;
}

/* Histogram Graph */
.wai-graph-container {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
  padding: 0 2px 4px 2px;
  margin-bottom: 6px;
}

.wai-graph-bar {
  flex: 1;
  background: #e2e8f0;
  border-radius: 4px 4px 1px 1px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, opacity 0.15s ease;
  min-width: 4px;
}

.wai-graph-bar:hover {
  transform: scaleY(1.1);
  opacity: 0.85;
}

.wai-graph-bar.wai-bar-active {
  background: linear-gradient(180deg, #8338EC 0%, #3a86ff 100%);
  box-shadow: 0 2px 6px rgba(131, 56, 236, 0.25);
}

/* Range input */
.wai-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  margin: 6px 0 10px 0;
  position: relative;
  transition: background 0.2s ease;
}

.wai-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #8338EC;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(131, 56, 236, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wai-range-slider::-webkit-slider-thumb:hover,
.wai-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
  cursor: grabbing;
  box-shadow: 0 4px 14px rgba(131, 56, 236, 0.5);
}

.wai-range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #8338EC;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(131, 56, 236, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wai-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 12px;
}

.wai-slider-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.wai-slider-preset-chip {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wai-slider-preset-chip:hover {
  border-color: #8338EC;
  color: #8338EC;
  background: rgba(131, 56, 236, 0.05);
}

.wai-slider-preset-chip.active {
  background: #8338EC;
  color: #ffffff;
  border-color: #8338EC;
}

.wai-slider-confirm-btn {
  width: 100%;
  background: linear-gradient(135deg, #8338EC 0%, #3a86ff 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(131, 56, 236, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wai-slider-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(131, 56, 236, 0.35);
}

.wai-slider-card.wai-card-disabled {
  opacity: 0.65;
  pointer-events: none;
}

/* --- Smart Movie Recommendation Component Styles --- */
.wai-movie-recommendations-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
  width: 100%;
}

.wai-movie-notice-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #92400e;
}

.wai-movie-card {
  background: #ffffff;
  border: 1.5px solid rgba(131, 56, 236, 0.2);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(131, 56, 236, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.wai-movie-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(131, 56, 236, 0.16);
  border-color: #8338EC;
}

.wai-movie-card.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.03);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.wai-movie-card-header {
  display: flex;
  gap: 12px;
}

.wai-movie-poster-thumb {
  width: 68px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  background: #f1f5f9;
}

.wai-movie-header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wai-movie-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.wai-movie-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.wai-movie-badge-cert {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.wai-movie-badge-lang {
  background: rgba(131, 56, 236, 0.12);
  color: #8338EC;
}

.wai-movie-badge-rating {
  background: #fef3c7;
  color: #b45309;
}

.wai-movie-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.wai-movie-card-genre {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 2px;
}

.wai-movie-theatre-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}

.wai-movie-theatre-name {
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wai-movie-showtime-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(131, 56, 236, 0.08);
  color: #8338EC;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}

.wai-movie-price-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #334155;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
}

.wai-movie-price-label {
  font-size: 0.7rem;
  color: #059669;
  font-weight: 600;
}

.wai-movie-price-amount {
  font-weight: 700;
  color: #047857;
}

.wai-movie-actions-row {
  display: flex;
  width: 100%;
  margin-top: 2px;
}

.wai-bms-link-btn {
  flex: 1;
  background: #f84464;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.wai-bms-link-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.wai-select-movie-btn {
  width: 100%;
  background: linear-gradient(135deg, #8338EC 0%, #3a86ff 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.wai-select-movie-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.wai-skip-movie-btn {
  width: 100%;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.wai-skip-movie-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Budget breakdown enhancements */
.wai-budget-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wai-budget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #475569;
}

.wai-budget-row-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wai-budget-est-tag {
  font-size: 0.65rem;
  background: #e2e8f0;
  color: #64748b;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
}

.wai-budget-remaining-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 4px;
}

/* Accessible Free Alternatives Card */
.wai-free-alternatives-card {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.13) 100%);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.06);
}

.wai-free-alt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 6px;
}

.wai-free-alt-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #10b981;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.wai-free-alt-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.79rem;
  color: #1e293b;
  margin-top: 7px;
  line-height: 1.42;
}

.wai-free-alt-bullet {
  font-size: 0.95rem;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ============================================================ */
/* --- Zero-Rupee Situational Mode Styles ---                    */
/* ============================================================ */

.wai-zero-rupee-wrapper {
  margin-top: 10px;
  animation: waiFadeSlideIn 0.4s ease both;
}

.wai-zero-rupee-header {
  background: linear-gradient(135deg, rgba(131,56,236,0.08) 0%, rgba(16,185,129,0.08) 100%);
  border: 1px solid rgba(131,56,236,0.18);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.wai-zero-rupee-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--wai-primary);
  margin-bottom: 4px;
}

.wai-zero-rupee-subtitle {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
}

.wai-zero-rupee-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.wai-zero-rupee-chip {
  font-family: var(--wai-font);
  font-size: 0.76rem;
  font-weight: 500;
  color: #334155;
  background: var(--wai-bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 13px;
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1.3;
}

.wai-zero-rupee-chip:hover:not(:disabled) {
  background: rgba(131,56,236,0.07);
  border-color: var(--wai-primary);
  color: var(--wai-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(131,56,236,0.12);
}

.wai-zero-rupee-chip-selected {
  background: var(--wai-primary) !important;
  color: #ffffff !important;
  border-color: var(--wai-primary) !important;
  font-weight: 600;
}

.wai-zero-rupee-chip:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* Response Card */
.wai-zero-rupee-card {
  background: var(--wai-bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 4px;
  animation: waiFadeSlideIn 0.35s ease both;
}

.wai-zero-rupee-joke {
  font-size: 0.84rem;
  font-weight: 600;
  color: #7c3aed;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(131,56,236,0.18);
}

.wai-zero-rupee-plan {
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.6;
}

.wai-zero-rupee-rule-note {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(131,56,236,0.06);
  border-left: 3px solid var(--wai-primary);
  border-radius: 4px;
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.4;
  font-weight: 500;
}

.wai-zero-rupee-urgent-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(239,68,68,0.07);
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #991b1b;
  line-height: 1.45;
  font-weight: 600;
}

.wai-zero-rupee-footer {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(131,56,236,0.05);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #334155;
  animation: waiFadeSlideIn 0.3s ease both;
}

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


/* 8. Itinerary Result Renderer (Redesigned Compact Mobile-First) */
.wai-itinerary {
  background: var(--wai-bg-white, #ffffff);
  border: 1px solid var(--wai-border, #e2e8f0);
  border-radius: 14px;
  padding: 12px;
  margin-top: 6px;
  box-shadow: 0 4px 16px rgba(131, 56, 236, 0.06);
  animation: weekendAiFadeIn 0.3s ease forwards;
  box-sizing: border-box;
  width: 100%;
}

.wai-itin-header {
  margin-bottom: 8px;
}

.wai-itinerary-title {
  font-size: 0.96rem;
  color: var(--wai-text-dark, #1e293b);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wai-itin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wai-itin-pill {
  font-size: 0.68rem;
  background: rgba(131, 56, 236, 0.08);
  color: var(--wai-primary, #8338EC);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Compact Budget Summary Card (Placed at the TOP) */
.wai-budget-summary-card {
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.04) 0%, rgba(58, 134, 239, 0.05) 100%);
  border: 1px solid rgba(131, 56, 236, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.wai-budget-metric-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.wai-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wai-metric-label {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.wai-metric-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1px;
}

.wai-metric-val.primary {
  color: var(--wai-primary, #8338EC);
}

.wai-metric-val.exact {
  color: #059669;
}

.wai-metric-val.positive {
  color: #0284c7;
}

.wai-metric-divider {
  width: 1px;
  height: 22px;
  background: rgba(131, 56, 236, 0.15);
}

.wai-budget-progress-track {
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0 6px;
}

.wai-budget-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8338EC, #3A86EF);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.wai-budget-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 2px;
}

.wai-budget-cat-pill {
  font-size: 0.65rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1px 6px;
  border-radius: 6px;
  color: #475569;
  font-weight: 500;
}

/* Chronological Stop Cards (Mobile-First Stacked) */
.wai-stops-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.wai-stop-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.wai-stop-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(131, 56, 236, 0.08);
  border-color: rgba(131, 56, 236, 0.25);
}

/* Time above card content for mobile-first scanning */
.wai-stop-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.wai-stop-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wai-primary, #8338EC);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(131, 56, 236, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: -0.1px;
}

.wai-stop-price {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.wai-stop-price.free {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
}

.wai-stop-price.paid {
  color: var(--wai-primary, #8338EC);
  background: rgba(131, 56, 236, 0.08);
}

.wai-stop-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wai-stop-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wai-stop-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  line-height: 1;
}

.wai-stop-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.wai-stop-desc {
  font-size: 0.76rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  padding-left: 2px;
}

/* Transit connector between stops */
.wai-transit-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.67rem;
  color: #94a3b8;
  font-weight: 500;
  margin: -3px 0;
}

.wai-transit-connector::before,
.wai-transit-connector::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Concise notes */
.wai-itin-note {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}



/* Stop Card Footer & Direct Map Link */
.wai-stop-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed #f1f5f9;
}

.wai-stop-map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8338EC;
  text-decoration: none;
  background: rgba(131, 56, 236, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
  transition: all 0.18s ease;
}

.wai-stop-map-link:hover {
  background: #8338EC;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Consolidated Trip Navigation Card at Last */
.wai-nav-card {
  background: #ffffff;
  border: 1px solid rgba(131, 56, 236, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(131, 56, 236, 0.06);
}

.wai-nav-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.wai-nav-card-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.wai-nav-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.wai-nav-card-sub {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
}

.wai-nav-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.wai-nav-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wai-nav-link-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.wai-nav-link-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.wai-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(131, 56, 236, 0.12);
  color: #8338EC;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wai-nav-item-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wai-nav-go-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #8338EC;
  background: #ffffff;
  border: 1px solid rgba(131, 56, 236, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.wai-nav-go-pill:hover {
  background: #8338EC;
  color: #ffffff;
  border-color: #8338EC;
}

.wai-nav-full-route-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, #8338EC 0%, #3b82f6 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(131, 56, 236, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease;
  box-sizing: border-box;
}

.wai-nav-full-route-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  color: #ffffff;
}

/* Manual budget input row & action buttons */
.wai-budget-manual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 6px 0;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.wai-budget-manual-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.wai-budget-input-wrapper {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
}

.wai-budget-rupee-sign {
  font-size: 0.85rem;
  font-weight: 700;
  color: #8338EC;
}

.wai-budget-manual-input {
  width: 75px;
  border: none;
  outline: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  font-family: inherit;
  background: transparent;
}

.wai-budget-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.wai-slider-sub-btn {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.wai-slider-sub-btn:hover {
  color: #1e293b;
  border-color: #94a3b8;
  background: #f1f5f9;
}

/* Live Weather Selector Card */
.wai-weather-selector-card {
  width: 100%;
  box-sizing: border-box;
  animation: waiSlideUp 0.25s ease-out;
}

.wai-live-weather-card {
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(131, 56, 236, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.wai-lw-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8338EC;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.wai-lw-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: waiPulseGreen 1.8s infinite;
}

@keyframes waiPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.wai-lw-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wai-lw-visual {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wai-lw-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.wai-lw-temp {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
}

.wai-lw-city {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.wai-lw-desc {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  text-align: right;
}

.wai-lw-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #8338EC 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(131, 56, 236, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.wai-lw-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.wai-lw-action-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.wai-weather-divider-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  margin: 8px 0;
}

.wai-weather-divider-line::before,
.wai-weather-divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.wai-weather-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.wai-weather-manual-chip {
  width: 100%;
  justify-content: center;
  font-size: 0.78rem !important;
  padding: 7px 10px !important;
}

.wai-lw-rain-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════
   CREATIVE LIVE JOURNEY NAVIGATOR (METRO ROUTE HUD)
   ═══════════════════════════════════════════════════════ */

.wai-tracker-section {
  margin: 16px 0 12px;
  border-radius: 18px;
  background: linear-gradient(165deg, #0f0f23 0%, #150f30 50%, #0d0a1a 100%);
  border: 1.5px solid rgba(131, 56, 236, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(131, 56, 236, 0.15);
  overflow: hidden;
  font-family: inherit;
}

/* Header */
.wai-tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wai-tracker-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wai-tracker-icon {
  font-size: 1.5rem;
  background: rgba(131, 56, 236, 0.2);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(131, 56, 236, 0.35);
}

.wai-tracker-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.wai-tracker-sub {
  font-size: 0.72rem;
  color: rgba(226, 217, 243, 0.65);
  margin-top: 2px;
}

.wai-tracker-badge {
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.3), rgba(58, 134, 239, 0.3));
  border: 1.5px solid rgba(131, 56, 236, 0.6);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #c084fc;
}

.wai-tracker-done-num {
  color: #34d399;
  font-size: 1rem;
}

/* Futuristic Satellite Status Strip */
.wai-gps-radar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: rgba(131, 56, 236, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wai-gps-radar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.wai-gps-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: wai-gps-pulse 1.8s infinite;
}

@keyframes wai-gps-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.wai-gps-signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.wai-gps-signal-bars span {
  width: 3px;
  background: #34d399;
  border-radius: 1px;
}
.wai-gps-signal-bars span:nth-child(1) { height: 3px; }
.wai-gps-signal-bars span:nth-child(2) { height: 6px; }
.wai-gps-signal-bars span:nth-child(3) { height: 9px; }
.wai-gps-signal-bars span:nth-child(4) { height: 12px; }

/* Progress HUD */
.wai-tracker-progress-wrap {
  padding: 12px 18px 10px;
}

.wai-tracker-progress-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.wai-tracker-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8338EC, #3A86EF, #34d399);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

.wai-tracker-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.72rem;
}

.wai-tracker-progress-pct {
  color: #34d399;
  font-weight: 700;
}

.wai-tracker-next-dest {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Connected Route Timeline */
.wai-route-stream {
  padding: 8px 16px 14px;
  display: flex;
  flex-direction: column;
}

.wai-route-node {
  display: flex;
  align-items: stretch;
  gap: 12px;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Waypoint Rail & Line */
.wai-node-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
}

.wai-node-pin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1e163d;
  border: 2px solid rgba(131, 56, 236, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.wai-node-number {
  font-size: 0.72rem;
  font-weight: 800;
  color: #e2d9f3;
  transition: all 0.2s ease;
}

.wai-node-check-svg {
  display: none;
  stroke: #ffffff;
}

.wai-node-track-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, rgba(131, 56, 236, 0.6) 0%, rgba(131, 56, 236, 0.2) 100%);
  margin: 3px 0;
  min-height: 26px;
}

/* Active Node: Pulsing Beacon */
.wai-route-node--active .wai-node-pin {
  border-color: #38bdf8;
  background: #0d2745;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.wai-route-node--active .wai-node-number {
  color: #38bdf8;
}

.wai-node-beacon {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1.5px solid #38bdf8;
  opacity: 0;
  pointer-events: none;
}

.wai-route-node--active .wai-node-beacon {
  animation: wai-beacon-pulse 1.8s infinite;
}

@keyframes wai-beacon-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Completed Node: Emerald Green Checked */
.wai-route-node--done .wai-node-pin {
  background: #10b981 !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5) !important;
}

.wai-route-node--done .wai-node-number {
  display: none;
}

.wai-route-node--done .wai-node-check-svg {
  display: block;
}

.wai-route-node--done .wai-node-track-line {
  background: #10b981;
}

.wai-route-node--done .wai-node-title {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Stop Card Body */
.wai-node-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.wai-route-node:hover .wai-node-card {
  background: rgba(131, 56, 236, 0.12);
  border-color: rgba(131, 56, 236, 0.35);
  transform: translateX(2px);
}

.wai-node-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.wai-node-time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.wai-tracker-distance-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.wai-tracker-distance-badge.arrived {
  color: #34d399;
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.4);
}

.wai-node-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  max-width: 220px;
}

.wai-node-actions {
  flex-shrink: 0;
  margin-left: 8px;
}

.wai-node-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(131, 56, 236, 0.2);
  border: 1px solid rgba(131, 56, 236, 0.4);
  color: #c084fc;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wai-node-nav-link:hover {
  background: #8338EC;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(131, 56, 236, 0.4);
}

/* Floating Dynamic Island Arrival Banner */
.wai-arrival-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-40px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(6, 78, 59, 0.95));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border: 1.5px solid #34d399;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(52, 211, 153, 0.35);
  padding: 12px 20px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000002;
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.wai-arrival-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wai-toast-icon {
  font-size: 1.3rem;
  animation: wai-toast-wiggle 0.5s ease;
}

@keyframes wai-toast-wiggle {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.wai-toast-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #34d399;
}

.wai-toast-name {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Celebration banner */
.wai-tracker-celebration {
  margin: 6px 16px 16px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(16, 185, 129, 0.08));
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.2);
  animation: wai-celeb-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wai-celeb-pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wai-celeb-icon {
  font-size: 1.8rem;
}

.wai-celeb-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #34d399;
}

.wai-celeb-desc {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

@media (max-width: 440px) {
  .wai-node-title {
    max-width: 150px;
  }
}


.wai-view-profile-btn {
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.35), rgba(58, 134, 239, 0.35));
  border: 1px solid rgba(131, 56, 236, 0.6);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  margin-right: 6px;
}
.wai-view-profile-btn:hover {
  background: linear-gradient(135deg, #8338EC, #3A86EF);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(131, 56, 236, 0.4);
}
