/* =============================================
   Neuropathy.ai - Purple/Violet Theme
   A BuiltForAI Healthcare Property
   ============================================= */

/* CSS Variables - Purple Theme */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --primary-subtle: #ede9fe;

  --accent: #ec4899;
  --accent-dark: #be185d;

  --text: #1e1b4b;
  --text-light: #6b7280;
  --text-muted: #9ca3af;

  --bg: #ffffff;
  --bg-alt: #faf5ff;
  --bg-dark: #1e1b4b;

  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   Ecosystem Bar
   ============================================= */
.eco-bar {
  background: var(--bg-dark);
  padding: 8px 0;
  font-size: 13px;
}

.eco-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eco-sites {
  display: flex;
  gap: 16px;
  align-items: center;
}

.eco-sites a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.eco-sites a:hover {
  color: #fff;
}

.eco-current {
  color: var(--primary-light);
  font-weight: 600;
}

.eco-brand {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

.eco-brand:hover {
  color: rgba(255,255,255,0.8);
}

/* =============================================
   Header
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  padding: 20px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 8px 0;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--primary-subtle);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary-subtle);
  transform: translateY(-1px);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-subtle) 0%, #fdf4ff 50%, #faf5ff 100%);
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(124,58,237,0.1) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-sub strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.hero-trust i {
  color: var(--primary);
}

.hero-visual {
  position: relative;
}

.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =============================================
   Stats Section
   ============================================= */
.stats-section {
  padding: 60px 0;
  background: var(--bg-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  color: #fff;
  font-size: 20px;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* =============================================
   Section Headers
   ============================================= */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section-header p {
  font-size: 18px;
  color: var(--text-light);
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-label.light {
  color: var(--primary-light);
}

/* =============================================
   Types Section
   ============================================= */
.types-section {
  padding: 100px 0;
  background: var(--bg);
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.type-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.type-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.type-icon i {
  font-size: 24px;
  color: #fff;
}

.type-icon.peripheral {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.type-icon.autonomic {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.type-icon.focal {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.type-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.type-card p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 15px;
}

.type-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.type-card li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: var(--text-light);
}

.type-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.type-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

.type-link:hover {
  gap: 10px;
}

/* =============================================
   Visual Sections (Alternating Image/Content)
   ============================================= */
.visual-section,
.treatments-section {
  padding: 100px 0;
}

.visual-section {
  background: var(--bg-alt);
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.visual-grid.reverse {
  direction: rtl;
}

.visual-grid.reverse > * {
  direction: ltr;
}

.visual-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.visual-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.visual-content > p {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* Symptom List */
.symptom-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.symptom-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.symptom-item i {
  width: 44px;
  height: 44px;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.symptom-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.symptom-item p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* Treatment Categories */
.treatment-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.treatment-cat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.treatment-cat i {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.treatment-cat strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.treatment-cat p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* =============================================
   Assessment Section
   ============================================= */
.assessment-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.assessment-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.assessment-header {
  text-align: center;
  margin-bottom: 40px;
}

.assessment-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.assessment-header p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
}

/* Quiz Root Styling */
#quiz-root {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* =============================================
   Chat Section
   ============================================= */
.chat-section {
  padding: 100px 0;
  background: var(--bg-dark);
}

.chat-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.chat-intro h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.chat-intro > p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.chat-features {
  list-style: none;
  margin-bottom: 24px;
}

.chat-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  padding: 8px 0;
}

.chat-features i {
  color: var(--primary-light);
}

.chat-disclaimer {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-container {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#chat-root {
  min-height: 400px;
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  text-align: center;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--bg-dark);
  padding: 60px 0 40px;
  color: rgba(255,255,255,0.7);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}

.footer-brand .logo {
  display: block;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

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

.footer-legal {
  text-align: center;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.legal-links a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

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

.disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.copyright a {
  color: var(--primary-light);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 40px;
  }

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

  .types-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-visual {
    display: none;
  }

  .visual-grid,
  .visual-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .visual-image {
    order: -1;
  }

  .treatment-categories {
    grid-template-columns: 1fr;
  }

  .chat-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #quiz-root {
    padding: 24px;
  }

  .eco-brand {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .section-header h2,
  .visual-content h2,
  .assessment-header h2,
  .chat-intro h2,
  .cta-content h2 {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }
}

/* =============================================
   Quiz Component Styles
   ============================================= */
.quiz-container {
  text-align: left;
}

.quiz-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.3s ease;
}

.quiz-progress-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.quiz-body {
  margin-bottom: 32px;
}

.quiz-question-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-subtle);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.quiz-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}

.quiz-option.selected .quiz-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.quiz-option.selected .quiz-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.quiz-option-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.quiz-option-sub {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-btn-back {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 15px;
  cursor: pointer;
  padding: 10px 0;
}

.quiz-btn-back:hover {
  color: var(--text);
}

.quiz-btn-next {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.quiz-btn-next:hover:not(:disabled) {
  background: var(--primary-dark);
}

.quiz-btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quiz-result-inner {
  text-align: center;
  padding: 20px 0;
}

.quiz-result-inner h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.quiz-result-inner > p:first-of-type {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.quiz-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
}

/* =============================================
   Chat Component Styles
   ============================================= */
.chat-box {
  display: flex;
  flex-direction: column;
  height: 480px;
  background: #fff;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.chat-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.chat-header-info {
  flex: 1;
}

.chat-header-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text);
}

.chat-header-info p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.chat-status {
  font-size: 12px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status i {
  font-size: 8px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
}

.chat-message.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}

.chat-msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-message.assistant .chat-msg-bubble {
  background: var(--bg-alt);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-message.user .chat-msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 16px 20px;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

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

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

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

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

.chat-send-btn {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-send-btn:hover:not(:disabled) {
  background: var(--primary-dark);
}

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

.chat-box > .chat-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 20px;
  background: var(--bg-alt);
  margin: 0;
}
