/* ============================================================
   Basabi Consulting — Main Stylesheet
   ============================================================ */

:root {
  --dark:         #0a0c14;
  --dark-2:       #111525;
  --dark-3:       #1a2035;
  --blue:         #3498db;
  --blue-light:   #5dade2;
  --accent:       #e74c3c;
  --green:        #2ecc71;
  --text:         #e8eaf0;
  --text-muted:   #8892a4;
  --border:       rgba(255,255,255,0.08);
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.4);
  --glow:         0 0 40px rgba(52,152,219,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  padding-top: 70px;
}

/* Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; }
.text-gradient {
  background: linear-gradient(135deg, var(--blue), var(--blue-light), #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-muted) !important; }
.btn-link { color: var(--blue); text-decoration: none; font-weight: 600; }
.btn-link:hover { color: var(--blue-light); }
.btn-link i { transition: transform .2s; }
.btn-link:hover i { transform: translateX(4px); }

/* ── Navbar ── */
#mainNavbar {
  background: rgba(10,12,20,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: all .3s;
}
#mainNavbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.brand-main  { font-weight: 800; letter-spacing: 2px; color: white; }
.brand-accent { color: var(--blue); }
.navbar-nav .nav-link { color: var(--text-muted) !important; font-size: .9rem; transition: color .2s; padding: 8px 12px !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: white !important; }
.dropdown-menu-dark { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.dropdown-item { color: var(--text-muted); transition: all .2s; }
.dropdown-item:hover { color: white; background: rgba(52,152,219,0.1); }
.navbar-toggler { border-color: var(--border); }

/* ── Buttons ── */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  padding: .55rem 1.4rem;
  transition: all .25s;
  letter-spacing: .3px;
}
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(52,152,219,.4); }
.btn-outline-primary { border-color: var(--blue); color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue); color: white; }
.btn-outline-light:hover { background: white; color: var(--dark); }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-outline-success { border-color: var(--green); color: var(--green); }
.btn-outline-success:hover { background: var(--green); color: white; }
.btn-xs { padding: .2rem .6rem; font-size: .78rem; }
.btn-lg { padding: .75rem 2rem; font-size: 1rem; }

/* ── Sections ── */
.section-padded { padding: 80px 0; }
.bg-dark-secondary { background: var(--dark-2); }
.section-header { margin-bottom: 2rem; }
.section-tag {
  display: inline-block;
  background: rgba(52,152,219,.12);
  color: var(--blue);
  border: 1px solid rgba(52,152,219,.3);
  border-radius: 20px;
  padding: .25rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: .5rem auto 0; font-size: 1.05rem; }
.mt-6 { margin-top: 5rem !important; }

/* ── Hero Section ── */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  padding-top: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(52,152,219,.08) 0%, transparent 70%),
              radial-gradient(ellipse at 10% 80%, rgba(162,155,254,.06) 0%, transparent 60%);
}
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(52,152,219,.1); border: 1px solid rgba(52,152,219,.3);
  border-radius: 20px; padding: .35rem 1rem; font-size: .85rem; color: var(--blue);
}
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; margin-bottom: 1.25rem; }
.hero-subtitle { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual { position: relative; width: 420px; height: 420px; margin: 0 auto; }
.hero-img-wrap {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 340px; height: 340px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(52,152,219,.3);
  box-shadow: 0 0 60px rgba(52,152,219,.25);
}
.hero-main-img { width: 100%; height: 100%; object-fit: cover; }
.hero-circle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 200px; height: 200px;
}
.hero-core {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--blue), #a29bfe);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 2.5rem; color: white;
  box-shadow: 0 0 60px rgba(52,152,219,.4);
}
.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(52,152,219,.2);
  animation: orbit-spin 12s linear infinite;
}
.ring-1 { width: 180px; height: 180px; transform: translate(-50%,-50%); }
.ring-2 { width: 280px; height: 280px; transform: translate(-50%,-50%); animation-duration: 20s; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.floating-card {
  position: absolute;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
  box-shadow: var(--shadow);
}
.floating-card i { color: var(--blue); margin-right: .4rem; }
.card-1 { top: 10%; left: -10%; animation-delay: 0s; }
.card-2 { top: 50%; right: -15%; animation-delay: 1.5s; }
.card-3 { bottom: 10%; left: 0; animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Stats ── */
.stats-section { padding: 60px 0; background: var(--dark-2); }
.stat-card { padding: 2rem 1rem; }
.stat-number {
  font-size: 3rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: inline-block;
}
.stat-suffix { font-size: 1.5rem; font-weight: 700; color: var(--blue); display: inline-block; }
.stat-label { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: .5rem; }

/* ── Service Cards ── */
.service-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: all .3s;
}
.service-card:hover { border-color: rgba(52,152,219,.3); transform: translateY(-4px); box-shadow: var(--glow); }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(52,152,219,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--blue);
  margin-bottom: 1.25rem;
}
.service-features { list-style: none; padding: 0; margin: 1rem 0; }
.service-features li { padding: .3rem 0; color: var(--text-muted); font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.service-features i { color: var(--blue); font-size: .75rem; }

/* ── AI Service Cards ── */
.ai-service-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all .3s;
}
.ai-service-card:hover { border-color: rgba(52,152,219,.4); box-shadow: var(--glow); }
.ai-service-card.featured { border-color: var(--blue); background: linear-gradient(160deg, var(--dark-3), var(--dark-2)); }
.ai-card-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--blue); color: white;
  padding: .2rem .7rem; border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.ai-card-icon { font-size: 2.5rem; color: var(--blue); margin-bottom: 1rem; }

/* AI Feature Cards (large) */
.ai-feature-card {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; gap: 1.5rem; padding: 2rem; transition: all .3s;
}
.ai-feature-card:hover { border-color: rgba(52,152,219,.3); box-shadow: var(--glow); }
.ai-feature-icon {
  width: 64px; height: 64px; min-width: 64px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: white;
}
.ai-feature-icon.bg-blue { background: linear-gradient(135deg, var(--blue), #5664d2); }
.ai-feature-icon.bg-green { background: linear-gradient(135deg, var(--green), #00b894); }
.ai-feature-body { flex: 1; display: flex; flex-direction: column; }
.ai-mini-card {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; transition: all .3s;
}
.ai-mini-card:hover { border-color: rgba(52,152,219,.3); box-shadow: var(--glow); }
.ai-mini-icon { font-size: 2rem; color: var(--blue); margin-bottom: 1rem; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0; }
.feature-list li { padding: .4rem 0; font-size: .9rem; color: var(--text-muted); display: flex; align-items: center; gap: .5rem; }

/* ── About ── */
.about-visual { position: relative; }
.about-badge {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--blue); color: white;
  padding: .6rem 1.2rem; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.about-values { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.value-item { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-muted); }
.value-item i { color: var(--blue); }

/* ── Articles ── */
.article-card {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: all .3s;
}
.article-card:hover { border-color: rgba(52,152,219,.3); transform: translateY(-4px); }
.article-img { aspect-ratio: 16/9; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; display: flex; gap: 1rem; }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; transition: all .3s;
}
.testimonial-stars { margin-bottom: 1rem; }
.testimonial-text { font-size: .95rem; color: var(--text-muted); flex: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(52,152,219,.15); display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}

/* ── CTA Section ── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 50%, var(--dark-2) 100%),
              url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1350') center/cover;
  background-blend-mode: overlay;
  position: relative;
}
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Page Hero ── */
.page-hero { padding: 100px 0 60px; background: var(--dark-2); }
.page-hero-sm { padding: 30px 0; background: var(--dark-2); border-bottom: 1px solid var(--border); }
.ai-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%); }

/* ── Forms ── */
.form-card {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem;
}
.form-control, .form-select {
  background: var(--dark-3) !important; border: 1px solid var(--border) !important;
  color: var(--text) !important; border-radius: var(--radius-sm);
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(52,152,219,.15) !important;
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--text-muted); font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.form-text { color: var(--text-muted); font-size: .8rem; }

/* ── Auth Pages ── */
.auth-body {
  background: radial-gradient(ellipse at center, var(--dark-3) 0%, var(--dark) 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-container { width: 100%; max-width: 420px; }
.auth-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo a { text-decoration: none; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: 2px; }
.logo-accent { font-size: 1.5rem; font-weight: 800; color: var(--blue); letter-spacing: 2px; }

/* ── Account ── */
.account-stat-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  transition: all .3s;
}
.account-stat-card:hover { border-color: rgba(52,152,219,.3); }

/* ── Contact ── */
.contact-info { padding: 2rem 0; }
.contact-item { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.75rem; }
.contact-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(52,152,219,.1); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.contact-item h6 { margin: 0 0 .25rem; font-size: .875rem; color: var(--text-muted); }
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--blue); }

/* ── AI Specific ── */
.benefit-card {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all .3s;
}
.benefit-card:hover { border-color: rgba(52,152,219,.3); transform: translateY(-4px); }
.benefit-icon { font-size: 2.5rem; color: var(--blue); margin-bottom: 1rem; }
.usecase-card {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: all .3s;
}
.usecase-card:hover { border-color: rgba(52,152,219,.3); }
.usecase-icon { font-size: 2rem; color: var(--blue); margin-bottom: 1rem; }
.usecase-stat span { font-size: 1.5rem; font-weight: 800; color: var(--blue); display: block; }
.usecase-stat { margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }
.roi-calculator { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.roi-result { background: rgba(52,152,219,.08); border: 1px solid rgba(52,152,219,.2); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center; margin-top: 1.5rem; }
.roi-result-label { color: var(--text-muted); font-size: .85rem; margin-bottom: .5rem; }
.roi-result-value { font-size: 2rem; font-weight: 800; color: var(--blue); }
.analysis-card { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all .3s; }
.analysis-card:hover { border-color: rgba(52,152,219,.3); }
.analysis-icon { font-size: 2.5rem; color: var(--blue); margin-bottom: 1rem; }
.domain-card { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; transition: all .3s; }
.domain-card:hover { border-color: rgba(52,152,219,.3); }
.mini-stat { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; display: flex; align-items: center; gap: .75rem; font-size: .85rem; }
.mini-stat i { color: var(--blue); font-size: 1.25rem; }
.mini-feature { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2rem 1rem; text-align: center; }
.mini-feature i { font-size: 2rem; color: var(--blue); display: block; margin-bottom: .5rem; }

/* Chat previews / configurators */
.config-panel { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.chat-preview-container { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-preview-header { padding: 1rem 1.25rem; color: white; display: flex; align-items: center; }
.bot-avatar-sm { width: 32px; height: 32px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.chat-preview-body { padding: 1.25rem; min-height: 200px; max-height: 280px; overflow-y: auto; }
.preview-msg { padding: .6rem 1rem; border-radius: var(--radius-sm); margin-bottom: .75rem; max-width: 80%; font-size: .875rem; }
.preview-msg.bot { background: var(--dark-2); border: 1px solid var(--border); }
.preview-msg.user { background: var(--blue); color: white; margin-left: auto; }
.typing-demo span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: typing 1.4s infinite; margin: 0 2px; }
.typing-demo span:nth-child(2) { animation-delay: .2s; }
.typing-demo span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-preview-input { padding: .75rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; }

/* Demo chat */
.demo-chat-preview { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.demo-chat-header { background: var(--dark-2); padding: .75rem 1rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--border); }
.demo-chat-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-chat-dot.red { background: #ff5f57; }
.demo-chat-dot.yellow { background: #febc2e; }
.demo-chat-dot.green { background: #28c840; }
.demo-chat-body { padding: 1.5rem; min-height: 250px; }
.demo-msg { padding: .65rem 1rem; border-radius: var(--radius-sm); margin-bottom: .75rem; max-width: 75%; font-size: .875rem; }
.demo-msg.bot { background: var(--dark-2); border: 1px solid var(--border); }
.demo-msg.user { background: var(--blue); color: white; margin-left: auto; }

/* Assistant demo */
.assistant-demo { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.assistant-demo-header { background: linear-gradient(135deg, var(--blue), #5664d2); padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; color: white; }
.assistant-avatar { width: 40px; height: 40px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.assistant-demo-body { padding: 1.25rem; min-height: 200px; max-height: 280px; overflow-y: auto; }
.assistant-msg { padding: .65rem 1rem; border-radius: var(--radius-sm); margin-bottom: .75rem; max-width: 80%; font-size: .875rem; }
.assistant-msg.bot { background: var(--dark-2); border: 1px solid var(--border); }
.assistant-msg.user { background: var(--blue); color: white; margin-left: auto; }
.assistant-demo-input { padding: .75rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; }

/* Pricing */
.pricing-card {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; transition: all .3s;
}
.pricing-card.featured { border-color: var(--blue); background: linear-gradient(160deg, var(--dark-3), var(--dark-2)); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); color: white; padding: .2rem 1rem; border-radius: 20px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pricing-header { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.pricing-price { font-size: 1.75rem; font-weight: 800; color: var(--blue); margin: .5rem 0; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.pricing-features li { padding: .4rem 0; font-size: .9rem; color: var(--text-muted); display: flex; align-items: center; gap: .5rem; }

/* Process */
.process-step { padding: 1.5rem 1rem; }
.process-num { font-size: 3rem; font-weight: 800; color: rgba(52,152,219,.15); line-height: 1; }
.process-icon { font-size: 2rem; color: var(--blue); margin: .5rem 0; }

/* Generator */
.generator-controls { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.generator-output {
  background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; min-height: 300px; display: flex; align-items: center; justify-content: center;
}
.output-placeholder { text-align: center; }
.generated-content { white-space: pre-wrap; line-height: 1.8; color: var(--text); font-size: .9rem; }
.generator-actions { display: flex; gap: .5rem; }

/* About/Values */
.value-box { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center; }
.about-stat-card { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center; }
.about-stat-num { font-size: 2.5rem; font-weight: 800; line-height: 1; }

/* Content prose */
.content-prose h3 { color: var(--blue); margin-top: 2rem; }
.content-prose p { color: var(--text-muted); }

/* AI banner */
.ai-banner { background: linear-gradient(135deg, var(--dark-3), var(--dark-2)); border: 1px solid rgba(52,152,219,.2); }

/* ── Chatbot Widget ── */
.chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; opacity: 0; transform: scale(0.8); transition: all .3s; pointer-events: none; }
.chatbot-widget.visible { opacity: 1; transform: scale(1); pointer-events: all; }
.chatbot-bubble {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #5664d2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(52,152,219,.5);
  position: relative;
  transition: transform .2s;
}
.chatbot-bubble:hover { transform: scale(1.05); }
.chatbot-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: white;
  border-radius: 10px; padding: 1px 6px; font-size: .65rem; font-weight: 700;
}
.chatbot-panel {
  position: absolute; bottom: 70px; right: 0;
  width: 360px; max-height: 520px;
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.chatbot-header {
  background: linear-gradient(135deg, var(--blue), #5664d2);
  padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; color: white;
}
.chatbot-avatar { width: 36px; height: 36px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chatbot-status { font-size: .75rem; opacity: .85; display: flex; align-items: center; gap: .3rem; }
.status-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.chatbot-close-btn { background: none; border: none; color: white; opacity: .7; cursor: pointer; padding: .25rem; }
.chatbot-close-btn:hover { opacity: 1; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.chatbot-msg { display: flex; }
.chatbot-msg.bot .msg-bubble { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.chatbot-msg.user { justify-content: flex-end; }
.chatbot-msg.user .msg-bubble { background: var(--blue); color: white; }
.msg-bubble { padding: .65rem 1rem; border-radius: var(--radius-sm); max-width: 85%; font-size: .875rem; line-height: 1.5; }
.chatbot-input-area { border-top: 1px solid var(--border); padding: .75rem; }
.chatbot-input-row { display: flex; gap: .5rem; }
.chatbot-input { flex: 1; background: var(--dark-3) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: var(--radius-sm); padding: .5rem .75rem; font-size: .875rem; }
.chatbot-send-btn { background: var(--blue); border: none; color: white; border-radius: var(--radius-sm); padding: .5rem .75rem; cursor: pointer; transition: background .2s; }
.chatbot-send-btn:hover { background: var(--blue-light); }
.typing-indicator { display: flex; align-items: center; gap: .3rem; padding: .5rem 0; }
.typing-indicator span { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: typing 1.4s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

/* ── Footer ── */
.site-footer { background: var(--dark-2); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-brand { font-size: 1.25rem; font-weight: 800; letter-spacing: 1px; color: white; margin-bottom: .75rem; }
.footer-heading { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: white; }
.social-links { display: flex; gap: .75rem; }
.social-links a {
  width: 36px; height: 36px; background: var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; transition: all .2s;
}
.social-links a:hover { background: var(--blue); color: white; }
.newsletter-form .input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.newsletter-form .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.footer-divider { border-color: var(--border); margin: 2rem 0 1rem; }
.footer-bottom a:hover { color: var(--text); }
.chatbot-color-dot { width: 40px; height: 40px; border-radius: 50%; min-width: 40px; }

/* ── Admin ── */
.admin-body { background: #0d0f1a; padding-top: 0; }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; min-width: 250px; background: var(--dark-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; transition: all .3s; overflow-y: auto;
}
.admin-sidebar.collapsed { width: 60px; min-width: 60px; }
.sidebar-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.sidebar-brand { color: white; font-weight: 800; font-size: 1rem; text-decoration: none; display: flex; align-items: center; }
.sidebar-nav { padding: 1rem 0; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.5rem; color: var(--text-muted); text-decoration: none;
  font-size: .875rem; transition: all .2s;
}
.nav-item:hover { background: rgba(52,152,219,.08); color: white; }
.nav-item.active { background: rgba(52,152,219,.12); color: var(--blue); border-right: 3px solid var(--blue); }
.nav-item i { width: 16px; text-align: center; font-size: 1rem; }
.sidebar-divider { height: 1px; background: var(--border); margin: .5rem 1rem; }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar {
  background: var(--dark-2); border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem;
}
.topbar-title { font-weight: 600; flex: 1; }
.topbar-user { color: var(--text-muted); font-size: .875rem; display: flex; align-items: center; }
.admin-content { padding: 2rem; flex: 1; overflow-y: auto; }
.admin-card { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card-header { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.stat-widget { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.stat-widget-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; }
.stat-widget-value { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.stat-widget-label { color: var(--text-muted); font-size: .8rem; margin-top: .25rem; }
.table.table-dark { --bs-table-bg: transparent; }
.table.table-hover>tbody>tr:hover>* { background: rgba(52,152,219,.05); }

/* ── AI Engine Cards ── */
.engine-card {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all .3s;
}
.engine-card:hover { border-color: rgba(52,152,219,.3); transform: translateY(-4px); box-shadow: var(--glow); }
.engine-card.featured-engine { border-color: rgba(66,133,244,.4); background: linear-gradient(160deg, rgba(66,133,244,.05), var(--dark-2)); }
.engine-logo { height: 70px; display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.engine-tags { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .75rem 0; }
.engine-tag { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 12px; padding: .2rem .7rem; font-size: .75rem; color: var(--text-muted); }
.engine-badge { display: inline-block; padding: .3rem .9rem; border-radius: 20px; font-size: .75rem; font-weight: 700; color: white; }
.bg-orange { background: #cc785c; }
.bg-blue   { background: #4285f4; }
.bg-red    { background: #f55036; }

/* Responsive */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 80px 0 40px; }
  .hero-visual { width: 280px; height: 280px; }
  .hero-title { font-size: 2rem; }
  .chatbot-panel { width: 90vw; right: -10px; }
  .admin-sidebar { position: fixed; z-index: 100; left: -250px; height: 100%; }
  .admin-sidebar.show { left: 0; }
  .admin-wrapper { display: block; }
  .admin-main { width: 100%; }
}
