/* ===========================
   MédiVoice IA — Style CSS
   =========================== */

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

:root {
  --primary: #4f8ef7;
  --primary-dark: #2563eb;
  --accent: #06d6a0;
  --dark: #0a0f1e;
  --dark-2: #111827;
  --dark-3: #1e2a3a;
  --dark-4: #243044;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}

.logo-icon { font-size: 1.4rem; }
.logo-ia { color: var(--primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 142, 247, 0.6);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: rgba(255,255,255,0.1); }

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

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

.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 20px;
  font-size: 0.85rem;
  margin-left: auto;
}

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.orb-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -200px;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; right: 200px;
  animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px; height: 300px;
  background: #8b5cf6;
  top: 50%; right: -100px;
  animation: float 12s ease-in-out infinite;
}

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

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Phone mockup */
.phone-mockup-wrapper {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.phone-mockup {
  width: 300px;
  background: var(--dark-3);
  border-radius: 30px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.05);
  animation: float 6s ease-in-out infinite;
}

.phone-screen { display: flex; flex-direction: column; gap: 16px; }

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

.phone-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.phone-name { font-weight: 600; font-size: 0.9rem; }
.phone-status { font-size: 0.75rem; color: var(--accent); }

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

.msg { display: flex; flex-direction: column; }
.msg-in { align-items: flex-start; }
.msg-out { align-items: flex-end; }

.msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.msg-in .msg-bubble {
  background: var(--dark-4);
  border-bottom-left-radius: 4px;
}

.msg-out .msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

.sms-notification {
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.3);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  text-align: center;
  font-weight: 500;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 100px 0;
  background: var(--dark-2);
}

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

.problem-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.problem-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

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

.problem-cards { display: flex; flex-direction: column; gap: 16px; }

.problem-card {
  background: var(--dark-3);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.problem-card.good { border-color: rgba(6, 214, 160, 0.3); }
.problem-card.bad { border-color: rgba(239, 68, 68, 0.2); }

.problem-card-icon { font-size: 2rem; margin-bottom: 12px; }

.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.problem-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.problem-card.bad li::before { content: "❌ "; }
.problem-card.good li::before { content: "✅ "; }

.problem-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(79, 142, 247, 0.1);
  color: var(--primary);
  border: 1px solid rgba(79, 142, 247, 0.3);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features { padding: 100px 0; }

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

.feature-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(79, 142, 247, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-card-large {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.08), rgba(6, 214, 160, 0.05));
  border-color: rgba(79, 142, 247, 0.2);
}

.feature-icon { font-size: 2rem; margin-bottom: 16px; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  background: rgba(6, 214, 160, 0.1);
  color: var(--accent);
  border: 1px solid rgba(6, 214, 160, 0.3);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 16px;
}

/* ===== HOW ===== */
.how {
  padding: 100px 0;
  background: var(--dark-2);
}

.steps {
  display: flex;
  align-items: center;
  gap: 20px;
}

.step {
  flex: 1;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(79, 142, 247, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ===== PRICING ===== */
.pricing { padding: 100px 0; }

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

.pricing-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}

.pricing-card-featured {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.1), rgba(6, 214, 160, 0.05));
  border-color: var(--primary);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 20px;
  background: rgba(79, 142, 247, 0.05);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: var(--radius-sm);
}

.pricing-note strong { color: var(--accent); }

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--dark-2);
}

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

.testimonial-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; }

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

.contact-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-text p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-guarantees {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guarantee {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input {
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
}

.form-group input::placeholder { color: var(--text-muted); }

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* ===== SUCCESS STATE ===== */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .phone-mockup-wrapper { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-large { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .problem-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .hero-cta { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; }
}

/* ===== CHATBOT WIDGET ===== */
#chatbot {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

/* Toggle Button */
#chatbot-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(79, 142, 247, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

#chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 40px rgba(79, 142, 247, 0.65);
}

.chatbot-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
}

.chatbot-toggle-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}

#chatbot.open #chatbot-icon-open {
  opacity: 0;
  transform: rotate(90deg);
}

#chatbot.open .chatbot-toggle-close {
  opacity: 1;
  transform: rotate(0deg);
}

.chatbot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: chatbot-pulse 2s ease-in-out infinite;
}

#chatbot.open .chatbot-pulse { display: none; }

@keyframes chatbot-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.4); }
}

/* Chat Window */
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 400px;
  max-height: 560px;
  background: rgba(17, 24, 39, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#chatbot.open .chatbot-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(30, 42, 58, 0.8);
  border-bottom: 1px solid var(--border);
}

.chatbot-header-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  position: relative;
  flex-shrink: 0;
}

.chatbot-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--dark-2);
}

.chatbot-header-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.chatbot-header-status {
  font-size: 0.75rem;
  color: var(--accent);
}

.chatbot-header-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.chatbot-header-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: 350px;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--dark-4);
  border-radius: 4px;
}

.chatbot-msg {
  display: flex;
  animation: chatbot-msg-in 0.35s ease;
}

@keyframes chatbot-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-msg-in { justify-content: flex-start; }
.chatbot-msg-out { justify-content: flex-end; }

.chatbot-msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.chatbot-msg-in .chatbot-msg-bubble {
  background: var(--dark-4);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.chatbot-msg-out .chatbot-msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-bottom-right-radius: 6px;
}

/* Typing Indicator */
.chatbot-typing {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chatbot-typing.active { display: flex; }

.chatbot-typing-dots {
  display: flex;
  gap: 4px;
}

.chatbot-typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: chatbot-dot-bounce 1.4s infinite ease-in-out;
}

.chatbot-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

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

/* Input Area */
.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(30, 42, 58, 0.5);
}

#chatbot-input {
  flex: 1;
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

#chatbot-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 142, 247, 0.12);
}

#chatbot-input::placeholder { color: var(--text-muted); }

#chatbot-send {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

#chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.4);
}

#chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Error message */
.chatbot-msg-error .chatbot-msg-bubble {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5 !important;
}

/* Responsive */
@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 24px);
    right: -16px;
    bottom: 74px;
    max-height: 70vh;
  }

  #chatbot {
    bottom: 16px;
    right: 16px;
  }

  #chatbot-toggle {
    width: 56px;
    height: 56px;
  }
}
