/* ============================================================
   SAYARFLUX TECHNOLOGIES — MAIN STYLESHEET
   ============================================================ */

/* === TOKENS === */
:root {
  --navy:       #0A1628;
  --navy-mid:   #0F2040;
  --navy-light: #162B52;
  --nav-bg:     #01091A;
  --blue:       #2563EB;
  --blue-light: #3B82F6;
  --blue-glow:  #2563EB22;
  --white:      #FFFFFF;
  --off-white:  #F8FAFC;
  --slate:      #64748B;
  --slate-light:#94A3B8;
  --border:     #E2E8F0;
  --border-dark:#1E3A5F;
  --accent-bg:  #EFF6FF;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-h: 64px;
  --nav-h-mobile: 56px;
  --radius: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--navy); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(37,99,235,.25), 0 4px 12px rgba(37,99,235,.2);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(37,99,235,.35); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--navy);
  background: var(--white);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost {
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-nav {
  background: var(--blue);
  color: var(--white);
  padding: .55rem 1.25rem;
  font-size: .875rem;
}
.btn-nav:hover { background: var(--blue-light); }
.btn--full { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }

/* === NAV ===
   Scrolls away with the page (not fixed) — logo flush left, hamburger flush right */
.nav {
  position: relative;
  height: var(--nav-h);
  background: var(--nav-bg);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white) !important;
  margin-left: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links li a {
  color: rgba(255,255,255,.85);
  font-size: .9375rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links li a:hover { color: var(--white); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  align-self: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy);
  border-top: 1px solid var(--border-dark);
  padding: 1.25rem 2rem;
  gap: 1.25rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
}
.nav-mobile a {
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  font-weight: 500;
}
.nav-mobile.open { display: flex; }

/* === HERO ===
   Starts near the top of the page — no full-viewport centering */
.hero {
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding: 2rem 2rem 3rem;
}
#networkCanvas {
  position: absolute;
  inset: 0;
  opacity: .45;
  pointer-events: none;
}
.hero-content {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, .15);
  border: 1px solid rgba(37, 99, 235, .35);
  color: #93C5FD;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-accent {
  background: linear-gradient(90deg, #2563EB, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1875rem;
  color: var(--slate-light);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .8rem;
  color: var(--slate-light);
  font-weight: 500;
  margin-top: .25rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-dark);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--slate-light);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* === SECTIONS === */
.section { padding: 6rem 2rem; }
.section--dark { background: var(--navy); color: var(--white); }
.section--accent { background: var(--accent-bg); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header--light { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow--light { color: #60A5FA; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.section--dark .section-title { color: var(--white); }
.section-sub {
  font-size: 1.0625rem;
  color: var(--slate);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-sub--light { color: var(--slate-light); }

/* === PRODUCTS === */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.product-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  background: var(--white);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0;
  transition: opacity .25s;
}
.product-card:hover { box-shadow: 0 8px 40px rgba(10,22,40,.1); transform: translateY(-3px); border-color: var(--blue-light); }
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.product-icon svg { width: 28px; height: 28px; max-width: 28px; max-height: 28px; display: block; }
.product-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.product-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--navy);
}
.product-desc {
  color: var(--slate);
  font-size: .9375rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.product-features {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 2rem;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9rem;
  color: var(--navy);
  font-weight: 500;
  overflow: hidden;
}
.product-features li svg,
.pricing-features li svg,
svg.check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  display: inline-block;
  color: var(--blue);
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: background .2s, border-color .2s;
}
.service-card:hover { background: rgba(255,255,255,.07); border-color: rgba(37,99,235,.4); }
.service-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: .08em;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.service-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .625rem;
  letter-spacing: -.01em;
}
.service-card p {
  font-size: .875rem;
  color: var(--slate-light);
  line-height: 1.65;
}
.services-cta {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
}
.services-cta p {
  color: var(--slate-light);
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

/* === PRICING === */
.pricing-toggle {
  display: flex;
  gap: .5rem;
  background: var(--off-white);
  border-radius: 10px;
  padding: .375rem;
  width: fit-content;
  margin: 0 auto 3.5rem;
  border: 1px solid var(--border);
}
.pricing-tab {
  padding: .5rem 1.5rem;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .5px;
  color: #00E5FF;
  background: transparent;
  border: 2px solid #00E5FF;
  transition: all .2s;
}
.pricing-tab:hover { background: rgba(0, 229, 255, .15); }
.pricing-tab.active {
  background: linear-gradient(90deg, #FF3CAC, #784BA0, #2B86C5);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 60, 172, .4);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-grid.hidden { display: none; }
.pricing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--white);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow), 0 8px 32px rgba(37,99,235,.12);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .875rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  margin-bottom: .75rem;
}
.pricing-currency {
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate);
  align-self: flex-start;
  margin-top: .4rem;
}
.pricing-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.04em;
  line-height: 1;
}
.pricing-per {
  font-size: .9rem;
  color: var(--slate);
  font-weight: 500;
}
.pricing-desc {
  font-size: .875rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.pricing-features li {
  font-size: .9rem;
  color: var(--navy);
  padding-left: 1.25rem;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: .8rem;
}

/* === WHY US === */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-text .section-title { text-align: left; }
.why-text p {
  color: var(--slate);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-top: 1rem;
}
.why-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pillar-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.pillar h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.pillar p {
  font-size: .875rem;
  color: var(--slate);
  line-height: 1.6;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: flex-start;
}
.contact-text h2 { color: var(--white); text-align: left; }
.contact-text .eyebrow { color: #60A5FA; }
.contact-text > p {
  color: var(--slate-light);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.contact-details { display: flex; flex-direction: column; gap: .875rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  color: var(--slate-light);
  font-size: .9375rem;
}
.contact-icon { font-size: 1rem; }
.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--white);
  font-size: .9375rem;
  transition: border-color .2s;
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate); }
.form-group select option { background: var(--navy-mid); color: var(--white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(37,99,235,.08);
}
.form-note {
  text-align: center;
  color: var(--slate-light);
  font-size: .8125rem;
  margin-top: .875rem;
}

/* === FOOTER === */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border-dark);
  padding: 4rem 2rem 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p {
  color: var(--slate-light);
  font-size: .9rem;
  max-width: 280px;
  line-height: 1.65;
}
.footer-links { display: flex; gap: 4rem; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.footer-col h5 {
  color: var(--white);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.footer-col a {
  color: var(--slate-light);
  font-size: .9rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-light);
  font-size: .8125rem;
}

/* === FLOATING WHATSAPP BUTTON === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

/* === UTILITIES === */
.hidden { display: none !important; }

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0 1rem; }
  .products-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 1.25rem 1.25rem 2.5rem; }
}

@media (max-width: 480px) {
  .nav { height: var(--nav-h-mobile); }
  .nav-inner { height: var(--nav-h-mobile); }
  .logo-img { height: 34px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 1.25rem; }
  .stat-divider { display: none; }
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* === LEGAL PAGES (Privacy / Terms) === */
.legal-page { padding-top: 3rem; padding-bottom: 5rem; }
.legal-container { max-width: 780px; }
.legal-container .eyebrow { display: block; }
.legal-updated { color: var(--slate); font-size: .9rem; margin-bottom: 2.5rem; }
.legal-container h1 { margin-bottom: .5rem; }
.legal-container h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.legal-container p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-container ul {
  margin: 0 0 1.25rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-container ul li {
  color: var(--slate);
  font-size: .9375rem;
  line-height: 1.7;
  margin-bottom: .5rem;
}
.legal-container a {
  color: var(--blue);
  text-decoration: underline;
}

/* === Roadmap section: tighter nav links on smaller desktop widths === */
@media (max-width: 1024px) {
  .nav-links { gap: 1.25rem; }
  .nav-links li a { font-size: .875rem; }
}

/* === CHATBOT WIDGET === */
.chatbot-float {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
  color: var(--white);
  font-size: 1.5rem;
}
.chatbot-float:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0,0,0,.45); }

.chatbot-panel {
  position: fixed;
  bottom: 168px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 440px;
  max-height: calc(100vh - 200px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(10,22,40,.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  border: 1px solid var(--border);
}
.chatbot-panel.open { display: flex; }

.chatbot-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatbot-header h4 { font-size: .95rem; font-weight: 700; }
.chatbot-header span { font-size: .75rem; color: var(--slate-light); display: block; }
.chatbot-close { color: var(--white); font-size: 1.25rem; cursor: pointer; line-height: 1; }

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--off-white);
}
.chatbot-msg {
  max-width: 85%;
  padding: .6rem .9rem;
  border-radius: 12px;
  font-size: .875rem;
  line-height: 1.5;
}
.chatbot-msg--bot {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot-msg--user {
  background: var(--blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-form {
  display: flex;
  border-top: 1px solid var(--border);
  padding: .75rem;
  gap: .5rem;
  background: var(--white);
}
.chatbot-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .75rem;
  font-size: .875rem;
  outline: none;
}
.chatbot-form input:focus { border-color: var(--blue); }
.chatbot-form button {
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  padding: .6rem 1rem;
  font-size: .875rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .chatbot-float { bottom: 82px; right: 16px; width: 52px; height: 52px; }
  .chatbot-panel { bottom: 146px; right: 16px; }
}

/* === CHATBOT WIDGET (v2 - complete, bottom-center, visible AI cues) === */
.chatbot-float {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: box-shadow .2s ease;
  color: var(--white);
  font-size: 1.5rem;
  animation: chatbotPulse 2s ease-out 3;
}
.chatbot-float:hover { box-shadow: 0 6px 18px rgba(0,0,0,.45); }

@keyframes chatbotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.chatbot-icon { pointer-events: none; }

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #16A34A;
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 2px 5px;
  border-radius: 100px;
  border: 2px solid var(--navy);
  line-height: 1;
}

.chatbot-label {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  padding: .55rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  z-index: 999;
  opacity: 1;
  transition: opacity .4s ease, transform .4s ease;
}
.chatbot-label.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); pointer-events: none; }
.chatbot-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy);
}

.chatbot-panel {
  position: fixed;
  bottom: 96px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 180px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(10,22,40,.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  border: 1px solid var(--border);
}
.chatbot-panel.open { display: flex; }

.chatbot-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chatbot-header h4 { font-size: .95rem; font-weight: 700; }
.chatbot-header span { font-size: .75rem; color: var(--slate-light); display: block; }
.chatbot-close { color: var(--white); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: .25rem; }

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--off-white);
}
.chatbot-msg {
  max-width: 85%;
  padding: .6rem .9rem;
  border-radius: 12px;
  font-size: .875rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.chatbot-msg--bot {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot-msg--user {
  background: var(--blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-form {
  display: flex;
  gap: .5rem;
  border-top: 1px solid var(--border);
  padding: .75rem;
  flex-shrink: 0;
  background: var(--white);
}
.chatbot-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .55rem 1rem;
  font-size: .875rem;
  outline: none;
}
.chatbot-form input:focus { border-color: var(--blue); }
.chatbot-form button {
  background: var(--blue);
  color: var(--white);
  border-radius: 100px;
  padding: .55rem 1.1rem;
  font-size: .875rem;
  font-weight: 600;
}
.chatbot-form button:hover { background: var(--blue-light); }

@media (max-width: 480px) {
  .chatbot-float { bottom: 16px !important; width: 56px; height: 56px; font-size: 1.35rem; }
  .chatbot-label { bottom: 82px; font-size: .75rem; }
  .chatbot-panel { bottom: 82px; }
}
