/* === BEE EEM EES - style.css v2 === */
:root {
  --amber: #f59e0b;
  --amber-l: #fcd34d;
  --amber-d: #d97706;
  --red: #ef4444;
  --blue: #3b82f6;
  --green: #10b981;
  --purple: #8b5cf6;
  --bg: #080c14;
  --bg-card: #0f1729;
  --bg-card2: #111827;
  --glass: rgba(15, 23, 41, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-a: rgba(245, 158, 11, 0.3);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --dim: #64748b;
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 24px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --shadow-a: 0 0 30px rgba(245, 158, 11, 0.2);
  --grad: linear-gradient(135deg, #f59e0b, #ef4444);
  --t: .3s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6
}

a {
  text-decoration: none;
  color: inherit
}

ul {
  list-style: none
}

input,
select,
textarea {
  font-family: inherit
}

::-webkit-scrollbar {
  width: 6px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: var(--amber-d);
  border-radius: 3px
}

/* ===== GLOBAL ANIMATED BACKGROUND ===== */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 12s ease-in-out infinite
}

.bgo1 {
  width: 600px;
  height: 600px;
  background: rgba(245, 158, 11, .08);
  top: -150px;
  left: -150px;
  animation-delay: 0s
}

.bgo2 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, .06);
  bottom: -100px;
  right: -100px;
  animation-delay: -4s
}

.bgo3 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, .05);
  top: 40%;
  left: 60%;
  animation-delay: -8s
}

.bgo4 {
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, .04);
  bottom: 30%;
  left: 10%;
  animation-delay: -6s
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0) scale(1)
  }

  50% {
    transform: translateY(-40px) scale(1.05)
  }
}

/* All sections sit above the background */
body>*:not(.global-bg) {
  position: relative;
  z-index: 1
}

/* Grid overlay on hero only */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none
}

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none
}

.loader-inner {
  text-align: center
}

.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2rem
}

.loader-hex {
  width: 60px;
  height: 60px;
  animation: hexSpin 3s linear infinite
}

@keyframes hexSpin {
  to {
    transform: rotate(360deg)
  }
}

.brand-load {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: .1em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.loader-bar {
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, .1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 1rem
}

.loader-fill {
  height: 100%;
  width: 0;
  background: var(--grad);
  animation: fill 2.2s ease forwards
}

@keyframes fill {
  to {
    width: 100%
  }
}

.loader-text {
  color: var(--muted);
  font-size: .875rem;
  animation: pulse 1.5s ease-in-out infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: .4
  }

  50% {
    opacity: 1
  }
}

/* ===== BEE ANIMATION ===== */
.bee-flight-path {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bee {
  position: absolute;
  left: -50px;
  top: 50%;
  width: 50px;
  height: 36px;
  animation: beefly 2.4s cubic-bezier(.4, 0, .2, 1) forwards,
    beeHover 1.2s 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, .5));
  z-index: 10;
}

.bee-body {
  position: relative;
  width: 34px;
  height: 26px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-left: 8px;
  margin-top: 5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, .3), inset 0 -3px 6px rgba(0, 0, 0, .15);
}

.bee-head {
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  border-radius: 50%;
  z-index: 2;
}

.bee-eye {
  position: absolute;
  left: 3px;
  top: 5px;
  width: 5px;
  height: 6px;
  background: #1e1b18;
  border-radius: 50%;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .5);
}

.bee-antenna {
  position: absolute;
  width: 1.5px;
  height: 10px;
  background: #92400e;
  top: -8px;
  border-radius: 1px;
  transform-origin: bottom center;
}

.bee-antenna::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -1.5px;
  width: 4px;
  height: 4px;
  background: #f59e0b;
  border-radius: 50%;
}

.bee-antenna-l {
  left: 3px;
  transform: rotate(-25deg);
  animation: antennaWiggle 0.4s ease-in-out infinite alternate;
}

.bee-antenna-r {
  left: 8px;
  transform: rotate(15deg);
  animation: antennaWiggle 0.4s 0.1s ease-in-out infinite alternate;
}

@keyframes antennaWiggle {
  from {
    transform: rotate(-25deg);
  }

  to {
    transform: rotate(-15deg);
  }
}

.bee-stripe {
  width: 22px;
  height: 3px;
  background: #1e1b18;
  border-radius: 2px;
}

.bee-stinger {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid #92400e;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.bee-wing {
  position: absolute;
  width: 22px;
  height: 14px;
  background: rgba(255, 255, 255, .35);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(1px);
  z-index: 3;
  transform-origin: bottom center;
}

.bee-wing-left {
  top: -6px;
  left: 14px;
  transform: rotate(-20deg);
  animation: wingFlap 0.06s ease-in-out infinite alternate;
}

.bee-wing-right {
  top: -4px;
  left: 24px;
  transform: rotate(15deg);
  animation: wingFlap 0.06s 0.03s ease-in-out infinite alternate;
}

@keyframes wingFlap {
  from {
    transform: rotate(-25deg) scaleY(1);
  }

  to {
    transform: rotate(25deg) scaleY(.7);
  }
}

/* Bee flight: enter left, curve up, circle the B logo, land on it & stay */
@keyframes beefly {
  0% {
    left: -60px;
    top: 70%;
    transform: rotate(-15deg) scale(.6);
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  /* Flying upward to the right */
  18% {
    left: 12%;
    top: 55%;
    transform: rotate(-25deg) scale(.85);
  }

  /* Swooping up toward center */
  32% {
    left: 30%;
    top: 32%;
    transform: rotate(-10deg) scale(.95);
  }

  /* Pass above the logo */
  44% {
    left: 48%;
    top: 22%;
    transform: rotate(15deg) scale(1);
  }

  /* Circle right of logo */
  54% {
    left: 56%;
    top: 35%;
    transform: rotate(35deg) scale(1);
  }

  /* Circle below logo */
  64% {
    left: 48%;
    top: 50%;
    transform: rotate(55deg) scale(.95);
  }

  /* Circle left of logo */
  72% {
    left: 40%;
    top: 38%;
    transform: rotate(-30deg) scale(.9);
  }

  /* Approaching the B logo */
  82% {
    left: 45%;
    top: 34%;
    transform: rotate(-15deg) scale(.85);
  }

  /* Almost landed */
  92% {
    left: calc(50% - 28px);
    top: calc(50% - 62px);
    transform: rotate(-5deg) scale(.8);
  }

  /* Landed on the B logo - stays here */
  100% {
    left: calc(50% - 28px);
    top: calc(50% - 62px);
    transform: rotate(0deg) scale(.75);
    opacity: 1;
  }
}

/* Gentle hover wobble when bee is landed on the logo */
@keyframes beeHover {

  0%,
  100% {
    transform: rotate(0deg) scale(.75) translateY(0);
  }

  50% {
    transform: rotate(2deg) scale(.75) translateY(-3px);
  }
}

/* Sparkle trail */
.bee-sparkle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fbbf24;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px 3px rgba(251, 191, 36, .5);
}

.bee-sparkle.s1 {
  animation: sparkle1 2.4s 0.2s ease-out forwards;
}

.bee-sparkle.s2 {
  animation: sparkle2 2.4s 0.4s ease-out forwards;
}

.bee-sparkle.s3 {
  animation: sparkle3 2.4s 0.6s ease-out forwards;
}

.bee-sparkle.s4 {
  animation: sparkle4 2.4s 0.9s ease-out forwards;
}

.bee-sparkle.s5 {
  animation: sparkle5 2.4s 1.2s ease-out forwards;
}

@keyframes sparkle1 {
  0% {
    left: 10%;
    top: 58%;
    opacity: 0;
    transform: scale(0);
  }

  10% {
    opacity: 1;
    transform: scale(1.5);
  }

  40% {
    opacity: .4;
    transform: scale(.8);
  }

  100% {
    left: 20%;
    top: 45%;
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes sparkle2 {
  0% {
    left: 22%;
    top: 48%;
    opacity: 0;
    transform: scale(0);
  }

  10% {
    opacity: 1;
    transform: scale(1.3);
  }

  40% {
    opacity: .4;
    transform: scale(.6);
  }

  100% {
    left: 35%;
    top: 30%;
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes sparkle3 {
  0% {
    left: 35%;
    top: 30%;
    opacity: 0;
    transform: scale(0);
  }

  10% {
    opacity: 1;
    transform: scale(1.4);
  }

  40% {
    opacity: .3;
    transform: scale(.7);
  }

  100% {
    left: 50%;
    top: 22%;
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes sparkle4 {
  0% {
    left: 52%;
    top: 28%;
    opacity: 0;
    transform: scale(0);
  }

  10% {
    opacity: 1;
    transform: scale(1.2);
  }

  40% {
    opacity: .3;
    transform: scale(.5);
  }

  100% {
    left: 55%;
    top: 40%;
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes sparkle5 {
  0% {
    left: 46%;
    top: 45%;
    opacity: 0;
    transform: scale(0);
  }

  10% {
    opacity: 1;
    transform: scale(1);
  }

  40% {
    opacity: .3;
    transform: scale(.5);
  }

  100% {
    left: 48%;
    top: 35%;
    opacity: 0;
    transform: scale(0);
  }
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: .875rem 0;
  transition: background var(--t), backdrop-filter var(--t)
}

#navbar.scrolled {
  background: rgba(8, 12, 20, .95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border)
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem
}

.logo-icon svg {
  width: 38px;
  height: 38px
}

.logo-main {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--amber);
  line-height: 1.1;
  display: block
}

.logo-sub {
  font-size: .6rem;
  color: var(--muted);
  display: block
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem
}

.nav-link {
  padding: .45rem .8rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
  position: relative
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: left var(--t), right var(--t)
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, .05)
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 20%;
  right: 20%
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t)
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px)
}

.hamburger.active span:nth-child(2) {
  opacity: 0
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px)
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.4rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, .3)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, .5)
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-a);
  color: var(--amber)
}

.btn-outline:hover {
  background: rgba(245, 158, 11, .1);
  border-color: var(--amber);
  transform: translateY(-2px)
}

.btn-outline-danger {
  background: transparent;
  border: 1.5px solid rgba(239, 68, 68, .4);
  color: var(--red);
  font-size: .8rem
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, .1)
}

.btn-secondary {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  border: 1px solid var(--border)
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .14)
}

.btn-sm {
  padding: .45rem .9rem;
  font-size: .78rem
}

.btn-sm svg {
  width: 14px;
  height: 14px
}

.btn-lg {
  padding: .95rem 1.875rem;
  font-size: .95rem;
  border-radius: var(--r)
}

.btn-full {
  width: 100%
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.text-amber {
  color: var(--amber)
}

/* ===== SECTIONS ===== */
.section {
  padding: 5.5rem 0
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem
}

.section-header {
  text-align: center;
  margin-bottom: 3rem
}

.section-badge {
  display: inline-block;
  padding: .3rem .9rem;
  background: rgba(245, 158, 11, .1);
  border: 1px solid var(--border-a);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: .05em;
  margin-bottom: .875rem
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .875rem
}

.section-desc {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: .95rem
}

[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease
}

[data-aos].visible {
  opacity: 1;
  transform: translateY(0)
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 4rem 6rem;
  gap: 2.5rem
}

.hero-content {
  position: relative;
  z-index: 2
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  background: rgba(245, 158, 11, .1);
  border: 1px solid var(--border-a);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 1.25rem;
  animation: fadeUp .6s ease both
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.5s ease-in-out infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem
}

.hero-title span {
  display: block
}

.line1 {
  animation: fadeUp .6s .1s ease both
}

.line2 {
  animation: fadeUp .6s .2s ease both
}

.line3 {
  animation: fadeUp .6s .3s ease both
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 480px;
  animation: fadeUp .6s .4s ease both
}

.hero-desc strong {
  color: var(--amber)
}

.hero-cta {
  display: flex;
  gap: .875rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeUp .6s .5s ease both
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeUp .6s .6s ease both
}

.stat-item {
  text-align: center
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--amber)
}

.stat-label {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  margin-top: .1rem
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center
}

.network-orb {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center
}

.network-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-a);
  animation: ringPulse 3s ease-in-out infinite
}

.ring1 {
  width: 100%;
  height: 100%
}

.ring2 {
  width: 72%;
  height: 72%;
  animation-delay: -1s
}

.ring3 {
  width: 44%;
  height: 44%;
  animation-delay: -2s
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: .3;
    transform: scale(1)
  }

  50% {
    opacity: .8;
    transform: scale(1.03)
  }
}

.network-core svg {
  width: 90px;
  height: 90px
}

.floating-cards {
  position: absolute;
  inset: 0
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  white-space: nowrap
}

.fc1 {
  top: 0;
  left: -70px;
  animation: fa 4s ease-in-out infinite
}

.fc2 {
  right: -50px;
  top: 50%;
  animation: fb 4s ease-in-out infinite
}

.fc3 {
  bottom: 0;
  left: -30px;
  animation: fa 4s ease-in-out -2s infinite
}

@keyframes fa {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

@keyframes fb {

  0%,
  100% {
    transform: translateY(-50%)
  }

  50% {
    transform: translateY(calc(-50% - 12px))
  }
}

.fc-icon {
  font-size: 1.4rem
}

.fc-title {
  font-size: .78rem;
  font-weight: 700
}

.fc-sub {
  font-size: .68rem;
  color: var(--amber)
}

.scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .72rem;
  animation: fadeUp 1s 1s ease both
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 4px
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--amber);
  border-radius: 2px;
  animation: sw 1.5s ease-in-out infinite
}

@keyframes sw {
  0% {
    opacity: 1;
    transform: translateY(0)
  }

  100% {
    opacity: 0;
    transform: translateY(9px)
  }
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: var(--grad);
  overflow: hidden;
  padding: .6rem 0
}

.ticker-track {
  display: flex;
  gap: 4rem;
  animation: ticker 35s linear infinite;
  white-space: nowrap
}

.ticker-track span {
  font-size: .82rem;
  font-weight: 700;
  color: #0f1729
}

@keyframes ticker {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

.services-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t)
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-a);
  box-shadow: var(--shadow-a)
}

.service-card.featured {
  border-color: var(--amber-d);
  background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, .04))
}

.featured-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: var(--amber-a);
  color: var(--amber);
  font-size: .65rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 1px solid var(--amber-b)
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem
}

.service-icon-wrap.bsnl {
  background: rgba(59, 130, 246, .1);
  color: #3b82f6
}

.service-icon-wrap.railtel {
  background: rgba(245, 158, 11, .1);
  color: var(--amber)
}


.service-icon {
  font-size: 1.25rem
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem
}

.service-card p {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
  margin-bottom: 1.25rem
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.5rem
}

.service-features li {
  font-size: .8rem;
  color: var(--text-d);
  margin-bottom: .4rem;
  padding-left: 1.25rem;
  position: relative
}

.service-features li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .4rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber)
}

.service-link {
  color: var(--amber);
  font-size: .82rem;
  font-weight: 600
}

/* ===== PLANS ===== */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.02) 100%);
  border: 1px solid var(--amber-a);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 800px;
}

.promo-icon {
  font-size: 2rem;
}

.promo-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.promo-text strong {
  color: var(--amber);
  font-size: 1.05rem;
}

.promo-text span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.promo-price {
  color: #fff;
  font-weight: 700;
}

.plan-tabs {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-bottom: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .35rem;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto
}

.plan-tab {
  padding: .55rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: all var(--t)
}

.plan-tab.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, .3)
}

.plans-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

.plans-grid.active {
  display: grid
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t)
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-a)
}

.plan-card.best-value {
  border-color: var(--amber-d);
  background: linear-gradient(135deg, #0f1729, #1a1200);
  transform: scale(1.02)
}

.plan-card.best-value:hover {
  transform: scale(1.02) translateY(-5px)
}

.best-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .22rem .9rem;
  border-radius: 0 0 9px 9px
}

.plan-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border)
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--muted)
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
  margin-bottom: .4rem
}

.plan-price span {
  font-size: 2.8rem
}

.plan-price small {
  font-size: .85rem;
  font-weight: 400;
  color: var(--muted)
}

.plan-tagline {
  font-size: .75rem;
  color: var(--dim)
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem
}

.feat-tick {
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0
}

.feat-cross {
  color: var(--dim);
  font-size: .78rem;
  flex-shrink: 0
}

.plans-note {
  text-align: center;
  color: var(--dim);
  font-size: .78rem;
  margin-top: 1.75rem
}

/* ===== PLAN CARD ANIMATIONS ===== */

/* Base transitions for the card */
.plan-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
}

/* Subtle gradient border inset using pseudo-element */
.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  /* Border thickness */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%, rgba(245, 158, 11, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.4s ease, background 0.4s ease;
}

/* On hover: lift the card slightly, illuminate shadow, and highlight border */
.plan-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.15);
  border-color: transparent;
  /* Let the ::before border take over visually */
}

/* Change the gradient border on hover */
.plan-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--amber), rgba(2ef, 68, 68, 0.5), transparent 70%);
}

/* Highlight the price smoothly without intense glowing */
.plan-card .plan-price {
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.plan-card:hover .plan-price {
  transform: scale(1.05);
  text-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Feature icons subtle behavior (removed chaotic spinning/bouncing) */
.plan-features li::before {
  font-style: normal;
  font-size: 1rem;
  margin-right: 6px;
  display: inline-block;
  opacity: 0.8;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Icon assignments */
.plan-features li[data-type="speed"]::before {
  content: '⚡';
}

.plan-features li[data-type="data"]::before {
  content: '💾';
}

.plan-features li[data-type="ott"]::before {
  content: '📺';
}

.plan-features li[data-type="modem"]::before {
  content: '📡';
}

.plan-features li[data-type="fup"]::before {
  content: '🔃';
}

.plan-features li[data-type="setup"]::before {
  content: '🔧';
}

/* Simple elegant lift on feature hover */
.plan-features li {
  transition: transform 0.2s ease, color 0.2s ease;
}

.plan-features li:hover {
  transform: translateX(4px);
  color: #fff;
}

.plan-features li:hover::before {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Ensure the tick inside the list doesn't aggressively bounce anymore */
.feat-tick {
  transition: text-shadow 0.2s ease;
}

.plan-features li:hover .feat-tick {
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* --- Best-value card enhancements --- */
.plan-card.best-value {
  background: linear-gradient(145deg, #111827, #0f1729);
}

.plan-card.best-value::before {
  background: linear-gradient(135deg, var(--amber), var(--red));
  opacity: 0.8;
}

.plan-card.best-value:hover::before {
  background: linear-gradient(135deg, var(--amber-l), var(--amber));
  box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.2);
}

.plan-card.best-value .best-badge {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plan-card.best-value:hover .best-badge {
  transform: translateX(-50%) translateY(-2px);
}

/* --- Plan tab button active animation --- */
.plan-tab.active {
  animation: tabPulse 2.5s ease-in-out infinite;
}

@keyframes tabPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(245, 158, 11, .3);
  }

  50% {
    box-shadow: 0 4px 28px rgba(245, 158, 11, .65);
  }
}

/* --- Promo banner entrance + float --- */
.promo-banner {
  animation: promoBannerFloat 3s ease-in-out infinite;
}

@keyframes promoBannerFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ===== PAY WIZARD ===== */
.pay-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem
}

.pay-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem
}

.psi-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  color: var(--muted);
  transition: all var(--t)
}

.pay-step.active .psi-circle {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, .4)
}

.pay-step.done .psi-circle {
  background: var(--green);
  border-color: transparent;
  color: #fff
}

.pay-step span {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500
}

.pay-step.active span,
.pay-step.done span {
  color: var(--amber)
}

.psi-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 80px;
  margin: 0 .5rem;
  margin-bottom: 1.2rem;
  transition: background var(--t)
}

.psi-line.done {
  background: var(--green)
}

.pay-wizard-wrapper {
  max-width: 620px;
  margin: 0 auto
}

.pay-wizard-step {
  display: none
}

.pay-wizard-step.active {
  display: block
}

.pay-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem
}

.pay-step-header {
  text-align: center
}

.pay-step-number {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem
}

.pay-step-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .4rem
}

.pay-step-header p {
  color: var(--muted);
  font-size: .875rem
}

.pay-service-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .6rem;
  display: block
}

.pay-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .25rem
}

.pay-service-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .03);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--t);
  text-align: center
}

.pay-service-option input {
  display: none
}

.pay-service-option.active,
.pay-service-option:hover {
  border-color: var(--amber);
  background: rgba(245, 158, 11, .08)
}

.psopt-icon {
  font-size: 1.75rem
}

.psopt-title {
  font-size: .875rem;
  font-weight: 700
}

.psopt-sub {
  font-size: .72rem;
  color: var(--muted)
}

.input-hint {
  font-size: .72rem;
  color: var(--dim);
  margin-top: .3rem;
  display: block
}

/* Bill Summary Card */
.bill-summary-card {
  background: rgba(255, 255, 255, .03);
  border: 1.5px solid var(--border-a);
  border-radius: var(--r);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem
}

.bill-customer-header {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .25rem
}

.bill-avatar {
  width: 48px;
  height: 48px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0
}

.bill-customer-header h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .15rem
}

.bill-customer-header p {
  font-size: .78rem;
  color: var(--muted)
}

.bill-status-badge {
  margin-left: auto;
  padding: .25rem .65rem;
  background: rgba(16, 185, 129, .15);
  border: 1px solid rgba(16, 185, 129, .3);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green)
}

.bill-rows {
  display: flex;
  flex-direction: column;
  gap: .4rem
}

.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .75rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .025);
  font-size: .85rem
}

.bill-row span {
  color: var(--muted)
}

.bill-row.total-row {
  background: rgba(245, 158, 11, .08);
  border: 1px solid var(--border-a)
}

.bill-row.total-row span {
  color: var(--amber);
  font-weight: 600
}

.bill-row.total-row strong {
  color: var(--amber);
  font-size: 1.1rem
}

.due-date {
  color: var(--red) !important
}

.bill-step2-actions {
  display: flex;
  gap: .75rem
}

.bill-step2-actions .btn-outline {
  flex-shrink: 0
}

.bill-step2-actions .btn-primary {
  flex: 1
}

/* Payment Methods List */
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: .75rem
}

.pmethod-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
  width: 100%;
  color: var(--text)
}

.pmethod-card:hover {
  border-color: var(--border-a);
  background: rgba(245, 158, 11, .06);
  transform: translateX(4px)
}

.pmethod-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0
}

.pmethod-info {
  flex: 1
}

.pmethod-info strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .15rem
}

.pmethod-info span {
  font-size: .75rem;
  color: var(--muted)
}

.pmethod-arrow {
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 700
}

.pay-offline-note {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .875rem 1rem;
  background: rgba(245, 158, 11, .06);
  border: 1px solid var(--border-a);
  border-radius: var(--r-sm);
  font-size: .8rem;
  color: var(--muted);
  margin-top: .25rem
}

.pay-offline-note a {
  color: var(--amber);
  font-weight: 600
}

.pay-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 1.5rem
}

.trust-item>span {
  font-size: 1.6rem
}

.trust-item strong {
  display: block;
  font-size: .82rem;
  font-weight: 700
}

.trust-item small {
  font-size: .7rem;
  color: var(--muted)
}

/* ===== FORMS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted)
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem
}

.input-wrap {
  position: relative
}

.input-icon {
  position: absolute;
  left: .8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--dim);
  pointer-events: none
}

input,
select,
textarea {
  width: 100%;
  padding: .8rem .8rem .8rem 2.3rem;
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .875rem;
  transition: border-color var(--t), background var(--t);
  outline: none;
  resize: vertical
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--amber);
  background: rgba(245, 158, 11, .04)
}

select {
  cursor: pointer
}

select option {
  background: var(--bg-card2)
}

/* ===== MAP SECTION ===== */
.book-wrapper {
  max-width: 780px;
  margin: 0 auto
}

.booking-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem
}

.map-section {
  background: rgba(255, 255, 255, .02);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden
}

.map-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem .75rem
}

.map-header-left {
  display: flex;
  align-items: center;
  gap: .75rem
}

.map-header-icon {
  font-size: 1.75rem;
  animation: pinBounce 2s ease-in-out infinite
}

@keyframes pinBounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.map-section-header h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .18rem
}

.map-section-header p {
  font-size: .75rem;
  color: var(--muted)
}

.map-instruction-strip {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  background: rgba(245, 158, 11, .06);
  border-top: 1px solid var(--border-a);
  border-bottom: 1px solid var(--border)
}

.map-instr-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--muted)
}

.instr-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.map-instr-sep {
  color: var(--dim);
  font-size: .8rem;
  flex-shrink: 0
}

.map-toolbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .75rem 1.25rem
}

.pin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  transition: all var(--t);
  margin-left: auto
}

.pin-status-badge.unpinned {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--muted)
}

.pin-status-badge.pinned {
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .3);
  color: var(--green)
}

.booking-map {
  height: 360px;
  z-index: 1
}

.leaflet-container {
  background: #0f1729 !important
}

.leaflet-tile {
  filter: brightness(.75) saturate(.65) hue-rotate(5deg)
}

.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-a) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5) !important
}

.leaflet-popup-tip {
  background: var(--bg-card) !important
}

.leaflet-popup-content {
  color: var(--text) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: .85rem !important
}

.pinned-location-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
  border-top: none;
  font-size: .82rem
}

.pinned-location-card.hidden {
  display: none
}

.plc-icon {
  font-size: 1.25rem;
  flex-shrink: 0
}

.plc-content strong {
  display: block;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .15rem
}

.plc-content span {
  color: var(--muted);
  font-size: .75rem
}

.plc-edit {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(16, 185, 129, .3);
  color: var(--green);
  padding: .25rem .6rem;
  border-radius: 8px;
  font-size: .72rem;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--t)
}

.plc-edit:hover {
  background: rgba(16, 185, 129, .15)
}

.form-footer-note {
  text-align: center;
  font-size: .78rem;
  color: var(--dim);
  margin-top: -.25rem
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem
}

.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: .875rem
}

.contact-card {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all var(--t);
  cursor: pointer
}

.contact-card:hover {
  border-color: var(--border-a);
  transform: translateX(5px);
  box-shadow: var(--shadow-a)
}

.contact-icon {
  font-size: 1.6rem
}

.contact-card h4 {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .15rem
}

.contact-card p {
  font-size: .9rem;
  color: var(--amber);
  font-weight: 600
}

.contact-card span {
  font-size: .72rem;
  color: var(--dim)
}

.query-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem
}

.query-title {
  font-size: 1.15rem;
  font-weight: 700
}

/* ===== FOOTER ===== */
.footer {
  background: #06091200;
  border-top: 1px solid var(--border)
}

.footer-top {
  padding: 3.5rem 0 2rem
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem
}

.footer-brand p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem
}

.footer-socials {
  display: flex;
  gap: .6rem
}

.social-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--t);
  cursor: pointer
}

.social-btn:hover {
  border-color: var(--border-a);
  transform: translateY(-3px)
}

.footer-links-col h4 {
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1rem
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: .55rem
}

.footer-links-col a {
  font-size: .82rem;
  color: var(--muted);
  transition: color var(--t)
}

.footer-links-col a:hover {
  color: var(--amber)
}

.footer-contact-col h4 {
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1rem
}

.footer-contact-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .6rem;
  line-height: 1.5
}

.footer-contact-item a {
  color: var(--muted);
  transition: color var(--t)
}

.footer-contact-item a:hover {
  color: var(--amber)
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .875rem
}

.footer-badge {
  padding: .2rem .55rem;
  background: rgba(245, 158, 11, .1);
  border: 1px solid var(--border-a);
  border-radius: 100px;
  font-size: .68rem;
  color: var(--amber);
  font-weight: 600
}

.footer-bottom {
  padding: 1rem 0;
  border-top: 1px solid var(--border)
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem
}

.footer-bottom p {
  font-size: .75rem;
  color: var(--dim)
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn .2s ease
}

.modal-overlay.hidden {
  display: none
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: slideUp .3s ease
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.modal-close {
  position: absolute;
  top: .9rem;
  right: 1.1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  transition: color var(--t)
}

.modal-close:hover {
  color: var(--text)
}

.modal-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: .875rem
}

.modal-box h3 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: .4rem
}

.modal-box>p {
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 1.25rem
}

.modal-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem
}

.upi-box {
  background: rgba(255, 255, 255, .03);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  text-align: center
}

.upi-id {
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: .3rem
}

.success-modal {
  text-align: center
}

.success-anim {
  margin-bottom: 1.25rem
}

.success-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  animation: scaleIn .5s ease
}

@keyframes scaleIn {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.success-circle svg {
  width: 72px;
  height: 72px
}

/* ===== CHAT ===== */
.chat-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .875rem
}

.chat-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 30px rgba(245, 158, 11, .45);
  transition: transform var(--t), box-shadow var(--t);
  position: relative
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(245, 158, 11, .65)
}

.chat-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center
}

.chat-toggle-icon svg {
  width: 22px;
  height: 22px;
  color: #fff
}

.chat-toggle-icon.hidden {
  display: none
}

.chat-label {
  font-size: .48rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .1em
}

.chat-pulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
  animation: pulseDot 2s ease-in-out infinite
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.35)
  }
}

.chat-panel {
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .65);
  display: flex;
  flex-direction: column;
  max-height: 540px;
  animation: chatIn .3s ease
}

@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.chat-panel.hidden {
  display: none
}

.chat-header {
  background: var(--grad);
  padding: .875rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: .6rem
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff
}

.chat-header h4 {
  font-size: .9rem;
  font-weight: 700;
  color: #fff
}

.chat-header p {
  font-size: .68rem;
  color: rgba(255, 255, 255, .75)
}

.chat-minimize {
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t)
}

.chat-minimize:hover {
  background: rgba(255, 255, 255, .35)
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: .875rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  max-height: 360px
}

.chat-messages::-webkit-scrollbar {
  width: 3px
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border)
}

.chat-msg {
  display: flex;
  gap: .4rem;
  align-items: flex-start
}

.chat-msg.user {
  flex-direction: row-reverse
}

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  border: 1px solid var(--border)
}

.msg-bubble {
  max-width: 84%;
  padding: .65rem .9rem;
  border-radius: var(--r);
  font-size: .83rem;
  line-height: 1.5
}

.chat-msg.bot .msg-bubble {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text)
}

.chat-msg.user .msg-bubble {
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 4px
}

.msg-bubble p {
  margin: 0 0 .4rem
}

.msg-bubble p:last-child {
  margin-bottom: 0
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .4rem
}

.qr-btn {
  padding: .3rem .65rem;
  background: rgba(245, 158, 11, .1);
  border: 1px solid var(--border-a);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--amber);
  cursor: pointer;
  transition: all var(--t);
  font-family: inherit
}

.qr-btn:hover {
  background: rgba(245, 158, 11, .2)
}

.typing-indicator .msg-bubble {
  display: flex;
  gap: 4px;
  align-items: center
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: tBounce .8s ease-in-out infinite
}

.typing-dot:nth-child(2) {
  animation-delay: .15s
}

.typing-dot:nth-child(3) {
  animation-delay: .3s
}

@keyframes tBounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.chat-input-area {
  display: flex;
  gap: .45rem;
  padding: .75rem;
  border-top: 1px solid var(--border)
}

.chat-input {
  flex: 1;
  padding: .55rem .8rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .83rem;
  outline: none;
  resize: none;
  font-family: inherit
}

.chat-input:focus {
  border-color: var(--amber)
}

.chat-send {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--grad);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t)
}

.chat-send svg {
  width: 14px;
  height: 14px;
  color: #fff
}

.chat-send:hover {
  transform: scale(1.1)
}

/* ===== TOAST ===== */
.toast-notice {
  position: fixed;
  top: 86px;
  right: 1.25rem;
  z-index: 9998;
  padding: .875rem 1.25rem;
  border-radius: var(--r);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 268px;
  max-width: 360px;
  backdrop-filter: blur(20px);
  animation: toastIn .3s ease
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(30px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.toast-success {
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(16, 185, 129, .3);
  color: var(--green)
}

.toast-error {
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .3);
  color: var(--red)
}

/* ===== RESPONSIVE ===== */
@media(max-width:1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7.5rem 2rem 4rem;
    text-align: center
  }

  .hero-visual {
    display: none
  }

  .hero-desc {
    margin: 0 auto 1.75rem
  }

  .hero-cta,
  .hero-stats {
    justify-content: center
  }

  .services-grid {
    grid-template-columns: 1fr
  }

  .plans-grid {
    grid-template-columns: 1fr
  }

  .plan-card.best-value {
    transform: none
  }

  .pay-trust-strip {
    grid-template-columns: repeat(2, 1fr)
  }

  .contact-wrapper {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem
  }
}

@media(max-width:768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.25rem;
    background: rgba(8, 12, 20, .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    gap: .2rem;
    z-index: 999
  }

  .nav-links.open {
    display: flex
  }

  .nav-link {
    padding: .7rem .875rem;
    font-size: .95rem;
    width: 100%;
    border-radius: var(--r-sm)
  }

  .hamburger {
    display: flex
  }

  .hero {
    padding: 6.5rem 1.25rem 3.5rem
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem)
  }

  .hero-stats {
    gap: 1rem
  }

  .stat-divider {
    width: 40px;
    height: 1px
  }

  .form-row.two-col {
    grid-template-columns: 1fr
  }

  .pay-service-grid {
    grid-template-columns: 1fr 1fr
  }

  .pay-steps-indicator {
    gap: 0
  }

  .psi-line {
    max-width: 40px
  }

  .booking-form {
    padding: 1.25rem
  }

  .map-instruction-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem
  }

  .map-instr-sep {
    display: none
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .pay-trust-strip {
    grid-template-columns: 1fr 1fr
  }


  .section {
    padding: 4rem 0
  }

  .promo-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .services-grid.two-col {
    grid-template-columns: 1fr;
  }
}

@media(max-width:480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center
  }

  .btn-lg {
    padding: .875rem 1.5rem
  }

  .plan-tabs {
    flex-wrap: wrap;
    justify-content: center
  }

  .pay-trust-strip {
    grid-template-columns: 1fr
  }

  .booking-map {
    height: 280px
  }


  .modal-box {
    padding: 1.5rem
  }

  .bill-step2-actions {
    flex-direction: column
  }
}

@media(max-width:360px) {
  .container {
    padding: 0 .875rem
  }

  .section-title {
    font-size: 1.6rem
  }
}

/* ===== CUSTOMER REVIEWS ===== */
.reviews-section {
  padding: 5.5rem 0
}

/* Summary bar */
.review-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow)
}

.review-score {
  text-align: center;
  min-width: 100px
}

.score-big {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1
}

.score-stars {
  font-size: 1.1rem;
  margin: .4rem 0 .2rem
}

.score-label {
  font-size: .75rem;
  color: var(--muted)
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: .45rem
}

.score-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  color: var(--muted)
}

.score-bar-row span:first-child {
  width: 28px;
  text-align: right;
  flex-shrink: 0
}

.score-bar-row span:last-child {
  width: 36px;
  flex-shrink: 0
}

.score-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 3px;
  overflow: hidden
}

.score-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 3px;
  transition: width 1s ease
}

.review-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center
}

.review-stat-item {
  display: flex;
  flex-direction: column;
  gap: .2rem
}

.rsi-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amber)
}

.rsi-label {
  font-size: .7rem;
  color: var(--muted)
}

/* Review grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  position: relative;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  gap: .875rem
}

.review-card:hover {
  border-color: var(--border-a);
  transform: translateY(-4px);
  box-shadow: var(--shadow-a)
}

.featured-review {
  border-color: rgba(245, 158, 11, .3);
  background: linear-gradient(145deg, rgba(245, 158, 11, .05), var(--bg-card))
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .2);
  padding: .25rem .65rem;
  border-radius: 100px;
  width: fit-content
}

.review-header {
  display: flex;
  align-items: center;
  gap: .875rem
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0
}

.reviewer-info h4 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .1rem
}

.reviewer-info span {
  font-size: .72rem;
  color: var(--muted)
}

.review-service-tag {
  margin-left: auto;
  font-size: .65rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0
}

.bsnl-tag {
  background: rgba(245, 158, 11, .12);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, .25)
}

.railtel-tag {
  background: rgba(59, 130, 246, .12);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, .25)
}


.review-stars {
  font-size: .95rem;
  letter-spacing: 1px
}

.review-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  color: var(--dim);
  padding-top: .75rem;
  border-top: 1px solid var(--border)
}

.review-helpful {
  cursor: pointer;
  transition: color var(--t)
}

.review-helpful:hover {
  color: var(--amber)
}

/* CTA strip */
.review-cta {
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-a);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap
}

.review-cta p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text)
}

/* Responsive reviews */
@media(max-width:1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .review-summary {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto
  }

  .review-stats-grid {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-around
  }
}

@media(max-width:640px) {
  .reviews-grid {
    grid-template-columns: 1fr
  }

  .review-summary {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.25rem
  }

  .review-stats-grid {
    flex-direction: row
  }

  .review-cta {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem
  }
}

/* ===== AI CHAT ASSISTANT (Premium Fixed Side Widget) ===== */
#chatWidget {
  position: fixed !important;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  /* Let clicks pass through empty areas */
}

/* Chat Toggle Button */
.chat-toggle {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--grad);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  pointer-events: auto;
  /* Re-enable clicks */
  z-index: 2;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5);
}

.chat-toggle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-toggle-icon svg {
  width: 28px;
  height: 28px;
}

.chat-toggle-icon.chat-close {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0) rotate(45deg);
  font-size: 1.6rem;
  font-weight: 700;
}

.chat-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  animation: chatPulse 2.5s ease-in-out infinite;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes chatPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.chat-label {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--amber);
  border: 1px solid var(--amber-a);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow);
  pointer-events: none;
}

/* Chat Panel */
.chat-panel {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 380px;
  height: 600px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 120px);
  background: rgba(10, 15, 26, 0.85);
  /* Glassmorphism base */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05 inset);
  pointer-events: auto;

  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9) translateY(20px);
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-panel.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.chat-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chat-avatar img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.chat-agent-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.1rem;
}

.chat-agent-info p {
  font-size: 0.75rem;
  color: var(--amber);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.chat-minimize {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-minimize:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 4px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: msgPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes msgPop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.bot-msg {
  align-self: flex-start;
  align-items: flex-start;
}

.user-msg {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.msg-avatar img {
  width: 100%;
  height: 100%;
}

.msg-bubble {
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bot-msg .msg-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-radius: 4px 18px 18px 18px;
}

.user-msg .msg-bubble {
  background: linear-gradient(135deg, var(--amber), var(--red));
  color: #fff;
  border-radius: 18px 4px 18px 18px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.msg-bubble p {
  margin: 0;
}

.msg-bubble p+p {
  margin-top: 0.6rem;
}

.bot-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
}

.bot-link:hover {
  text-decoration: underline;
}

/* Quick Replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.qr-btn {
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.qr-btn:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

/* Typing Indicator */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.9rem 1.2rem !important;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--amber);
  animation: typePulse 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typePulse {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Input Area */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.75rem 1.2rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}

.chat-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.chat-send svg {
  width: 20px;
  height: 20px;
  transform: translateX(-1px);
  /* Slight optical alignment */
}

/* Chat Responsive */
@media (max-width: 640px) {
  .chat-widget {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .chat-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    transform: translateY(100%);
    /* Slide up for mobile */
  }

  .chat-panel.active {
    transform: translateY(0);
  }

  .chat-header {
    padding-top: max(1.5rem, env(safe-area-inset-top));
    /* Handle notches */
  }

  .chat-input-area {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}


/* Map layer control styling */
.leaflet-control-layers {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  box-shadow: var(--shadow) !important;
}

.leaflet-control-layers-list {
  padding: .5rem !important;
}

.leaflet-control-layers label {
  color: var(--text-d) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: .82rem !important;
}