/* =====================================================================
   ITHVARAA TOURS & TRAVELS — DESIGN SYSTEM
   Palette drawn from Meghalaya's monsoon forests + Assamese gamosa gold
   ===================================================================== */

:root{
  --ink:        #0A211C;   /* deep monsoon forest, near-black green */
  --surface:    #0F2E26;   /* panel green */
  --surface-2:  #143A30;
  --mist:       #EAF2ED;   /* pale waterfall mist */
  --paper:      #F7F8F3;
  --fog:        #9FBAB0;
  --gold:       #C9A227;   /* brass / xorai gold */
  --gold-soft:  #E8CE7E;
  --clay:       #B4432B;   /* gulmohar / gamosa red, sparing accent */
  --teal:       #2E6E62;   /* waterfall pool teal */
  --line:       rgba(234,242,237,0.14);
  --shadow:     0 20px 60px rgba(4,20,16,0.35);
  --radius:     18px;
  --radius-sm:  10px;
  --font-display: 'Fraunces', serif;
  --font-mono:    'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --ease: cubic-bezier(.22,.9,.3,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1240px; margin:0 auto; padding:0 24px; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--ink); color:var(--mist); padding:10px 16px; z-index:999; }
.skip-link:focus{ left:12px; top:12px; }

h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; line-height:1.12; margin:0 0 .4em; letter-spacing:-0.01em; }
.eyebrow{
  font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.18em;
  font-size:.72rem; color:var(--teal); display:inline-flex; align-items:center; gap:10px; margin-bottom:14px;
}
.eyebrow::before{ content:''; width:26px; height:1px; background:var(--gold); display:inline-block; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------------------------------------------------------------- Mist background layer */
.site-mist{
  position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.5; mix-blend-mode:soft-light;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(201,162,39,.12), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(46,110,98,.18), transparent 60%);
}

/* ---------------------------------------------------------------- Header */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(10,33,28,.72); backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; gap:28px; padding:14px 24px; color:var(--mist); }
.brand{ display:flex; align-items:center; gap:10px; margin-right:auto; color:var(--mist); }
.brand-mark{ color:var(--gold); display:flex; border-radius:50%; overflow:hidden; flex-shrink:0; }
.brand-mark img{ display:block; border-radius:50%; }

/* Cute logo animations */
@keyframes logoBreathe{
  0%,100%{ transform:scale(1) rotate(0deg); filter:drop-shadow(0 0 0 rgba(201,162,39,0)); }
  50%{ transform:scale(1.06) rotate(-2deg); filter:drop-shadow(0 0 10px rgba(201,162,39,.55)); }
}
.logo-anim{ animation:logoBreathe 3.2s ease-in-out infinite; transition:transform .3s var(--ease); }
.logo-anim:hover{ transform:scale(1.15) rotate(4deg); }
.logo-anim-soft{ border-radius:50%; animation:logoBreathe 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .logo-anim, .logo-anim-soft{ animation:none; } }

.footer-logo-row{ display:flex; align-items:center; gap:12px; margin-bottom:6px; }
.footer-logo{ border-radius:50%; }

.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-family:var(--font-display); font-size:1.28rem; font-weight:600; }
.brand-sub{ font-family:var(--font-mono); font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; color:var(--fog); }
.main-nav-desktop{ display:flex; gap:26px; font-family:var(--font-mono); font-size:.86rem; }
.main-nav-desktop a{ position:relative; padding:6px 0; color:var(--mist); opacity:.85; }
.main-nav-desktop a:hover{ opacity:1; }
.main-nav-desktop a::after{ content:''; position:absolute; left:0; bottom:0; height:1px; width:0; background:var(--gold); transition:width .3s var(--ease); }
.main-nav-desktop a:hover::after{ width:100%; }
/* Standalone mobile drawer (lives outside <header> in the HTML -- see includes/header.php).
   Hidden by default; only shown by the max-width:760px rule further down. */
.main-nav{ display:none; }
.main-nav a{ position:relative; padding:6px 0; color:var(--mist); opacity:.85; }
.main-nav a:hover{ opacity:1; }
.main-nav a::after{ content:''; position:absolute; left:0; bottom:0; height:1px; width:0; background:var(--gold); transition:width .3s var(--ease); }
.main-nav a:hover::after{ width:100%; }
.header-cta{ display:flex; align-items:center; gap:14px; }
.phone-pill{ display:flex; align-items:center; gap:8px; color:var(--gold-soft); font-family:var(--font-mono); font-size:.82rem; }
.nav-toggle{ display:none; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:999px; font-family:var(--font-mono); font-size:.86rem; font-weight:500;
  border:1px solid transparent; cursor:pointer; transition:transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn-primary{ background:var(--gold); color:var(--ink); box-shadow:0 8px 24px rgba(201,162,39,.35); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(201,162,39,.45); }
.btn-outline{ border-color:var(--line); color:var(--mist); }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold-soft); }
.btn-ghost{ color:var(--ink); border-color:rgba(10,33,28,.2); }
.btn-ghost:hover{ border-color:var(--teal); }
.btn-block{ width:100%; }

/* ---------------------------------------------------------------- Hero */
.hero{
  position:relative; overflow:hidden; color:var(--mist);
  background:linear-gradient(180deg, var(--ink) 0%, var(--surface) 100%);
  padding:96px 0 120px;
}
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; position:relative; z-index:2; }
.hero-kicker{ font-family:var(--font-mono); letter-spacing:.2em; text-transform:uppercase; font-size:.72rem; color:var(--gold-soft); display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.hero-kicker .dot{ width:6px; height:6px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 4px rgba(201,162,39,.2); }
.hero h1{
  font-size:clamp(2.6rem, 5vw, 4.4rem); color:var(--paper);
}
.hero h1 em{ font-style:italic; color:var(--gold-soft); font-weight:500; }
.hero p.lede{ font-size:1.12rem; color:var(--fog); max-width:46ch; margin:18px 0 34px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.hero-stats{ display:flex; gap:36px; flex-wrap:wrap; }
.hero-stats div{ display:flex; flex-direction:column; }
.hero-stats strong{ font-family:var(--font-display); font-size:2rem; color:var(--gold-soft); }
.hero-stats span{ font-family:var(--font-mono); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:var(--fog); }

.hero-visual{ position:relative; z-index:2; }
.hero-visual .frame{
  position:relative; border-radius:22px; overflow:hidden; box-shadow:var(--shadow);
  border:1px solid rgba(234,242,237,.16);
  animation:float 7s ease-in-out infinite;
}
.hero-visual .frame img{ width:100%; height:520px; object-fit:cover; }
.hero-visual .frame::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(10,33,28,.75)); }
.hero-badge{
  position:absolute; left:-26px; bottom:34px; z-index:3;
  background:var(--paper); color:var(--ink); border-radius:16px; padding:16px 20px;
  box-shadow:var(--shadow); display:flex; gap:12px; align-items:center; max-width:230px;
  animation:float 7s ease-in-out infinite reverse;
}
.hero-badge svg{ flex-shrink:0; color:var(--gold); }
.hero-badge strong{ display:block; font-family:var(--font-display); font-size:1rem; }
.hero-badge span{ font-size:.78rem; color:#4b5f57; }

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

/* Cloud/mist parallax layers behind hero */
.cloud-layer{ position:absolute; z-index:1; pointer-events:none; opacity:.55; filter:blur(1px); }
.cloud-layer svg{ display:block; width:100%; }
.cloud-1{ top:-40px; left:-10%; width:70%; animation:drift 40s linear infinite; }
.cloud-2{ bottom:-60px; right:-15%; width:60%; animation:drift 55s linear infinite reverse; opacity:.35; }
@keyframes drift{ 0%{ transform:translateX(0);} 50%{ transform:translateX(40px);} 100%{ transform:translateX(0);} }

/* Waterfall progress rail — the signature element, fills as you scroll */
.falls-rail{
  position:fixed; right:18px; top:50%; transform:translateY(-50%); z-index:60;
  width:3px; height:220px; border-radius:3px; background:rgba(255,255,255,.18);
  display:none;
}
.falls-rail .fill{ width:100%; height:0%; background:linear-gradient(180deg, var(--gold), var(--teal)); border-radius:3px; transition:height .1s linear; }
@media (min-width:1100px){ .falls-rail{ display:block; } }

/* ---------------------------------------------------------------- Sections */
.section{ padding:96px 0; position:relative; z-index:2; }
.section-dark{ background:var(--ink); color:var(--mist); }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ color:#4b5f57; font-size:1.02rem; }
.section-dark .section-head p{ color:var(--fog); }

/* Package cards */
.pkg-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.pkg-card{
  background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:0 12px 34px rgba(10,33,28,.08);
  border:1px solid rgba(10,33,28,.06); transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  display:flex; flex-direction:column;
}
.pkg-card:hover{ transform:translateY(-8px); box-shadow:0 22px 48px rgba(10,33,28,.16); }
.pkg-media{ position:relative; height:180px; overflow:hidden; }
.pkg-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.pkg-card:hover .pkg-media img{ transform:scale(1.08); }
.pkg-region{ position:absolute; top:14px; left:14px; background:rgba(10,33,28,.75); color:var(--gold-soft); font-family:var(--font-mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.1em; padding:6px 12px; border-radius:999px; backdrop-filter:blur(6px); }
.pkg-body{ padding:22px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.pkg-body h3{ font-size:1.22rem; }
.pkg-meta{ display:flex; justify-content:space-between; align-items:center; font-family:var(--font-mono); font-size:.78rem; color:#4b5f57; margin-top:auto; padding-top:14px; border-top:1px dashed rgba(10,33,28,.12); }
.pkg-price strong{ color:var(--clay); font-family:var(--font-display); font-size:1.15rem; }

/* Fleet cards */
.fleet-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.fleet-card{ background:var(--surface); border-radius:var(--radius); overflow:hidden; color:var(--mist); border:1px solid var(--line); }
.fleet-media{ height:190px; overflow:hidden; }
.fleet-media img{ width:100%; height:100%; object-fit:cover; }
.fleet-body{ padding:18px 20px 22px; }
.fleet-body h3{ font-size:1.05rem; margin-bottom:4px; }
.fleet-cat{ font-family:var(--font-mono); font-size:.7rem; text-transform:uppercase; letter-spacing:.1em; color:var(--gold-soft); }
.fleet-feat{ list-style:none; padding:0; margin:14px 0 0; display:flex; flex-direction:column; gap:6px; font-size:.85rem; color:var(--fog); }
.fleet-feat li::before{ content:'—'; color:var(--gold); margin-right:8px; }
.fleet-rate{ margin-top:16px; padding-top:14px; border-top:1px solid var(--line); font-family:var(--font-mono); font-size:.82rem; display:flex; justify-content:space-between; }

/* Gallery masonry-ish */
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); grid-auto-rows:230px; gap:16px; }
.gallery-item{ position:relative; border-radius:14px; overflow:hidden; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.gallery-item:hover img{ transform:scale(1.1); }
.gallery-item.tall{ grid-row:span 2; }
.gallery-cap{ position:absolute; left:0; right:0; bottom:0; padding:16px; background:linear-gradient(0deg, rgba(10,33,28,.85), transparent); color:#fff; font-family:var(--font-mono); font-size:.78rem; opacity:0; transform:translateY(8px); transition:.3s var(--ease); }
.gallery-item:hover .gallery-cap{ opacity:1; transform:translateY(0); }

/* Process / route strip */
.route-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.route-strip::before{ content:''; position:absolute; top:26px; left:6%; right:6%; height:1px; background:repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); }
.route-step{ text-align:center; padding:0 14px; position:relative; }
.route-step .node{ width:52px; height:52px; border-radius:50%; background:var(--paper); border:1px solid rgba(10,33,28,.12); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; font-family:var(--font-display); color:var(--teal); position:relative; z-index:2; box-shadow:var(--shadow); }
.section-dark .route-step .node{ background:var(--surface); color:var(--gold-soft); border-color:var(--line); }
.route-step h4{ font-size:1.02rem; }
.route-step p{ font-size:.9rem; color:#4b5f57; }
.section-dark .route-step p{ color:var(--fog); }

/* Testimonials */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testi-card{ background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:28px; color:var(--mist); }
.testi-stars{ color:var(--gold); letter-spacing:2px; margin-bottom:14px; }
.testi-card p{ color:var(--fog); font-size:.96rem; }
.testi-name{ margin-top:18px; font-family:var(--font-mono); font-size:.82rem; color:var(--mist); }
.testi-name span{ display:block; color:var(--fog); font-size:.75rem; }

/* CTA band */
.cta-band{
  background:linear-gradient(120deg, var(--teal), var(--ink) 70%); border-radius:26px; padding:56px; color:var(--mist);
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h2{ margin:0; font-size:2rem; max-width:480px; }

/* Forms */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1 / -1; }
.field label{ font-family:var(--font-mono); font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; color:#4b5f57; }
.field input, .field select, .field textarea{
  padding:13px 16px; border-radius:10px; border:1px solid rgba(10,33,28,.16); font-family:var(--font-body); font-size:.95rem;
  background:#fff; color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; }
.contact-layout{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.contact-card{ background:var(--surface); color:var(--mist); border-radius:var(--radius); padding:32px; }
.contact-card .row{ display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.contact-card .row:last-child{ border-bottom:none; }

/* Footer */
.site-footer{ background:var(--ink); color:var(--fog); padding:72px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:50px; border-bottom:1px solid var(--line); }
.footer-brand p{ font-size:.9rem; margin:14px 0 18px; max-width:32ch; }
.brand-sub-inline{ font-family:var(--font-mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.12em; margin-left:8px; color:var(--fog); }
.footer-social{ display:flex; gap:10px; }
.footer-social a{ width:34px; height:34px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:.68rem; }
.footer-col h4{ color:var(--mist); font-size:.95rem; margin-bottom:16px; }
.footer-col a{ display:block; font-size:.88rem; padding:6px 0; color:var(--fog); }
.footer-col a:hover{ color:var(--gold-soft); }
.footer-bottom{ display:flex; justify-content:space-between; padding:22px 0; font-size:.78rem; }

/* WhatsApp FAB */
.whatsapp-fab{
  position:fixed; left:24px; bottom:24px; z-index:90; width:56px; height:56px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px rgba(0,0,0,.25);
}

/* Scroll reveal */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width:1080px){
  .pkg-grid{ grid-template-columns:repeat(2,1fr); }
  .fleet-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .testi-grid{ grid-template-columns:1fr 1fr; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:760px){
  /* backdrop-filter (like transform) creates a new containing block for
     position:fixed descendants. .main-nav is fixed and lives inside
     .site-header, so the header's own blur was still breaking the
     "fixed to viewport" full-screen mobile menu even after the
     future.css transform fix — same root cause, different property. */
  .site-header{ backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
}
@media (max-width:760px){
  .header-inner{ padding:12px 18px; gap:14px; }
  .brand-sub{ display:none; }
  .brand-name{ font-size:1.08rem; }
  /* .site-header creates its own stacking context (position:sticky + z-index),
     which used to trap .main-nav's z-index inside it -- and background/blur
     properties on .site-header used to break .main-nav's fixed positioning
     too. Both problems are now moot: .main-nav lives outside <header>
     entirely as a body-level sibling (see includes/header.php), so nothing
     the header does can affect it anymore. .main-nav-desktop below is the
     *other*, unrelated nav that stays inside the header for wide screens. */
  .main-nav-desktop{ display:none; }
  .main-nav{ display:flex; position:fixed; top:64px; left:0; right:0; bottom:0; width:100%; background:#f8faf9; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; flex-direction:column; padding:30px 24px; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .3s var(--ease), visibility .3s var(--ease); z-index:9500; overflow-y:auto; isolation:isolate; }
  .main-nav.open{ opacity:1; visibility:visible; pointer-events:auto; }
  .header-cta .phone-pill{ display:none; }
  .header-cta .btn{ padding:10px 16px; font-size:.78rem; }
  .nav-toggle{ display:flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:10px; }
  .nav-toggle span{ width:22px; height:2px; background:var(--ink); border-radius:2px; transition:background .2s; }
  .pkg-grid,.fleet-grid,.gallery-grid,.testi-grid{ grid-template-columns:1fr; }
  .contact-layout{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .route-strip{ grid-template-columns:1fr; gap:28px; }
  .route-strip::before{ display:none; }
  .cta-band{ flex-direction:column; text-align:center; padding:40px 26px; }
  .hero{ padding:56px 0 70px; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ width:100%; }
  .hero-stats{ gap:22px 28px; }
  .hero-stats strong{ font-size:1.5rem; }
  .hero-visual .frame img{ height:300px; }
  .hero-badge{ left:0; bottom:-18px; max-width:none; width:calc(100% - 20px); }
  .gallery-item.tall{ grid-row:auto; }
  .gallery-item{ height:220px; }
  .whatsapp-fab{ width:48px; height:48px; left:16px; bottom:80px; z-index:8000; }
}

@media (max-width:400px){
  .ibot-panel{ width:94vw; }
  .a-grid.cols-4{ grid-template-columns:1fr !important; }
}


/* =====================================================================
   ANIMATED CHAT ASSISTANT WIDGET
   ===================================================================== */
.ibot{ position:fixed; right:24px; bottom:24px; z-index:120; font-family:var(--font-body); }
.ibot-launcher{
  width:64px; height:64px; border-radius:50%; border:none; cursor:pointer; position:relative;
  background:linear-gradient(135deg, var(--gold), var(--clay)); color:var(--ink);
  display:flex; align-items:center; justify-content:center; box-shadow:0 14px 30px rgba(180,67,43,.35);
  transition:transform .3s var(--ease);
}
.ibot-launcher:hover{ transform:scale(1.06) rotate(-4deg); }
.ibot-launcher-close{ display:none; font-size:30px; line-height:1; }
.ibot.open .ibot-launcher-icon{ display:none; }
.ibot.open .ibot-launcher-close{ display:block; }
.ibot-ping{ position:absolute; inset:-6px; border-radius:50%; border:2px solid var(--gold); animation:ping 2.4s ease-out infinite; }
.ibot.open .ibot-ping{ display:none; }
@keyframes ping{ 0%{ transform:scale(.85); opacity:.9;} 100%{ transform:scale(1.5); opacity:0;} }

.ibot-panel{
  position:absolute; right:0; bottom:80px; width:360px; max-width:88vw; max-height:min(560px,72vh);
  background:var(--paper); border-radius:20px; overflow:hidden; box-shadow:0 30px 70px rgba(4,20,16,.4);
  display:flex; flex-direction:column;
  opacity:0; transform:translateY(18px) scale(.97); pointer-events:none; transition:opacity .3s var(--ease), transform .3s var(--ease);
  border:1px solid rgba(10,33,28,.08);
}
.ibot.open .ibot-panel{ opacity:1; transform:none; pointer-events:auto; }

.ibot-header{ background:linear-gradient(120deg, var(--ink), var(--surface)); color:var(--mist); display:flex; align-items:center; gap:12px; padding:16px 18px; }
.ibot-avatar{ width:38px; height:38px; border-radius:50%; background:rgba(201,162,39,.16); color:var(--gold); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ibot-heading{ display:flex; flex-direction:column; gap:2px; margin-right:auto; }
.ibot-heading strong{ font-family:var(--font-display); font-size:1rem; }
.ibot-heading span{ font-size:.72rem; color:var(--fog); display:flex; align-items:center; gap:6px; }
.ibot-dot{ width:7px; height:7px; border-radius:50%; background:#3ddc84; box-shadow:0 0 0 3px rgba(61,220,132,.25); display:inline-block; }
.ibot-min{ background:none; border:none; color:var(--mist); font-size:20px; cursor:pointer; padding:2px 8px; }

.ibot-messages{ flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:12px; background:
  radial-gradient(ellipse 80% 40% at 100% 0%, rgba(46,110,98,.06), transparent 60%), var(--paper); }
.ibot-msg{ max-width:82%; padding:11px 14px; border-radius:16px; font-size:.88rem; line-height:1.45; animation:bubbleIn .35s var(--ease); }
@keyframes bubbleIn{ from{ opacity:0; transform:translateY(8px) scale(.96);} to{ opacity:1; transform:none;} }
.ibot-msg.bot{ align-self:flex-start; background:#fff; border:1px solid rgba(10,33,28,.08); border-bottom-left-radius:4px; }
.ibot-msg.visitor{ align-self:flex-end; background:var(--ink); color:var(--mist); border-bottom-right-radius:4px; }
.ibot-msg.bot strong{ color:var(--teal); }

.ibot-typing{ display:inline-flex; gap:4px; align-self:flex-start; background:#fff; border:1px solid rgba(10,33,28,.08); padding:12px 16px; border-radius:16px; border-bottom-left-radius:4px; }
.ibot-typing span{ width:6px; height:6px; border-radius:50%; background:#9aa; animation:typing 1.1s infinite ease-in-out; }
.ibot-typing span:nth-child(2){ animation-delay:.15s; }
.ibot-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes typing{ 0%,60%,100%{ transform:translateY(0); opacity:.5;} 30%{ transform:translateY(-5px); opacity:1;} }

.ibot-quick{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.ibot-chip{ border:1px solid var(--teal); color:var(--teal); background:#fff; font-family:var(--font-mono); font-size:.76rem; padding:8px 13px; border-radius:999px; cursor:pointer; transition:.25s; }
.ibot-chip:hover{ background:var(--teal); color:#fff; }

.ibot-inputrow{ display:flex; gap:10px; padding:14px; border-top:1px solid rgba(10,33,28,.08); background:#fff; }
.ibot-inputrow input{ flex:1; border:1px solid rgba(10,33,28,.15); border-radius:999px; padding:11px 16px; font-size:.88rem; font-family:var(--font-body); }
.ibot-inputrow input:focus{ outline:2px solid var(--gold); }
.ibot-inputrow button{ width:42px; height:42px; border-radius:50%; border:none; background:var(--gold); color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

@media (max-width:480px){
  .ibot{ right:16px; bottom:16px; }
  .ibot-panel{ width:92vw; right:-6px; }
}
