/* ========================================
   GLASSMORPHISM DESIGN SYSTEM
   Base Theme: Dark (Matches existing brand)
   ======================================== */

/* Reset only for Chat Components to ensure layout stability */
.glass-hero, 
.glass-chat-wrapper, 
.glass-chat-box, 
.chat-messages-area, 
.input-group,
.glass-input,
.glass-nav {
  box-sizing: border-box;
}

:root {
  /* Inherit Brand Colors */
  --glass-primary: #5a51de;
  --glass-secondary: #d95e8c;
  --glass-accent: #af9aff;
  
  /* Glass Base Colors */
  --glass-bg-dark: #0f1117;
  --glass-bg-darker: #050608;
  --glass-surface: rgba(30, 33, 42, 0.6);
  --glass-surface-hover: rgba(45, 48, 58, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  
  /* Text */
  --glass-text-main: #e8eaed;
  --glass-text-muted: #9aa0a6;
  
  /* Effects */
  --glass-blur: 16px;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --neon-glow: 0 0 20px rgba(90, 81, 222, 0.4);
}

body {
  background-color: var(--glass-bg-dark);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(90, 81, 222, 0.12), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(217, 94, 140, 0.12), transparent 25%);
  color: var(--glass-text-main);
  font-family: 'Inter', sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   FLOATING GLASS NAVBAR
   Sits in middle, curved edges, detached
   ======================================== */
.glass-nav-container {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none; /* Allow clicking through empty space */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Navbar hidden state when scrolling down */
.glass-nav-container.nav-hidden {
  transform: translateY(-150%);
  opacity: 0;
}

.glass-nav {
  pointer-events: auto;
  background: rgba(15, 17, 23, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: none;
  border-radius: 50px; /* Highly rounded */
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 600px;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

.glass-nav:hover {
  background: rgba(20, 25, 35, 0.8);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

/* Nav Items */
.logo-link {
  transition: transform 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-link:hover .glass-logo {
  filter: drop-shadow(0 0 12px rgba(90, 81, 222, 0.7)) brightness(1.1);
}

.glass-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(90, 81, 222, 0.5));
  transition: filter 0.2s ease;
}

.glass-links {
  display: flex;
  gap: 1.5rem;
}

.glass-link {
  color: var(--glass-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.glass-link:hover, .glass-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.glass-btn {
  background: linear-gradient(135deg, var(--glass-primary), var(--glass-secondary));
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(90, 81, 222, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.glass-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(90, 81, 222, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Quick prompt buttons - bubbly pills */
.quick-prompt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--glass-text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.04);
}

.quick-prompt-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--glass-text-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.glass-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile menu button - hidden on desktop */
.mobile-menu-btn {
  display: none;
}

.mobile-menu-dropdown {
  display: none;
}

/* ========================================
   HERO SECTION (Agent Centric)
   ======================================== */
.glass-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1rem 4rem;
  text-align: center;
  position: relative;
  transition: padding 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90, 81, 222, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body.chat-mode-active .hero-glow {
  width: 100vw;
  height: 100vh;
  opacity: 0.3;
  transition: all 0.8s ease;
}

/* Re-layout the hero section to be a full-screen app */
body.chat-mode-active .glass-hero {
  justify-content: flex-start; 
  padding: 120px 1rem 1rem; /* Smooth slide up to clear navbar */
  height: 100vh;
  overflow: hidden; 
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #b4b4b4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}

.hero-title span {
  background: linear-gradient(135deg, #af9aff, #ff82b1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--glass-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ========================================
   HERO LOGO
   ======================================== */
.hero-logo {
  margin-bottom: 1.5rem;
}

.hero-logo-img {
  max-height: 100px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.3));
  transition: transform 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.02);
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--glass-text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

/* ========================================
   SEARCH BAR
   ======================================== */
.glass-search-container {
  display: flex;
  align-items: center;
  background: rgba(20, 23, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 60px;
  padding: 0.5rem;
  max-width: 700px;
  width: 95%;
  margin: 0 auto 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.glass-search-container:focus-within {
  box-shadow:
    0 8px 32px rgba(139, 92, 246, 0.25),
    0 4px 16px rgba(139, 92, 246, 0.15),
    0 0 0 2px rgba(139, 92, 246, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.search-input-group {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.5rem;
}

.glass-search-input {
  flex: 2;
  background: transparent;
  border: none;
  color: var(--glass-text-main);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  outline: none;
}

.glass-search-input::placeholder {
  color: var(--glass-text-muted);
}

.search-divider {
  width: 1px;
  height: 24px;
  background: var(--glass-border);
}

.glass-zip-input {
  width: 70px;
  background: transparent;
  border: none;
  color: var(--glass-text-main);
  font-size: 0.95rem;
  padding: 0.8rem 0.5rem;
  text-align: center;
  outline: none;
}

.glass-zip-input::placeholder {
  color: var(--glass-text-muted);
}

.glass-radius-select {
  background: transparent;
  border: none;
  color: var(--glass-text-main);
  font-size: 0.9rem;
  padding: 0.5rem;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.glass-radius-select option {
  background: #1a1d25;
  color: var(--glass-text-main);
}

.glass-search-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--glass-primary), var(--glass-accent));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.glass-search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.glass-search-btn:active {
  transform: scale(0.95);
}

.hero-disclaimer {
  font-size: 0.85rem;
  color: var(--glass-text-muted);
  margin-bottom: 2rem;
  opacity: 0.7;
}

/* Search Examples */
.search-examples {
  text-align: center;
  color: var(--glass-text-muted);
  font-size: 0.9rem;
}

.search-examples p {
  margin-bottom: 0.8rem;
}

.example-tags {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--glass-accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

/* Mobile responsive for search bar */
@media (max-width: 600px) {
  .glass-search-container {
    flex-direction: column;
    border-radius: 24px;
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .search-input-group {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  
  .glass-search-input {
    width: 100%;
    text-align: center;
  }
  
  .search-divider {
    display: none;
  }
  
  .glass-zip-input,
  .glass-radius-select {
    width: 100%;
    text-align: center;
  }
  
  .glass-search-btn {
    width: 100%;
    border-radius: 30px;
    height: 50px;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  .example-tags {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   GLASS CHAT INTERFACE
   ======================================== */
.glass-chat-wrapper {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 10;
  /* Flex setup for smooth transition */
  display: flex;
  flex-direction: column;
  /* Prepare for transition */
  max-height: 400px; 
  transition: max-height 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), max-width 0.5s ease;
}

.glass-chat-box {
  background: rgba(20, 23, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-chat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55),
              0 0 40px rgba(90, 81, 222, 0.15),
              inset 0 1px 0 rgba(255,255,255,0.06);
}

.glass-chat-box:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5),
              0 0 50px rgba(90, 81, 222, 0.25),
              inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Chat Sidebar - Glassmorphism */
.chat-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: rgba(18, 20, 26, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: none;
  box-shadow: 10px 0 50px rgba(0, 0, 0, 0.5), 0 0 80px rgba(90, 81, 222, 0.1);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.chat-sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: none;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #fff 0%, var(--glass-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.sidebar-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  color: var(--glass-text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.6rem 0.7rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--glass-text-main);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 20px;
  color: var(--glass-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.04);
}

.sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--glass-text-main);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.sidebar-btn.primary {
  background: linear-gradient(135deg, var(--glass-primary), var(--glass-secondary));
  color: white;
  box-shadow: 0 6px 25px rgba(90, 81, 222, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.sidebar-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(90, 81, 222, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.sidebar-btn i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.sidebar-history {
  flex: 1;
  overflow-y: auto;
}

.sidebar-history h4 {
  margin: 0 0 1rem 0;
  font-size: 0.7rem;
  color: var(--glass-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.history-empty {
  color: var(--glass-text-muted);
  font-size: 0.85rem;
  opacity: 0.5;
  font-style: italic;
}

.history-item {
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-radius: 16px;
  color: var(--glass-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--glass-text-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

.history-query {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  color: var(--glass-text-main);
}

.history-time {
  font-size: 0.7rem;
  color: var(--glass-text-muted);
  opacity: 0.6;
  margin-top: 0.3rem;
}

.history-item:hover .history-query {
  color: var(--glass-accent);
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
  position: fixed;
  top: 130px;
  left: 1.5rem;
  width: 50px;
  height: 50px;
  background: rgba(30, 33, 42, 0.75);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: none;
  border-radius: 50%;
  color: var(--glass-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

.sidebar-toggle-btn:hover {
  background: rgba(40, 44, 55, 0.9);
  color: var(--glass-accent);
  box-shadow: 0 10px 35px rgba(90, 81, 222, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: scale(1.1);
}

/* Search bar with active chat - glow effect */
.glass-chat-box.has-active-chat {
  border-color: rgba(175, 154, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(90, 81, 222, 0.2);
  animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
  0%, 100% { 
    border-color: rgba(175, 154, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(90, 81, 222, 0.15);
  }
  50% { 
    border-color: rgba(175, 154, 255, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(90, 81, 222, 0.3);
  }
}

/* Smooth message fade-in */
.msg {
  animation: msgFadeIn 0.3s ease-out;
}

.msg.ai {
  opacity: 1;
  transition: opacity 0.2s ease;
}

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

/* Strategy card fade-in */
.strategy-card {
  animation: cardSlideIn 0.4s ease-out;
  border: none !important;
  outline: none !important;
}

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

/* Disabled button state */
.glass-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.chat-messages-area {
  min-height: 0; /* Was 100px */
  max-height: 0; /* Start collapsed */
  overflow-y: hidden; /* Hide scrollbar when collapsed */
  padding: 0; /* Collapsed padding */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transition: all 0.5s ease;
}

.chat-messages-area.active {
  /* When active, we let the chat-mode-active rules control flex/height */
  /* This class just triggers visibility if not in chat mode (fallback) */
  opacity: 1;
  padding: 1rem;
  max-height: 400px; /* Fallback height if not full screen */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
}

/* Message Bubbles */
.msg {
  max-width: 80%;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.5;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.msg.ai {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--glass-text-main);
  padding-left: 0;
  max-width: 100%;
}

.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--glass-primary), var(--glass-secondary));
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 25px rgba(90, 81, 222, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Input Area */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.glass-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  color: white;
  font-size: 1.1rem;
  font-family: inherit;
  outline: none;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.send-btn {
  position: absolute;
  right: 0.75rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--glass-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.send-btn:hover {
  background: linear-gradient(135deg, var(--glass-primary), var(--glass-secondary));
  color: white;
  transform: scale(1.1) rotate(-10deg);
  box-shadow: 0 8px 30px rgba(90, 81, 222, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ========================================
   SECTIONS & GRIDS
   ======================================== */
.glass-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #fff, #b4b4b4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  width: 100%;
}

/* ========================================
   COMPARISON SECTION (UNIFIED)
   ======================================== */
.unified-comparison {
  display: flex;
  flex-direction: column;
  background: rgba(20, 23, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.comparison-scenario {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
}

.scenario-label {
  color: var(--glass-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  letter-spacing: 1px;
}

.scenario-text {
  color: #fff;
  font-style: italic;
  font-weight: 500;
}

.comparison-content-wrapper {
  display: flex;
  position: relative;
  align-items: stretch;
}

.comparison-half {
  flex: 1;
  padding: 3rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Traditional Side */
.comparison-half.traditional {
  background: rgba(10, 12, 16, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-half.traditional .comp-header {
  color: var(--glass-text-muted);
}

/* CarChase Side */
.comparison-half.carchase {
  background: radial-gradient(circle at top right, rgba(90, 81, 222, 0.15), transparent 70%);
}

.comp-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(175, 154, 255, 0.1), transparent 60%);
  pointer-events: none;
}

/* Header */
.comp-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.carchase .comp-header {
  background: linear-gradient(135deg, #fff 0%, #af9aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(175, 154, 255, 0.3);
}

.carchase .comp-header i {
  color: #af9aff; /* Icon color fallback */
}

/* Content Steps */
.comp-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--glass-text-main);
}

.step-item.highlight {
  background: rgba(90, 81, 222, 0.15);
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(175, 154, 255, 0.2);
  margin: -0.8rem 0; /* Negate padding impact on spacing */
}

.traditional .step-item {
  opacity: 0.7;
}

.step-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.traditional .step-marker {
  background: rgba(255, 255, 255, 0.05);
  color: var(--glass-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carchase .step-marker {
  background: linear-gradient(135deg, var(--glass-primary), var(--glass-secondary));
  color: white;
  box-shadow: 0 4px 10px rgba(90, 81, 222, 0.3);
}

/* Result Footer */
.comp-result {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.comp-result.negative {
  background: rgba(255, 107, 107, 0.08);
  color: #ff6b6b;
  border: 1px dashed rgba(255, 107, 107, 0.2);
}

.comp-result.positive {
  background: rgba(90, 81, 222, 0.15);
  color: #fff;
  border: 1px solid rgba(175, 154, 255, 0.3);
  box-shadow: 0 8px 30px rgba(90, 81, 222, 0.15);
}

.comp-result span {
  opacity: 0.7;
  font-weight: 400;
  margin-right: 5px;
  text-transform: none;
}

/* Divider */
.comparison-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.divider-line {
  width: 1px;
  flex-grow: 1;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.vs-badge {
  background: #0f1117;
  border: 1px solid var(--glass-border);
  color: #fff;
  font-weight: 800;
  padding: 0.8rem;
  border-radius: 50%;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 2;
  margin: 1rem 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .comparison-content-wrapper {
    flex-direction: column;
  }
  
  .comparison-divider {
    position: relative;
    transform: none;
    left: 0;
    top: 0;
    height: auto;
    flex-direction: row;
    width: 100%;
    margin: 1rem 0;
  }
  
  .divider-line {
    height: 1px;
    width: auto;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  }
  
  .vs-badge {
    margin: 0 1rem;
  }
  
  .comparison-half {
    border: none;
    padding: 2rem 1.5rem;
  }
}

/* ========================================
   VALUE PROPOSITION
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: transparent;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  border-color: var(--glass-highlight);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(90, 81, 222, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--glass-accent);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: var(--glass-primary);
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.feature-desc {
  color: var(--glass-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */
.glass-footer {
  background: rgba(5, 6, 8, 0.8);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 2rem 2rem;
  margin-top: 6rem;
  position: relative;
}

.glass-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-accent), transparent);
  opacity: 0.3;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.glass-footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid-full {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(6, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 1200px) {
  .footer-grid-full {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid-full .footer-brand {
    grid-column: span 4;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .footer-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid-full .footer-brand {
    grid-column: span 2;
  }
}

.glass-footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 1200px) {
  .glass-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .glass-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.glass-footer-section h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.glass-footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glass-footer-section li {
  margin-bottom: 0.5rem;
}

.glass-footer-section a {
  color: var(--glass-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.glass-footer-section a:hover {
  color: var(--glass-accent);
}

.glass-footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
}

.glass-footer-bottom p {
  color: var(--glass-text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.glass-footer-bottom a {
  color: var(--glass-accent);
  text-decoration: none;
}

.footer-brand p {
  color: var(--glass-text-muted);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--glass-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--glass-accent);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
}

.footer-disclaimer {
  color: var(--glass-text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.footer-legal {
  color: var(--glass-text-muted);
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--glass-text-muted);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-legal a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .glass-nav {
    min-width: 90%;
    padding: 0.75rem 1rem;
  }

  .glass-links {
    display: none; /* Hidden by default on mobile */
  }

  /* Mobile menu toggle button - bubbly shadow style */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(20, 23, 30, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
      0 4px 15px rgba(0, 0, 0, 0.3),
      0 2px 6px rgba(0, 0, 0, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.05);
  }

  .mobile-menu-btn:hover {
    background: rgba(30, 35, 45, 0.85);
    color: #fff;
    transform: scale(1.05);
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.4),
      0 3px 10px rgba(0, 0, 0, 0.3),
      inset 0 1px 1px rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-btn:active {
    transform: scale(0.95);
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.3),
      inset 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  /* Mobile dropdown menu - bubbly shadow style */
  .mobile-menu-dropdown {
    display: block;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 20px;
    padding: 0.75rem;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.5),
      0 8px 25px rgba(0, 0, 0, 0.3),
      inset 0 1px 1px rgba(255, 255, 255, 0.03);
  }

  .mobile-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-dropdown .glass-link {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 0.25rem;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(90, 81, 222, 0.3);
  }

  .mobile-menu-dropdown .glass-link:active {
    background: rgba(90, 81, 222, 0.3);
  }

  .glass-actions {
    display: none !important;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .unified-comparison {
    flex-direction: column;
  }
  
  .comparison-half {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .comparison-divider {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    height: auto;
    flex-direction: row;
    width: 100%;
    margin: 1rem 0;
  }

  .divider-line {
    width: auto;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  }

  .vs-badge {
    margin: 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand p {
    margin: 1rem auto;
  }
}

/* ========================================
   CHAT MODE TRANSFORMATION
   ======================================== */
body.chat-mode-active {
  overflow: hidden; /* Lock scroll to focus on chat */
}

/* Hide marketing content with fade */
body.chat-mode-active .glass-section,
body.chat-mode-active .glass-footer,
body.chat-mode-active .hero-subtitle,
body.chat-mode-active .hero-title,
body.chat-mode-active .hero-badge,
body.chat-mode-active .hero-tagline {
  opacity: 0;
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

/* Hide logo completely in chat mode */
body.chat-mode-active .hero-logo {
  opacity: 0;
  pointer-events: none;
  height: 0;
  margin: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Move glow to background or adjust */
body.chat-mode-active .hero-glow {
  width: 100vw;
  height: 100vh;
  opacity: 0.3;
  transition: all 0.8s ease;
}

/* Re-layout the hero section to be a full-screen app */
body.chat-mode-active .glass-hero {
  padding: 120px 1rem 1rem; /* Space for navbar */
  height: 100vh;
  overflow: hidden; /* Prevent scrolling of the container itself */
  justify-content: flex-start; 
  transition: all 0.5s ease-in-out;
}

body.chat-mode-active .glass-chat-wrapper {
  max-height: none; /* Reset max-height restriction */
  height: calc(100vh - 140px); /* Exact fit: 100vh - 120px padding-top - 20px padding-bottom */
  max-width: 1000px;
  width: 100%; 
  margin: 0 auto; 
  display: flex;
  flex-direction: column;
  transition: all 0.5s ease;
}

/* MESSAGES AREA - Takes up space above input */
body.chat-mode-active .chat-messages-area {
  display: flex;
  flex-direction: column;
  flex: 1; /* Grows to fill space */
  max-height: 100vh; /* Use a large value for transition, 'none' doesn't animate */
  opacity: 1; /* Ensure visibility */
  overflow-y: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
  margin-bottom: 1rem;
}

/* INPUT CONTAINER - Stays at bottom */
body.chat-mode-active .glass-chat-box {
  flex: 0 0 auto; /* Do not grow, just wrap input */
  display: flex;
  flex-direction: column;
  background: rgba(15, 17, 23, 0.85);
  border: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  margin-bottom: 0.5rem;
  border-radius: 22px;
  overflow: hidden;
  padding: 0; /* Remove padding to let input fill */
  transition: all 0.3s ease;
}

body.chat-mode-active .glass-chat-box:hover {
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.5),
              0 0 25px rgba(90, 81, 222, 0.1),
              inset 0 1px 0 rgba(255,255,255,0.06);
}

body.chat-mode-active .glass-chat-box:focus-within {
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5),
              0 0 35px rgba(90, 81, 222, 0.2),
              inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Custom scrollbar for chat */
body.chat-mode-active .chat-messages-area::-webkit-scrollbar {
  width: 6px;
}
body.chat-mode-active .chat-messages-area::-webkit-scrollbar-track {
  background: transparent;
}
body.chat-mode-active .chat-messages-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

body.chat-mode-active .input-group {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: none; /* Clean look */
  flex-shrink: 0; 
}

/* QUICK PROMPTS TRANSITION */
.quick-prompts-container {
  transition: all 0.5s ease;
  max-height: 100px;
  opacity: 1;
  overflow: hidden;
}

/* Fade out and collapse quick prompts in chat mode */
body.chat-mode-active .quick-prompts-container {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Navbar adjustment - make it more app-like */
body.chat-mode-active .glass-nav {
  background: rgba(15, 17, 23, 0.95);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 98%;
}

/* ========================================
   STEP 1 → STEP 2 TRANSITION CARD
   ======================================== */

/* Step Transition - Clean, minimal */
.step-transition-card {
  margin: 24px 0;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.transition-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.transition-icon {
  color: var(--glass-accent);
  font-size: 20px;
}

.transition-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--glass-text-main);
  font-weight: 500;
}

.transition-subtitle {
  color: var(--glass-text-muted);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.qualifying-cars-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.qualifying-car-chip {
  background: rgba(90, 81, 222, 0.15);
  padding: 8px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qualifying-car-chip .car-name {
  font-weight: 500;
  color: var(--glass-text-main);
  font-size: 0.9rem;
}

.qualifying-car-chip .car-reason {
  display: none;
}

.transition-proceed-btn {
  background: linear-gradient(135deg, var(--glass-primary), var(--glass-secondary));
  color: white;
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.transition-proceed-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(90, 81, 222, 0.4);
}

/* ========================================
   STEP 2 - CAR CONFIG CARDS (Inline in Chat)
   ======================================== */

/* Loading spinner inline in chat */
.portal-loading-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
  color: var(--glass-text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--glass-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Container for all car config cards */
.car-cards-container {
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
  animation: cardSlideIn 0.4s ease-out;
}

.cards-header {
  margin-bottom: 20px;
}

.cards-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: var(--glass-text-main);
  font-weight: 600;
}

.cards-header p {
  margin: 0;
  color: var(--glass-text-muted);
  font-size: 0.9rem;
}

/* Individual car config card */
.car-config-card {
  background: rgba(30, 33, 42, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.car-config-card:hover {
  border-color: rgba(90, 81, 222, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Card header - always visible, clickable */
.car-config-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.car-config-card .card-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--glass-text-main);
}

.card-title i {
  color: var(--glass-accent);
}

.card-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--glass-text-muted);
  font-size: 0.85rem;
}

.card-summary .selected-trim {
  background: rgba(90, 81, 222, 0.2);
  color: var(--glass-accent);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.card-summary .selected-years {
  opacity: 0.7;
}

/* Card body - collapsible */
.car-config-card .card-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: all 0.3s ease;
}

.car-config-card .card-body.expanded {
  max-height: 600px;
  padding: 0 20px 20px;
  border-top: 1px solid var(--glass-border);
}

/* Config rows within card body */
.config-row {
  margin-bottom: 20px;
}

.config-row:last-child {
  margin-bottom: 0;
}

.config-row label {
  display: block;
  color: var(--glass-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Chip group for years */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--glass-text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--glass-text-main);
}

.chip.selected {
  background: rgba(90, 81, 222, 0.25);
  border-color: var(--glass-primary);
  color: var(--glass-accent);
}

/* Trims grid */
.trims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.trim-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.trim-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(90, 81, 222, 0.3);
}

.trim-chip.selected {
  background: rgba(90, 81, 222, 0.15);
  border-color: var(--glass-primary);
}

.trim-chip .trim-name {
  display: block;
  font-weight: 600;
  color: var(--glass-text-main);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.trim-chip .trim-spec {
  display: inline-block;
  color: var(--glass-text-muted);
  font-size: 0.75rem;
  margin-right: 8px;
}

.no-data {
  color: var(--glass-text-muted);
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

/* Selected specs display */
.selected-specs {
  background: rgba(90, 81, 222, 0.08);
  border: 1px solid rgba(90, 81, 222, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-item .spec-label {
  font-size: 0.7rem;
  color: var(--glass-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-item .spec-value {
  font-size: 0.95rem;
  color: var(--glass-text-main);
  font-weight: 600;
}

/* Cards footer with search button */
.cards-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.search-all-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--glass-primary), var(--glass-secondary));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(90, 81, 222, 0.3);
}

.search-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(90, 81, 222, 0.5);
}

.search-all-btn:active {
  transform: translateY(0);
}

/* ZIP Prompt Card */
.zip-prompt-card {
  background: linear-gradient(135deg, rgba(90, 81, 222, 0.15), rgba(217, 94, 140, 0.1));
  border: 1px solid rgba(90, 81, 222, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.zip-input-container {
  display: flex;
  gap: 12px;
}

.zip-input-container input {
  flex: 1;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  color: var(--glass-text-main);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 1rem;
}

.zip-input-container input:focus {
  outline: none;
  border-color: var(--glass-primary);
}

.zip-input-container button {
  background: linear-gradient(135deg, var(--glass-primary), var(--glass-secondary));
  border: none;
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.zip-input-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(90, 81, 222, 0.4);
}