/* Thunder EV — shared marketplace / cart / subpages */
:root { --tev-blue: #2563eb; --tev-sky: #0ea5e9; }
.tev-subnav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 1rem;
  min-height: 44px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.tev-subnav__left { display: flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.tev-subnav__center {
  display: flex; align-items: center; justify-content: center;
  flex: 1 1 auto; min-width: 0; padding: 0 0.5rem;
}
.tev-subnav__right {
  display: flex; align-items: center; gap: 0.5rem;
  flex: 0 0 auto; margin-left: 0;
}
.tev-subnav-pill {
  font-size: 0.78rem; font-weight: 700; color: #1e3a8a; text-decoration: none;
  padding: 0.4rem 0.85rem; border-radius: 99px; background: #eff6ff; border: 1px solid #dbeafe;
  margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.tev-subnav-pill:hover { background: #dbeafe; }
body.tev-subpage .tev-subnav .brand { font-size: 1.05rem; flex-wrap: nowrap; }
body.tev-subpage .tev-subnav .brand-charging { font-size: 0.62rem !important; }
.tev-marketplace-intro {
  background: #fff; border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.25rem;
  border: 1px solid #e2e8f0; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.tev-marketplace-intro p { margin: 0; font-size: 0.9rem; color: #475569; line-height: 1.5; }
.tev-marketplace-intro .highlight { color: #16a34a; font-weight: 800; }
.badge-buy { display: inline-block; font-size: 0.65rem; font-weight: 800; color: #16a34a; background: #dcfce7; border: 1px solid #bbf7d0; padding: 2px 8px; border-radius: 99px; margin-right: 0.35rem; }
.badge-quote { display: inline-block; font-size: 0.65rem; font-weight: 800; color: #1d4ed8; background: #dbeafe; border: 1px solid #93c5fd; padding: 2px 8px; border-radius: 99px; }
.tev-sku { font-size: 0.7rem; color: #64748b; font-weight: 600; }
.tev-footer-strip {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #0f172a, #1e3a8a);
  color: #e2e8f0;
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem) 1rem;
  margin-top: 3rem;
}
.tev-footer-strip a { color: #93c5fd; text-decoration: none; font-weight: 600; }
.tev-footer-strip a:hover { text-decoration: underline; }
.tev-footer-strip__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: start;
  box-sizing: border-box;
}
.tev-footer-strip__inner > div {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}
.tev-footer-strip__links {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .tev-footer-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .tev-footer-strip__inner {
    grid-template-columns: 1fr;
  }
  .tev-footer-strip__links {
    white-space: normal;
  }
}
.tev-india-strip {
  width: 100%;
  box-sizing: border-box;
  background: #fff7ed;
  border-top: 3px solid #f97316;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  text-align: center;
  font-size: 0.85rem;
  color: #9a3412;
}
.tev-testimonials {
  width: 100%;
  box-sizing: border-box;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  background: #f8fafc;
}
.tev-testimonial-card { background: #fff; border-radius: 16px; padding: 1.25rem; border: 1px solid #e2e8f0; max-width: 520px; margin: 0 auto; }
#tev-shared-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: stretch;
}
body.tev-compact-topbar .nav .brand-thunder { font-size: 1.05rem !important; }
body.tev-compact-topbar .brand-charging { font-size: 0.62rem !important; }
body.tev-compact-topbar .nav a.cta-small { font-size: 0.78rem !important; padding: 0.35rem 0.75rem !important; }
/* Right bottom: floating cart above AI search dock */
.tev-floating-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 12.2rem;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}

.tev-floating-stack > * {
  pointer-events: auto;
}

.tev-floating-stack .tev-floating-cart {
  position: relative;
  bottom: auto;
  right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.tev-floating-stack .tev-floating-cart:hover {
  transform: translateY(-2px);
}

.tev-floating-stack .floating-ai-chat {
  position: relative;
  bottom: auto;
  right: auto;
}

.tev-floating-stack .floating-ai-chat .ai-pulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  border: 1px solid #fff;
}
@keyframes tev-planner-shimmer { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }

/* Compact top bar (all tev-compact-topbar pages) */
body.tev-compact-topbar .nav,
body.tev-compact-topbar .tev-partner-nav {
  display: flex !important;
  flex-wrap: nowrap;
  padding: 0.45rem 1rem !important;
  min-height: 44px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.tev-subnav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
}
body.tev-compact-topbar .hero { min-height: auto !important; padding-bottom: 0 !important; }
body.tev-compact-topbar .nav .brand-thunder,
body.tev-compact-topbar .tev-partner-nav .brand-thunder { font-size: 1.05rem !important; }
body.tev-compact-topbar .brand-charging { font-size: 0.62rem !important; letter-spacing: 0.04em; }
.nav-ctas-right {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 40;
}

body.tev-home-page .nav-ctas-right a.cta-small {
  pointer-events: auto;
}

/* Homepage tagline — sit closer under nav */
.hero-text h1.tev-tagline-blue {
  color: #2563eb !important;
  font-size: clamp(1rem, 2.5vw, 1.35rem) !important;
  font-weight: 800 !important;
  margin: -2rem 0 0.35rem !important;
  padding: 0 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  width: 100%;
  max-width: none;
  display: block;
  text-align: center;
}

body.tev-home-page .hero-text {
  max-width: none;
  width: 100%;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
  box-sizing: border-box;
}

body.tev-home-page .tickers-container.tev-tickers-full {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 650px;
  margin: -2px auto 0;
}

body.tev-home-page .hero .nav.container,
body.tev-home-page .hero-content.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
  box-sizing: border-box;
}

/* Partner portal (vendor-login, business) */
body.tev-partner-page { background: #f8fafc; margin: 0; min-height: 100vh; }
.tev-circuit-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.55; }
.tev-partner-header {
  position: relative;
  z-index: 10;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
.tev-partner-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.tev-nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 99px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  line-height: 0;
  flex-shrink: 0;
}
.tev-nav-home:hover {
  background: #dbeafe;
}
.tev-nav-home svg {
  display: block;
  flex-shrink: 0;
}
.tev-subnav--with-brand {
  /* same 3-column bar as .tev-subnav — brand left, pill center, home right */
}
.tev-subnav--with-brand .tev-subnav-pill {
  margin: 0;
}
.tev-nav-logo {
  line-height: 1.2;
  flex-shrink: 0;
}
.tev-nav-logo .tev-brand-mark {
  display: block;
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.35));
}
.tev-sidebar-brand-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}
.tev-sidebar-brand-link:hover .tev-brand-mark {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
.tev-sidebar-brand-name {
  display: block;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.02em;
}
.tev-sidebar-brand-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-top: 0.15rem;
}
.tev-assoc-sidebar__brand .tev-sidebar-brand-tag {
  color: #94a3b8;
}
.tev-partner-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 2rem auto 3rem;
  background: #fff;
  border-radius: 24px;
  overflow: visible;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.08);
}
.tev-partner-panel {
  padding: 2rem 2.25rem;
  overflow: visible;
  position: relative;
}
.tev-partner-panel--login {
  border-right: 1px solid #e2e8f0;
  border-radius: 0 24px 24px 0;
}
.tev-partner-panel--benefits {
  background: linear-gradient(160deg, #eff6ff 0%, #f0f9ff 50%, #fff 100%);
  border-radius: 24px 0 0 24px;
}
body.tev-partner-page .category-fieldset,
body.tev-partner-page .category-dropdown {
  overflow: visible;
}
body.tev-partner-page .category-dropdown__menu {
  z-index: 200;
}
.tev-partner-title { font-size: 1.2rem; font-weight: 700; color: #1e3a8a; margin: 0 0 0.35rem; }
.tev-partner-lead { font-size: 0.85rem; color: #64748b; margin: 0 0 1.25rem; }
.tev-benefits-title { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0 0 1rem; }
.tev-benefits-list { margin: 0; padding-left: 1.1rem; color: #334155; font-size: 0.88rem; line-height: 1.55; }
.tev-benefits-list li { margin-bottom: 0.65rem; }
.tev-partner-form label { display: block; font-size: 0.75rem; font-weight: 700; color: #475569; margin-bottom: 0.25rem; }
.tev-partner-form input { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid #cbd5e1; border-radius: 10px; margin-bottom: 0.75rem; font-family: inherit; box-sizing: border-box; }
.tev-seed-hint { font-size: 0.72rem; color: #64748b; margin-top: 1rem; }
@media (max-width: 768px) {
  .tev-partner-split { grid-template-columns: 1fr; margin: 1rem; }
  .tev-partner-panel--login {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0 0 24px 24px;
  }
  .tev-partner-panel--benefits {
    border-radius: 24px 24px 0 0;
  }
}

/* Subpage layout */
body.tev-subpage { background: #f1f5f9; }
.tev-subpage-main {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: min(94%, 1200px);
  box-sizing: border-box;
  display: block;
}
.tev-products-section { display: block; width: 100%; clear: both; }
.tev-products-section .vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  width: 100%;
}
.tev-btn-nav { font-size: 0.78rem; font-weight: 700; padding: 0.4rem 0.9rem; border-radius: 99px; text-decoration: none; }
.tev-btn-nav--primary { background: #2563eb; color: #fff !important; }

/* Cart page — see css/cart.css */
body.tev-cart-page .tev-subpage-main {
  padding-top: 0;
  max-width: none;
  width: 100%;
  margin: 0;
}

/* Contact modal */
.tev-contact-overlay {
  display: none; position: fixed; inset: 0; z-index: 10050;
  background: rgba(15, 23, 42, 0.72); align-items: center; justify-content: center; padding: 1rem;
}
.tev-contact-overlay--open { display: flex !important; }
.tev-contact-dialog {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px; padding: 1.5rem 1.75rem 1.75rem; max-width: 440px; width: 100%;
  border: 1px solid #e2e8f0; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  position: relative; max-height: 92vh; overflow-y: auto;
}
.tev-contact-dialog h2 {
  margin: 0 0 0.25rem; font-size: 1.25rem; font-weight: 800;
  color: #1e3a8a; text-align: center;
}
.tev-contact-sub { text-align: center; font-size: 0.78rem; color: #64748b; margin: 0 0 1rem; }
.tev-contact-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: #eff6ff; color: #1e3a8a;
  font-size: 1.25rem; cursor: pointer; font-weight: 700; line-height: 1;
}
.tev-field { margin-bottom: 0.5rem; }
.tev-field label { display: block; font-size: 0.72rem; font-weight: 700; color: #334155; margin-bottom: 0.2rem; }
.tev-field input, .tev-field textarea {
  width: 100%; padding: 0.55rem 0.75rem; border: 1px solid #cbd5e1; border-radius: 8px;
  font-family: inherit; box-sizing: border-box; font-size: 0.9rem;
}
.tev-field input.tev-field-invalid, .tev-field textarea.tev-field-invalid { border-color: #dc2626; background: #fef2f2; }
.tev-field-hint { display: block; font-size: 0.7rem; color: #dc2626; min-height: 1em; margin-top: 0.15rem; }
.tev-skip-wa { font-size: 0.78rem; color: #475569; display: flex; align-items: center; gap: 0.4rem; margin: 0.35rem 0; }
.tev-otp-box { margin: 0.5rem 0; }
.tev-btn-wa { background: #25D366; color: #fff; border: none; padding: 0.55rem 1rem; border-radius: 8px; font-weight: 700; cursor: pointer; width: 100%; font-size: 0.85rem; }
.tev-otp-input { margin-top: 0.5rem; }
.tev-btn-submit { width: 100%; padding: 0.75rem; background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; border: none; border-radius: 10px; font-weight: 800; cursor: pointer; margin-top: 0.35rem; }
.tev-contact-status { font-size: 0.82rem; min-height: 1.2em; text-align: center; margin: 0.35rem 0; }
.tev-contact-status--ok { color: #16a34a; font-weight: 700; }
.tev-contact-status--err { color: #dc2626; font-weight: 600; }

/* Plan My Project — always light blue + falling snow (never dark “active” override) */
.sidebar-planner-item {
  border-radius: 12px;
  padding: 2px !important;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.5), rgba(186, 230, 253, 0.25));
}

.sidebar-planner-tab {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 45%, #7dd3fc 100%) !important;
  color: #075985 !important;
  border: 1px solid #7dd3fc !important;
  font-weight: 800 !important;
  box-shadow:
    0 2px 12px rgba(56, 189, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  animation: tev-planner-glow 3.5s ease-in-out infinite;
}

.sidebar-planner-tab__label {
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Snow layer 1 — falling flakes */
.sidebar-planner-tab::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 160%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  background-image:
    radial-gradient(2px 2px at 6% 10%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 18% 25%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 32% 8%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 48% 22%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(2px 2px at 62% 12%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 76% 28%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 90% 15%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 12% 55%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 40% 48%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 68% 58%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 85% 45%, rgba(255, 255, 255, 0.85), transparent);
  background-size: 100% 50%;
  animation: tev-snowfall 6s linear infinite;
}

/* Snow layer 2 — soft shimmer + extra drift */
.sidebar-planner-tab::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 75% 55%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
    radial-gradient(1.5px 1.5px at 25% 70%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 55% 80%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 80% 72%, rgba(255, 255, 255, 0.75), transparent);
  background-size: 100% 100%, 100% 100%, 100% 80%, 100% 80%, 100% 80%;
  animation: tev-snowfall-slow 9s linear infinite, tev-planner-shimmer 4s ease-in-out infinite;
}

@keyframes tev-snowfall {
  0% {
    transform: translateY(-8%);
  }
  100% {
    transform: translateY(42%);
  }
}

@keyframes tev-snowfall-slow {
  0% {
    transform: translateY(-5%) translateX(0);
  }
  50% {
    transform: translateY(22%) translateX(2px);
  }
  100% {
    transform: translateY(48%) translateX(-1px);
  }
}

@keyframes tev-planner-glow {
  0%,
  100% {
    box-shadow:
      0 2px 12px rgba(56, 189, 248, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
  50% {
    box-shadow:
      0 4px 18px rgba(14, 165, 233, 0.5),
      inset 0 0 24px rgba(255, 255, 255, 0.5);
  }
}

.sidebar-column .sidebar-planner-tab:hover {
  background: linear-gradient(135deg, #dbeafe, #bae6fd, #38bdf8) !important;
  color: #0c4a6e !important;
  transform: translateX(4px);
  border-color: #38bdf8 !important;
}

/* Selected tab: stay light blue (not dark blue) — ring only */
.sidebar-column .sidebar-planner-tab.active {
  background: linear-gradient(135deg, #dbeafe 0%, #bae6fd 40%, #7dd3fc 100%) !important;
  color: #075985 !important;
  border-color: #0ea5e9 !important;
  box-shadow:
    0 0 0 2px rgba(14, 165, 233, 0.35),
    0 4px 20px rgba(56, 189, 248, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  transform: translateX(4px);
}

.sidebar-column .sidebar-planner-tab.active::after {
  opacity: 1;
}

/* Become a Customer — registration form */
.tev-register-status {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.65rem;
  min-height: 1.2rem;
}
.tev-register-status--err { color: #dc2626; font-weight: 600; }
.tev-register-status--ok { color: #16a34a; font-weight: 600; }

.success-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.success-popup-overlay.active {
  display: flex;
}
.success-popup-content {
  background: #fff;
  padding: 2.5rem;
  border-radius: 24px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

/* Floating actions (bottom → top): WhatsApp, Smart Assist, AI search, cart */
.floating-whatsapp { bottom: 1.25rem !important; right: 1.25rem !important; left: auto !important; }
.tev-ev-assistant { bottom: 5.35rem !important; right: 1.25rem !important; left: auto !important; }
.floating-ai-search-dock { bottom: 8.5rem !important; }
.tev-floating-stack { bottom: 12.2rem !important; right: 1.25rem !important; }

/* Header flush to body — no gap */
body.tev-compact-topbar .hero {
  min-height: 0 !important;
  max-height: none !important;
  padding-bottom: 0 !important;
}
body.tev-compact-topbar .hero .nav {
  padding: 0.45rem 0 !important;
}
body.tev-compact-topbar .hero-content {
  margin-top: -0.25rem !important;
  padding: 0 0 0.3rem !important;
}
body.tev-compact-topbar .hero-text {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.tev-compact-topbar main {
  margin-top: 0;
  padding-top: 0;
}
body.tev-compact-topbar main > .section {
  padding-top: 0;
  margin-top: 0;
}
body.tev-compact-topbar .marketplace-layout {
  padding-top: 0;
  margin-top: 0;
}
body.tev-compact-topbar .tab-panels {
  padding-top: 0.5rem;
}
