/* ==========================================================================
   PT HECTIC BERSAMA - LANDING PAGE STYLESHEET
   Tech Stack: Bootstrap 5 + jQuery + Vanilla CSS3
   Features: Light & Dark Theme Support, Solid Brand Red Color System
   ========================================================================== */

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

/* ==========================================================================
   THEME VARIABLES
   ========================================================================== */

/* Dark Theme (Default) */
:root, [data-theme="dark"] {
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Brand Color Palette - Solid Crimson Red */
  --bg-dark: #0d0a0b;
  --bg-card: rgba(24, 18, 20, 0.85);
  --bg-card-hover: rgba(38, 28, 31, 0.95);
  --bg-nav: rgba(13, 10, 11, 0.85);
  --bg-nav-scrolled: rgba(13, 10, 11, 0.98);
  --bg-footer: #080607;

  --brand-red: #e63946;
  --brand-red-hover: #c1121f;
  --primary-glow: #e63946;
  --primary-accent: #e63946;
  --secondary-glow: #c1121f;
  --accent-cyan: #e63946;
  --accent-gold: #ef4444;
  --accent-emerald: #10b981;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-heading: #ffffff;
  --text-dark: #0f172a;

  --border-glass: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(230, 57, 70, 0.4);

  --shadow-sm: 0 4px 25px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(230, 57, 70, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);

  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme */
[data-theme="light"] {
  --bg-dark: #fcf8f8;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.9);
  --bg-nav-scrolled: rgba(255, 255, 255, 0.98);
  --bg-footer: #181214;

  --brand-red: #dc2626;
  --brand-red-hover: #991b1b;
  --primary-glow: #dc2626;
  --primary-accent: #dc2626;
  --secondary-glow: #991b1b;
  --accent-cyan: #dc2626;
  --accent-gold: #ef4444;
  --accent-emerald: #059669;

  --text-main: #1e293b;
  --text-muted: #475569;
  --text-heading: #0f172a;
  --text-dark: #f8fafc;

  --border-glass: rgba(0, 0, 0, 0.1);
  --border-glow: rgba(220, 38, 38, 0.3);

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 8px 30px rgba(220, 38, 38, 0.15);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Global Reset & Styling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Typography Brand Red Utilities (No Gradients) */
.gradient-text, .text-brand-red {
  color: var(--brand-red) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--brand-red) !important;
}

.gradient-text-gold {
  color: var(--brand-red) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--brand-red) !important;
}

/* Background Mesh Ambient Glow */
.bg-mesh-container {
  position: relative;
}

.bg-mesh-container::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: rgba(230, 57, 70, 0.06);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

/* Navbar Custom Styling */
.navbar-custom {
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 18px 0;
  transition: var(--transition-fast);
  z-index: 1050;
}

.navbar-custom.scrolled {
  padding: 12px 0;
  background: var(--bg-nav-scrolled);
  box-shadow: var(--shadow-card);
  border-bottom-color: var(--border-glow);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--brand-red);
  box-shadow: var(--shadow-glow);
  transition: var(--transition-fast);
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
}

.brand-name span {
  font-weight: 600;
  font-size: 0.82rem;
  display: block;
  color: var(--brand-red);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-red) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 60%;
}

/* Theme Switcher Toggle Button */
.btn-theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

[data-theme="light"] .btn-theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  color: #d97706;
}

.btn-theme-toggle:hover {
  transform: rotate(20deg) scale(1.08);
  border-color: var(--brand-red);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

/* Solid Buttons (No Gradients) */
.btn-glow {
  background: var(--brand-red);
  color: #fff !important;
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.35);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-glow:hover {
  background: var(--brand-red-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

[data-theme="light"] .btn-outline-glass {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-heading);
}

.btn-outline-glass:hover {
  background: rgba(230, 57, 70, 0.12);
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 70px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--brand-red);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge i {
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

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

.hero-visual-card {
  position: relative;
  border-radius: 24px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
}

.hero-visual-card img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  display: block;
}

.floating-stats-card {
  position: absolute;
  bottom: -25px;
  left: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(16px);
  padding: 18px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(230, 57, 70, 0.15);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Stats Counter Section */
.counter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.counter-box:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.counter-number {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--brand-red);
  margin-bottom: 4px;
}

.counter-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Section Header */
.section-tag {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-red);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

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

/* Division / Services Cards */
.division-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.division-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-red);
  opacity: 0;
  transition: var(--transition-fast);
}

.division-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

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

.division-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--brand-red);
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.division-card:hover .division-icon-wrap {
  background: var(--brand-red);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.division-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-heading);
}

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

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.service-list li i {
  color: var(--brand-red);
  font-size: 0.9rem;
}

/* Interactive Price Estimator Widget */
.estimator-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.form-select-custom, .form-input-custom {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.98rem;
  transition: var(--transition-fast);
}

[data-theme="light"] .form-select-custom,
[data-theme="light"] .form-input-custom {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-heading);
}

.form-select-custom:focus, .form-input-custom:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-red);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
  color: var(--text-heading);
  outline: none;
}

.form-select-custom option {
  background-color: var(--bg-dark);
  color: var(--text-heading);
}

.estimate-result-box {
  background: rgba(230, 57, 70, 0.08);
  border: 1px dashed var(--brand-red);
  padding: 28px 24px;
  border-radius: 20px;
  text-align: center;
}

.estimate-price {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--brand-red);
  font-family: var(--font-heading);
}

/* Portfolio Filter & Grid */
.portfolio-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.portfolio-filter-btn:hover, .portfolio-filter-btn.active {
  background: var(--brand-red);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.portfolio-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.portfolio-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 10, 11, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-fast);
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-badge {
  display: inline-block;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

/* Why Choose Us Feature Cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  padding: 30px 26px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(230, 57, 70, 0.15);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h4 {
  color: var(--text-heading) !important;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

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

/* Testimonial Cards */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: var(--brand-red);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

/* Contact Section & Form */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(230, 57, 70, 0.12);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.8);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer Styling */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-glass);
  padding: 70px 0 30px;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--brand-red);
  transform: translateX(4px);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--brand-red);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hero-section {
    padding: 120px 0 60px;
  }
  
  .floating-stats-card {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 20px;
  }

  .estimator-container {
    padding: 24px;
  }
}

/* ==========================================================================
   CHATBOT WIDGET
   ========================================================================== */

.chatbot-launcher {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  border: none;
  font-size: 26px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.45);
  transition: var(--transition-fast);
}

.chatbot-launcher:hover {
  background: var(--brand-red-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(230, 57, 70, 0.65);
}

.chatbot-panel {
  position: fixed;
  bottom: 92px;
  right: 30px;
  width: min(360px, calc(100vw - 32px));
  height: auto;
  max-height: min(490px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 1060;
}

.chatbot-panel.d-none {
  display: none !important;
}

.chatbot-header {
  background: var(--brand-red);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.chatbot-header h6 {
  color: #fff;
}

.chatbot-header small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
}

.chat-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 4px;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.9);
}

.chatbot-header-btn {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.chatbot-header-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.chatbot-form {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chatbot-form .form-input-custom,
.chatbot-form .form-select-custom {
  padding: 9px 12px;
  font-size: 0.9rem;
}

.chatbot-messages {
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
  animation: chat-pop 0.25s ease;
}

@keyframes chat-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg-bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

[data-theme="light"] .chat-msg-bot {
  background: rgba(0, 0, 0, 0.05);
}

.chat-msg-user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--brand-red);
  color: #fff;
}

.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 16px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: chat-blink 1s infinite;
}

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

@keyframes chat-blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.chatbot-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

[data-theme="light"] .chatbot-input-row {
  background: rgba(0, 0, 0, 0.02);
}

.chatbot-input-row .form-input-custom {
  padding: 9px 14px;
  font-size: 0.92rem;
  border-radius: 50px;
}

.chatbot-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--brand-red);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.chatbot-send-btn:hover {
  background: var(--brand-red-hover);
  transform: scale(1.06);
}

@media (max-width: 480px) {
  .chatbot-launcher {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
    font-size: 23px;
  }

  .chatbot-panel {
    right: 12px;
    bottom: 84px;
    border-radius: 18px;
  }
}
