/*
home.css — EDITING INDEX
Edit the relevant section below. CSS changes appearance; calculations stay in JavaScript.
Preserve section order. Regenerate line ranges after inserting or deleting lines.
SECTION 01: Nextsure Icons | LINE 32–66
SECTION 02: Banner | LINE 67–600
SECTION 03: Style | LINE 601–2615
SECTION 04: Nextsure Responsive Final | LINE 2616–2672
SECTION 05: Site Usability Fixes | LINE 2673–2692
SECTION 06: Public Site Fixes | LINE 2693–2703
SECTION 07: Nextsure Professional | LINE 2704–2762
SECTION 08: Nextsure Final Ui Clean | LINE 2763–3500
SECTION 09: Dashboard Ai Feedback | LINE 3501–3568
SECTION 10: Public Ai Whatsapp Products | LINE 3569–3700
SECTION 11: Dropdown Date Calculator Fixes | LINE 3701–3764
SECTION 12: Nextsure Feedback Button | LINE 3765–3767
SECTION 13: Mobile Banner | LINE 3768–3792
SECTION 14: Agency Product Ux | LINE 3793–3854
SECTION 15: Dashboard Regression Fixes | LINE 3855–3863
SECTION 16: Sidebar Product Links | LINE 3864–3916
SECTION 17: Layout Polish | LINE 3917–3969
SECTION 18: Responsive Sitewide | LINE 3970–4225
SECTION 19: Smart Premium Theme | LINE 4226–5095
SECTION 20: Nextsure Fire Marine Clear | LINE 5096–5110
SECTION 21: Nextsure Readability Support | LINE 5111–5199
SECTION 22: Product Card Visuals | LINE 5200–5210
SECTION 23: Site Footer | LINE 5211–5241
SECTION 24: Public Modern Background | LINE 5242–5442
SECTION 25: Search Discovery | LINE 5443–5453
SECTION 26: V155 Public Polish | LINE 5454–5472
*/
/* SECTION 01 — Nextsure Icons */
/*
 * Lightweight local icon set for NextSure.
 * It replaces the external Font Awesome stylesheet without distributing font
 * files. Icons use normal Unicode symbols and inherit the surrounding colour.
 */
.fa-solid,
.fa-brands {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.fa-solid::before,
.fa-brands::before {
  content: '•';
}
.fa-facebook::before {
  content: 'f';
  font-family: Arial, sans-serif;
}
.fa-google::before {
  content: 'G';
  font-family: Arial, sans-serif;
}
.fa-instagram::before {
  content: '◎';
}
.fa-linkedin-in::before {
  content: 'in';
  font-family: Arial, sans-serif;
  font-size: 0.72em;
}
.fa-whatsapp::before {
  content: '☎';
}
.fa-award::before {
  content: '★';
}
.fa-bolt::before {
  content: '⚡';
}
.fa-envelope::before {
  content: '✉';
}
.fa-file-signature::before {
  content: '✍';
}
.fa-globe::before {
  content: '🌐';
}
.fa-handshake::before {
  content: '🤝';
}
.fa-headset::before {
  content: '🎧';
}
.fa-location-dot::before {
  content: '●';
}
.fa-phone::before {
  content: '☎';
}
.fa-shield-heart::before {
  content: '♥';
}
.fa-user-check::before {
  content: '✓';
}

/* SECTION 02 — Banner */
/* Hero Section - Full Width Solution */
.hero {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* width: 100vw;
      margin-left: calc(-50vw + 50%);
      margin-right: calc(-50vw + 50%); */
}

.slider {
  width: 100%;
  height: 700px;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s ease-in-out,
    visibility 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(50%) contrast(1.1);
  transition: transform 8s ease-out;
}

.slide.active img {
  transform: scale(1.05);
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 28, 39, 0.65) 0%,
    rgba(16, 185, 129, 0.35) 100%
  );
  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 700px;
  z-index: 3;
  opacity: 0;
}

.slide.active .slide-content {
  animation: slideInFade 1s ease forwards 0.3s;
}

.slide-content h1 {
  font-size: 36px;
  margin-bottom: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
.slide-content h3 {
  font-size: 20px;
  margin-bottom: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.slide-content a {
  display: inline-block;
  background: #10b981;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.slide-content a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.779);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.slide-content a:hover::before {
  width: 300px;
  height: 300px;
}

.slide-content a:hover {
  background: #059669;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateX(-60px) translateY(-50%);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }
}

/* Navigation Buttons */
.slider-controls {
  position: absolute;
  width: 100%;
  bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.nav-btn {
  background: rgba(16, 185, 129, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: #10b981;
  border-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

.nav-btn:active {
  transform: scale(0.95);
}

.dots {
  display: flex;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.active {
  background: #10b981;
  transform: scale(1.3);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

/* Progress Bar */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #10b981;
  width: 0;
  z-index: 11;
  transition: width 0.1s linear;
}

/* Pause indicator */
.pause-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 11;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.pause-indicator.show {
  opacity: 1;
}

/* Responsive Design for Different Devices */

/* Large Tablets and Small Desktops - 993px */
@media (max-width: 993px) {
  .hero {
    min-height: 650px;
  }

  .slider {
    height: 650px;
  }

  .slide-content {
    left: 6%;
    right: 6%;
    max-width: 650px;
  }

  .slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
  }

  .slide-content a {
    padding: 0.9rem 2.3rem;
    min-width: 200px;
  }

  .nav-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .slider-controls {
    bottom: 35px;
    gap: 18px;
  }
}

/* Tablets - 992px */
@media (max-width: 992px) {
  .hero {
    min-height: 600px;
  }

  .slider {
    height: 600px;
  }

  .slide-content {
    left: 5%;
    right: 5%;
    max-width: 600px;
  }

  .slide-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .slide-content p {
    font-size: 1.05rem;
    margin-bottom: 1.7rem;
  }

  .slide-content a {
    padding: 0.85rem 2.2rem;
    min-width: 190px;
  }

  .nav-btn {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .slider-controls {
    bottom: 30px;
    gap: 16px;
  }

  .dots {
    gap: 10px;
    padding: 8px 18px;
  }
}

/* Medium Tablets - 768px */
@media (max-width: 768px) {
  .hero {
    min-height: 550px;
  }

  .slider {
    height: 550px;
  }

  .slide-content {
    left: 5%;
    right: 5%;
    max-width: 90%;
  }

  .slide-content h1 {
    font-size: 2.3rem;
    margin-bottom: 0.9rem;
    line-height: 1.2;
  }

  .slide-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .slide-content a {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    min-width: 180px;
  }

  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .slider-controls {
    bottom: 25px;
    gap: 15px;
  }

  .dots {
    padding: 7px 16px;
    gap: 9px;
  }

  .dot {
    width: 11px;
    height: 11px;
  }

  .pause-indicator {
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* Mobile Devices - 480px */
@media (max-width: 480px) {
  .hero {
    min-height: 210px;
  }

  .slider {
    height: 210px;
  }

  .slide-content {
    left: 4%;
    right: 4%;
    max-width: 76%;
    /* top: 116px; */
  }

  .slide-content h1 {
    font-size: 20px;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }

  .slide-content p {
    font-size: 14px;
    margin-bottom: 1.3rem;
    line-height: 1.5;
  }

  .slide-content a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .slider-controls {
    bottom: 20px;
    gap: 12px;
  }

  .dots {
    padding: 6px 14px;
    gap: 8px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .pause-indicator {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .progress-bar {
    height: 3px;
  }
}

/* Extra Small Mobile - 375px and below */
@media (max-width: 375px) {
  .hero {
    min-height: 450px;
  }

  .slider {
    height: 450px;
  }

  .slide-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
  }

  .slide-content p {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }

  .slide-content a {
    padding: 0.7rem 1.6rem;
    font-size: 0.85rem;
    min-width: 160px;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .slider-controls {
    bottom: 18px;
    gap: 10px;
  }

  .dots {
    padding: 5px 12px;
    gap: 7px;
  }

  .dot {
    width: 9px;
    height: 9px;
  }
}

/* Hide hero when mobile menu is open */
body.menu-open .hero {
  display: none;
}

@media (min-width: 993px) {
  body.menu-open .hero {
    display: flex;
  }
}

/* SECTION 03 — Style */
/**
 * NextSure Main Website Style
 * ------------------------------------------------------------
 * Public website overall design: navbar, hero, cards, footer,
 * product sections, responsive public layout.
 * ------------------------------------------------------------
 */

/* ===========================
   ENHANCED NEXTSURE STYLES
   Professional, Modern & Fully Responsive
=========================== */

/* ===========================
   RESET & GLOBAL STYLES
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style-type: none;
}

:root {
  --primary: #1e1b4b;
  --secondary: #10b981;
  --accent: #3b82f6;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: var(--light);
  color: #1e293b;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

::selection {
  background: var(--secondary);
  color: var(--white);
}

/* ===========================
   PRELOADER
=========================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #2d1b69 50%,
    var(--primary) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 2rem;
}

.loader {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--secondary);
  border-right: 5px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  position: relative;
}

.loader::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-bottom: 3px solid var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ===========================
   HEADER / NAVBAR
=========================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1400px;
  margin: auto;
}

.brand_logo {
  width: 170px;
  z-index: 1001;
}

.brand img {
  width: 100%;
  display: block;
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-list li {
  position: relative;
}

.nav-list li a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 0.5rem 0;
  display: block;
  position: relative;
}

.nav-list li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list li a:hover {
  color: var(--secondary);
}

.nav-list li a:hover::before {
  width: 100%;
}

.nav-list li a.cta {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.nav-list li a.cta::before {
  display: none;
}

.nav-list li a.cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.nav-list li a.cta:hover::after {
  width: 300px;
  height: 300px;
}

.nav-list li a.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

/* Submenu */
.has-submenu {
  position: relative;
}

.has-submenu .submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  padding: 0.8rem 0;
  list-style: none;
  margin: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  z-index: 100;
  pointer-events: none;
}

.has-submenu:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu li a {
  display: block;
  padding: 0.9rem 1.5rem;
  color: #334155;
  transition: var(--transition);
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.submenu li a::before {
  display: none;
}

.submenu li a:hover {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, transparent 100%);
  color: var(--secondary);
  padding-left: 2rem;
  border-left-color: var(--secondary);
}

/* Mobile Toggle - Hidden by default */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.hamburger {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  position: absolute;
  left: 0%;
  transition: var(--transition);
}

.hamburger::before {
  top: -9px;
}

.hamburger::after {
  top: 9px;
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 998;
  backdrop-filter: blur(2px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   SECTIONS
=========================== */
.section {
  padding: 4rem 2rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  opacity: 0.5;
}

.section-title {
  text-align: center;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary);
  letter-spacing: -2px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.lead {
  text-align: center;
  margin-bottom: 5rem;
  color: var(--gray);
  font-size: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ===========================
   PRODUCT CARDS
=========================== */
.grid.cards {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background: #ffffff;
  padding: 0;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  height: 370px;
}

.icon_logo {
  width: 50px;
  margin: 0 auto 1.5rem;
}

.icon_logo img {
  width: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.05), transparent);
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::after {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

.card h3 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.card p {
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ===========================
   WHY CHOOSE SECTION
=========================== */
.why-choose {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.why-choose::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.why-choose h2 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 3rem;
  font-weight: 800;
  text-align: center;
}

.why-choose ul {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.why-choose li {
  font-size: 1.15rem;
  color: #334155;
  padding: 1.5rem 2rem 1.5rem 4.5rem;
  position: relative;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--secondary);
}

.why-choose li::before {
  content: '✓';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.why-choose li:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

/* ===========================
   PARTNERS SECTION
=========================== */
.partners-section {
  background: var(--white);
  padding: 4rem 2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.partner {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.partner a {
  position: relative;
  z-index: 2; /* ensure link is clickable */
}

.partner.prime img {
  max-height: 170px;
}

.partner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.partner:hover::before {
  opacity: 1;
}

.partner img {
  width: 100%;
  max-width: 180px;
  max-height: 130px;
  object-fit: contain;
  transition: var(--transition);
}

.partner:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

/* ===========================
   QUOTE FORM SECTION
=========================== */
.quote-section {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  padding: 8rem 2rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.quote-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 4rem;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid #e2e8f0;
  width: 100%;
}

.quote-form h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 800;
}

.quote-form p {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.1rem 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

#formMsg {
  padding: 1.2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: none;
  text-align: center;
  font-weight: 600;
  border: 2px solid;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#formMsg.show {
  display: block;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.45);
}

.btn:active {
  transform: translateY(-2px);
}

.btn-link {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 0.8rem 2rem;
  box-shadow: none;
  width: auto;
  font-weight: 600;
}

.btn-link:hover {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* ===========================
   CONTACT / FOOTER
=========================== */
.contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
  color: var(--white);
  padding: 2rem 2rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.contact_main {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact_item {
  flex: 1;
  min-width: 280px;
  max-width: 465px;
}

.contact_social .social_item {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.contact_social li {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s,
    background-color 0.3s;
  cursor: pointer;
}

.contact_social li i,
.contact_social li a {
  font-size: 20px;
  color: #fff;
  line-height: 1;
}

.contact_social li:hover {
  background-color: #059669;
  transform: scale(1.15);
}

.contact_information p {
  font-size: 15px;
  color: #fff;
  font-weight: 400;
  line-height: 1.8;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.contact-info {
  line-height: 2.2;
  position: relative;
  z-index: 1;
}

.contact-info p,
.contact-info p a,
.contact-info ul li a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  color: #34d399;
}

footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: #34d399;
}

/* ===========================
   BACK TO TOP
=========================== */
#backTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  z-index: 999;
  transition: var(--transition);
  font-size: 1.6rem;
  border: none;
  font-weight: 700;
}

#backTop::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s ease,
    height 0.4s ease;
}

#backTop:hover::before {
  width: 100%;
  height: 100%;
}

#backTop:hover {
  transform: translateY(-8px) rotate(360deg);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */

/* Desktop - Hide Toggle Button */
@media (min-width: 993px) {
  .nav-toggle {
    display: none !important;
  }

  .menu-overlay {
    display: none !important;
  }
}

/* Large Tablet & Below (992px) */
@media (max-width: 992px) {
  /* Show Toggle Button */
  .nav-toggle {
    display: block !important;
  }

  /* Mobile Navigation - HIDDEN BY DEFAULT */
  .nav-list {
    position: fixed;
    top: 0;
    right: -100% !important;
    height: 100vh;
    width: 85%;
    max-width: 350px;
    flex-direction: column;
    background: var(--white);
    display: flex !important;
    gap: 0;
    padding: 5rem 0 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
  }

  .nav-list.active {
    right: 0 !important;
    visibility: visible;
    opacity: 1;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list li a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
  }

  .nav-list li a::before {
    display: none;
  }

  .nav-list li a:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    color: var(--secondary);
    padding-left: 2.5rem;
  }

  /* CTA button in mobile */
  .nav-list li a.cta {
    margin: 1rem 2rem;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  }

  .nav-list li a.cta:hover {
    padding-left: 1.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
  }

  /* Submenu in mobile */
  .has-submenu > a {
    position: relative;
    padding-right: 3.5rem !important;
  }

  .has-submenu > a::after {
    content: '▼';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
  }

  .has-submenu.active > a::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .has-submenu .submenu {
    position: static;
    display: none;
    background: #f8fafc;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    border: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-submenu.active .submenu {
    display: block;
    max-height: 500px;
  }

  .submenu li {
    border-bottom: none;
  }

  .submenu li a {
    padding: 1rem 2rem 1rem 3.5rem !important;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
  }

  .submenu li a:hover {
    border-left-color: var(--secondary);
    background: rgba(16, 185, 129, 0.08);
    padding-left: 4rem !important;
  }

  /* Responsive sections */
  .section {
    padding: 1rem 1.5rem;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .lead {
    font-size: 1.15rem;
    margin-bottom: 4rem;
  }

  .grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
  }

  .card {
    padding: 0;
  }

  .why-choose h2 {
    font-size: 2.5rem;
  }

  .why-choose::before {
    width: 350px;
    height: 350px;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
  }

  .quote-form {
    padding: 3rem 2.5rem;
  }

  .contact_main {
    gap: 2.5rem;
  }

  .contact_item {
    max-width: 100%;
  }

  .contact-section::before {
    width: 400px;
    height: 400px;
  }
}

/* Tablet & Below (768px) */
@media (max-width: 768px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }

  .brand_logo {
    width: 140px;
  }

  .section {
    padding: 5rem 1rem;
  }

  .section-title {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }

  .lead {
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
  }

  .grid.cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card {
    padding: 0;
  }

  .card h3 {
    font-size: 1.5rem;
  }

  .card p {
    font-size: 1rem;
  }

  .why-choose {
    padding: 5rem 1rem;
  }

  .why-choose h2 {
    font-size: 2.2rem;
  }

  .why-choose li {
    font-size: 1.05rem;
    padding: 1.3rem 1.8rem 1.3rem 4.2rem;
  }

  .why-choose::before {
    width: 300px;
    height: 300px;
  }

  .partners-section {
    padding: 5rem 1rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .partner {
    height: 130px;
    padding: 2rem;
  }

  .quote-section {
    padding: 5rem 1rem;
  }

  .quote-form {
    padding: 3rem 2rem;
  }

  .quote-form h2 {
    font-size: 2.2rem;
  }

  .quote-form p {
    font-size: 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1rem 1.3rem;
    font-size: 0.95rem;
  }

  .contact-section {
    padding: 4rem 1rem;
  }

  .contact_main {
    flex-direction: column;
    gap: 2rem;
  }

  .contact_item {
    min-width: 100%;
  }

  .contact-section h2 {
    font-size: 18px;
  }

  .contact-info p,
  .contact-info ul li a {
    font-size: 16px;
  }

  .contact-section::before {
    width: 300px;
    height: 300px;
  }

  #backTop {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: 25px;
    right: 25px;
  }
}

/* Mobile Devices (480px) */
@media (max-width: 480px) {
  .nav-list {
    width: 100%;
    max-width: 100%;
  }

  .nav-list li a {
    padding: 1.2rem 1.5rem;
    font-size: 1.05rem;
  }

  .has-submenu > a::after {
    right: 1.5rem;
  }

  .submenu li a {
    padding: 1rem 1.5rem 1rem 3rem !important;
    font-size: 0.9rem;
  }

  .submenu li a:hover {
    padding-left: 3.5rem !important;
  }

  .nav-list li a.cta {
    margin: 1rem 1.5rem;
  }

  .header-inner {
    padding: 0.9rem 1rem;
  }

  .brand_logo {
    width: 120px;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .section::before {
    width: 60px;
    height: 3px;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  .lead {
    font-size: 1rem;
    margin-bottom: 3rem;
  }

  .grid.cards {
    gap: 1.5rem;
  }

  .card {
    padding: 0%;
  }

  .card h3 {
    font-size: 1.4rem;
  }

  .card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .icon_logo {
    width: 45px;
    margin-bottom: 1.2rem;
  }

  .why-choose {
    padding: 4rem 1rem;
  }

  .why-choose h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .why-choose li {
    padding: 1.2rem 1.5rem 1.2rem 4rem;
    font-size: 0.95rem;
  }

  .why-choose li::before {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    left: 1.2rem;
  }

  .why-choose::before {
    width: 250px;
    height: 250px;
  }

  .partners-section {
    padding: 4rem 1rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .partner {
    height: 110px;
    padding: 1.5rem;
  }

  .partner img {
    max-width: 150px;
    max-height: 100px;
  }

  .partner .prime img {
    max-height: 140px;
  }

  .quote-section {
    padding: 4rem 1rem;
  }

  .quote-form {
    padding: 2.5rem 1.5rem;
  }

  .quote-form h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .quote-form p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .btn-link {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .contact-section {
    padding: 3rem 1rem;
  }

  .contact_main {
    gap: 1.5rem;
  }

  .contact_item {
    min-width: 100%;
  }

  .contact_information p {
    font-size: 14px;
    line-height: 1.7;
  }

  .contact-section h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .contact-info p,
  .contact-info p a,
  .contact-info ul li a {
    font-size: 15px;
  }

  .contact-info {
    line-height: 2;
  }

  .contact_social li {
    width: 36px;
    height: 36px;
  }

  .contact_social li i,
  .contact_social li a {
    font-size: 18px;
  }

  .contact-section::before {
    width: 200px;
    height: 200px;
  }

  footer {
    padding: 2rem 1rem;
    font-size: 0.85rem;
  }

  #backTop {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Extra Small Devices (360px) */
@media (max-width: 360px) {
  .brand_logo {
    width: 110px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .card {
    padding: 1.8rem 1.3rem;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  .why-choose h2 {
    font-size: 1.6rem;
  }

  .why-choose li {
    font-size: 0.9rem;
    padding: 1rem 1.2rem 1rem 3.8rem;
  }

  .why-choose::before {
    width: 180px;
    height: 180px;
  }

  .quote-form {
    padding: 2rem 1.2rem;
  }

  .quote-form h2 {
    font-size: 1.6rem;
  }

  .contact-section h2 {
    font-size: 15px;
  }

  .contact-info p,
  .contact-info p a,
  .contact-info ul li a {
    font-size: 14px;
  }

  .contact-section::before {
    width: 150px;
    height: 150px;
  }
}

/* Utility Classes */
html {
  scroll-padding-top: 80px;
}

body.menu-open {
  overflow: hidden;
}
/* ===== Modern Tech Look CSS ===== */
body {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  margin: 0;
  padding: 0;
}

/* ===== Header Card ===== */
.card1 {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0 0 2rem 2rem;
  text-align: right;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.card1 button {
  background: white;
  color: #1e3a8a;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
}
.card1 button:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* ===== Main Card ===== */
.card-shadow2 {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
  transition: all 0.3s ease;
}
.card-shadow2:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(30, 64, 175, 0.15);
}

/* ===== Step Buttons ===== */
.step {
  border: 2px solid transparent;
  transition: all 0.25s ease;
}
.step.active {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
  transform: scale(1.02);
}
.step:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  cursor: pointer;
}

/* ===== Form Inputs ===== */
input,
select,
textarea {
  transition: all 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background: #f8fafc;
}

/* ===== Buttons ===== */
button {
  transition: all 0.25s ease;
}
button:hover {
  transform: translateY(-2px);
}

/* ===== Result Box ===== */
#result {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border: 1px solid #bae6fd;
  box-shadow: inset 0 0 8px rgba(37, 99, 235, 0.15);
  font-weight: 600;
  color: #1e3a8a;
}

/* ===== Notification ===== */
.notif {
  position: fixed;
  top: 30px;
  right: 30px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 9999;
  animation: slideIn 0.4s ease;
}

/* ===== Animations ===== */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .card1 {
    text-align: center;
  }
  .card-shadow2 {
    padding: 1.5rem;
  }
  .step {
    font-size: 14px;
    padding: 0.5rem;
  }
}

.hidden {
  display: none;
}

.login-box,
.login-card {
  background: #fff;
  top: 350px;
  padding: 50px;
  border-radius: 10px;
  width: 420px;
  height: auto;
  text-align: center;
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.login-btn {
  display: block;
  width: 100%;
  background: #007bff;
  color: #fff;
  padding: 12px;
  margin-top: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
}

#loginSubmit {
  margin-top: 18px;
  background: green;
  color: white;
  border-radius: 6px;
  padding: 12px;
  width: 50%;
}

/* ===========================
   QUICK ACTIONS / HOST-FRIENDLY UI
=========================== */
.quick-actions {
  padding-top: 1rem;
}

.quick-actions-head {
  text-align: center;
  margin-bottom: 2rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.quick-card {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 24px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.35);
}

.quick-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.quick-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.quick-card p {
  color: var(--gray);
  line-height: 1.6;
}

.popup-note {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
}

.login-box .login-btn {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 768px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== NextSure final merge fixes: responsive navbar, submenu, banner image visibility ===== */
.brand_logo img,
.brand img {
  max-width: 170px;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand_logo .brand-text,
.brand-text {
  display: none !important;
}
.has-submenu {
  position: relative;
}
.has-submenu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s;
  z-index: 9999;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li a {
  white-space: nowrap;
  padding: 10px 14px !important;
  border-radius: 12px;
}
.submenu li a:hover {
  background: #f1f5f9;
}
.hero,
.slider,
.slide {
  overflow: hidden;
}
.slide img,
.hero img,
#heroSlider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.66),
    rgba(2, 6, 23, 0.24),
    rgba(2, 6, 23, 0.08)
  );
  pointer-events: none;
}
.slide-content {
  z-index: 2;
}
.slide-content .btn,
.slide-content a.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
@media (max-width: 900px) {
  .header-inner {
    padding: 12px 16px;
  }
  .brand_logo {
    width: 135px;
  }
  .nav-list {
    gap: 0;
  }
  .has-submenu .submenu {
    position: static;
    box-shadow: none;
    border-radius: 12px;
    background: #f8fafc;
    margin-top: 8px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-submenu.open .submenu {
    display: block;
  }
  .hero {
    height: 54vh;
    min-height: 330px;
  }
  .slide img,
  .hero img,
  #heroSlider img {
    object-fit: contain;
    background: #0f172a;
  }
  .slide::after {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.06));
  }
  .slide-content h1,
  .slide-content h2,
  .slide-content h3,
  .slide-content p {
    display: none !important;
  }
  .slide-content {
    left: 0;
    right: 0;
    bottom: 26px;
    top: auto !important;
    transform: none !important;
    text-align: center;
    width: 100%;
    padding: 0 16px;
  }
  .slide-content .btn {
    display: inline-flex !important;
  }
  .slider-controls {
    bottom: 12px;
  }
  .cards,
  .partners-grid,
  .contact_main {
    grid-template-columns: 1fr !important;
  }
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
  .hero {
    height: 46vh;
    min-height: 290px;
  }
  .brand_logo {
    width: 118px;
  }
  .nav-btn {
    width: 38px;
    height: 38px;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .card,
  .partner,
  .contact_item {
    border-radius: 18px;
  }
  .table-responsive,
  .overflow-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: max-content;
  }
}

/* NextSure mobile overflow / banner / floating role pill fixes */
#nsFloatingUserPill {
  pointer-events: auto;
}
#nsFloatingUserPill * {
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .hero,
  .slider,
  .slide,
  #heroSlider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .slide img,
  .hero img,
  #heroSlider img {
    object-fit: cover !important;
    object-position: center center !important;
  }
}
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 14px !important;
    gap: 10px;
  }
  .brand_logo {
    width: 128px !important;
    flex: none;
  }
  .nav-toggle {
    margin-left: auto;
    flex: none;
  }
  #nsFloatingUserPill {
    right: 8px !important;
    top: 12px !important;
    max-width: calc(100vw - 165px) !important;
  }
  #nsFloatingUserPill a:first-child {
    max-width: 72px !important;
  }
  body {
    overflow-x: hidden !important;
  }
}
@media (max-width: 480px) {
  #nsFloatingUserPill {
    max-width: calc(100vw - 155px) !important;
  }
  #nsFloatingUserPill div {
    padding: 5px 8px !important;
    gap: 6px !important;
  }
  #nsFloatingUserPill img {
    width: 24px !important;
    height: 24px !important;
  }
  #nsFloatingUserPill a:first-child {
    font-size: 12px !important;
    max-width: 64px !important;
  }
  #nsFloatingUserPill a:last-child {
    font-size: 11px !important;
  }
}

/* NextSure final public responsive + profile menu + WhatsApp */
#nsProfileMenu {
  position: relative;
  z-index: 1002;
}
#nsProfileBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  color: #172554;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  max-width: 210px;
}
#nsProfileBtn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
#nsProfileBtn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  font-size: 14px;
}
#nsProfileDrop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  padding: 8px;
  z-index: 100000;
}
#nsProfileMenu.open #nsProfileDrop {
  display: block;
}
#nsProfileDrop a,
#nsProfileDrop button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
}
#nsProfileDrop a:hover,
#nsProfileDrop button:hover {
  background: #f1f5f9;
}
#nsWhatsappFloat {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 99998;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}
#backTop {
  right: 22px !important;
  bottom: 22px !important;
  z-index: 99997 !important;
}
.header--offline,
.js-header.header--offline {
  display: none !important;
}
@media (max-width: 900px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
  }
  .header-inner {
    padding: 10px 12px !important;
    gap: 10px !important;
    min-height: 72px !important;
  }
  .brand_logo {
    width: 135px !important;
    min-width: 135px !important;
  }
  .brand_logo img {
    max-width: 135px !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .nav-toggle {
    margin-left: auto !important;
    z-index: 1003 !important;
  }
  .nav.active {
    position: absolute !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16) !important;
    max-height: calc(100vh - 72px) !important;
    overflow: auto !important;
  }
  .nav.active .nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    padding: 12px !important;
  }
  #nsProfileMenu {
    width: 100%;
  }
  #nsProfileBtn {
    width: 100%;
    justify-content: space-between;
    max-width: none;
    border-radius: 14px;
    padding: 10px 12px;
  }
  #nsProfileBtn span {
    max-width: 180px;
  }
  #nsProfileDrop {
    position: static;
    margin-top: 8px;
    box-shadow: none;
    border-radius: 14px;
  }
  .hero,
  .slider,
  #heroSlider {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16/10 !important;
    overflow: hidden !important;
    background: #071426 !important;
  }
  .slide {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
  .slide-content h1,
  .slide-content h2,
  .slide-content h3,
  .slide-content p {
    display: none !important;
  }
  .slide-content {
    left: 0 !important;
    right: 0 !important;
    bottom: 18px !important;
    top: auto !important;
    transform: none !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 12px !important;
  }
  .slider-controls {
    bottom: 10px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 26px !important;
    pointer-events: none !important;
  }
  .slider-controls button,
  .nav-btn {
    pointer-events: auto !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
  }
}
@media (max-width: 520px) {
  .header-inner {
    min-height: 66px !important;
  }
  .brand_logo {
    width: 124px !important;
    min-width: 124px !important;
  }
  .brand_logo img {
    max-width: 124px !important;
  }
  .hero,
  .slider,
  #heroSlider {
    aspect-ratio: 4/3 !important;
    min-height: 300px !important;
  }
  .slide img {
    object-position: center center !important;
  }
  #nsWhatsappFloat {
    right: 16px;
    bottom: 84px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
  #backTop {
    right: 16px !important;
    bottom: 18px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

/* SECTION 04 — Nextsure Responsive Final */
/**
 * NextSure Responsive Fixes
 * ------------------------------------------------------------
 * Mobile/tablet responsive adjustments. To add new responsive edits,
 * this file is the safest place to add CSS.
 * ------------------------------------------------------------
 */

/* NextSure final responsive and usability fixes */
html {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  max-width: 100%;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
.container,
.header-inner,
.section {
  max-width: 100%;
}
.site-header,
.header-inner {
  z-index: 1000;
}
.brand_logo img,
.brand img {
  max-height: 64px;
  object-fit: contain;
}
.has-submenu {
  position: relative;
}
.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
  padding: 10px;
  z-index: 2000;
}
.has-submenu:hover .submenu {
  display: block;
}
.submenu a {
  padding: 10px 14px !important;
  border-radius: 12px;
  white-space: nowrap;
}
.submenu a:hover {
  background: #eef2ff !important;
  color: #3730a3 !important;
}
.hero,
.slider,
.slide {
  min-height: clamp(360px, 62vw, 660px);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.72),
    rgba(15, 23, 42, 0.28),
    rgba(15, 23, 42, 0.05)
  );
  pointer-events: none;
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: min(650px, 90vw);
}
.overflow-auto,
table {
  max-width: 100%;
}
table {
  border-collapse: collapse;
}
input,
select,
textarea,
button {
  max-width: 100%;
}
@media (max-width: 900px) {
  .header-inner {
    padding: 12px 16px;
    gap: 10px;
  }
  .brand_logo {
    width: 125px;
  }
  .nav-list {
    gap: 8px;
  }
  .nav-list li a {
    font-size: 14px;
  }
  .nav-list li a.cta {
    padding: 0.65rem 1rem;
  }
  .has-submenu .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    background: rgba(248, 250, 252, 0.95);
    border-radius: 14px;
    margin-top: 6px;
  }
  .has-submenu.open .submenu {
    display: block;
  }
  .has-submenu:hover .submenu {
    display: none;
  }
  .has-submenu.open:hover .submenu {
    display: block;
  }
  .hero,
  .slider,
  .slide {
    min-height: 310px;
  }
  .slide img {
    object-fit: contain;
    background: #0f172a;
  }
  .slide::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.38));
  }
  .slide-content h1,
  .slide-content h2,
  .slide-content h3,
  .slide-content p {
    display: none !important;
  }
  .slide-content {
    left: 0 !important;
    right: 0 !important;
    bottom: 18px !important;
    top: auto !important;
    transform: none !important;
    text-align: center;
    width: 100%;
    padding: 0 16px;
  }
  .slide-content .btn,
  .slide-content a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }
  .grid.cards,
  .partners-grid,
  .contact_main {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
  .card,
  .partner,
  .contact_item {
    width: 100% !important;
  }
  .section {
    padding: 42px 16px;
  }
  .section-title {
    font-size: clamp(26px, 8vw, 36px) !important;
  }
  .lead {
    font-size: 15px !important;
  }
  aside {
    display: none !important;
  }
  main {
    width: 100% !important;
    padding: 14px !important;
  }
  .md\:grid-cols-4 {
    grid-template-columns: 1fr 1fr !important;
  }
  .min-w-full {
    min-width: 920px !important;
  }
  #notifDropdown {
    position: fixed !important;
    top: 74px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: 72vh !important;
  }
  form,
  .form-grid,
  .quote-form {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }
  .bill-card,
  .bill {
    padding: 16px !important;
  }
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
@media (max-width: 520px) {
  .md\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
  .hero,
  .slider,
  .slide {
    min-height: 260px;
  }
  .slide-content .btn,
  .slide-content a {
    font-size: 14px;
    padding: 9px 16px;
  }
  .header-inner {
    padding: 10px 12px;
  }
  .brand_logo {
    width: 110px;
  }
  .nav-toggle {
    display: block;
  }
  .cards {
    gap: 16px;
  }
  .btn,
  .cta,
  button {
    touch-action: manipulation;
  }
}

/* NextSure premium page/nav fixes */
.site-header .brand_logo img {
  max-height: 64px;
  object-fit: contain;
}
.has-submenu {
  position: relative;
}
.has-submenu > .submenu {
  list-style: none;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.open > .submenu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
.submenu {
  z-index: 99999 !important;
}
.nav-list a.cta {
  cursor: pointer;
}
.table-wrap,
.overflow-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.min-w-full {
  min-width: 860px;
}
@media (max-width: 900px) {
  .nav {
    max-height: calc(100vh - 80px);
    overflow: auto;
  }
  .nav-list {
    width: 100%;
  }
  .has-submenu > .submenu {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .has-submenu.open > .submenu {
    display: block !important;
  }
  .login-bg .section,
  .login-bg main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .auth-card {
    border-radius: 24px !important;
  }
  .brand_logo {
    width: 138px !important;
  }
}

/* NextSure v26 global sticky navbar + hero height + up arrow */
.site-header,
.navbar,
header.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}
.hero,
.home-hero,
.product-hero,
.banner-section {
  min-height: 100vh;
}
.ns-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.25);
}
.ns-scroll-top.show {
  display: flex;
}

/* NextSure v34 product banner fix */
.hero,
.banner,
.product-hero,
.main-banner,
.slider,
.hero-section {
  background-size: 92% auto !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.hero::before,
.banner::before,
.product-hero::before,
.main-banner::before,
.slider::before,
.hero-section::before,
.hero::after,
.banner::after,
.product-hero::after,
.main-banner::after,
.slider::after,
.hero-section::after {
  opacity: 0.28 !important;
}
.buy-now-btn,
.btn-buy-now,
.hero-buy-btn,
a[href*='order'].buy-now,
.banner .btn,
.hero .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 170px !important;
  max-width: 230px !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  background: #10b981 !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: 2px solid #10f2a0 !important;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25) !important;
}
@media (max-width: 768px) {
  .hero,
  .banner,
  .product-hero,
  .main-banner,
  .slider,
  .hero-section {
    min-height: calc(100vh - 80px) !important;
    background-size: 96% auto !important;
    background-position: center center !important;
  }
  .buy-now-btn,
  .btn-buy-now,
  .hero-buy-btn,
  a[href*='order'].buy-now,
  .banner .btn,
  .hero .btn {
    min-width: 150px !important;
    padding: 11px 18px !important;
  }
}

/* v148 mobile/tablet stability */
@media (max-width: 900px) {
  .swal2-popup {
    width: min(96vw, 760px) !important;
    padding: 16px !important;
  }
  .swal2-html-container {
    margin: 10px 0 !important;
    overflow-x: hidden !important;
  }
  .ns-payment-modal-summary,
  .ns-ledger-summary,
  .ns-report-summary,
  .ns-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .overflow-auto,
  .table-wrap,
  .orders-table-wrap,
  .ns-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .overflow-auto table,
  .table-wrap table,
  .orders-table-wrap table,
  .ns-scroll table {
    width: max-content !important;
    max-width: none !important;
  }
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}
@media (max-width: 560px) {
  .ns-payment-modal-summary,
  .ns-ledger-summary,
  .ns-report-summary,
  .ns-summary-grid {
    grid-template-columns: 1fr !important;
  }
  .swal2-actions {
    width: 100% !important;
    gap: 8px !important;
  }
  .swal2-actions button {
    flex: 1 1 120px !important;
    margin: 0 !important;
    min-height: 44px !important;
  }
  .ns-mini-open-btn,
  .ns-mini-payment-btn,
  .ns-billing-create-btn,
  .ns-primary-btn,
  .ns-secondary-btn {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* SECTION 05 — Site Usability Fixes */

/* NextSure v27 site friendliness */
.site-header,
.navbar,
.main-header,
header {
  position: sticky;
  top: 0;
  z-index: 999;
}
.preloader {
  transition: opacity 0.2s ease !important;
}
.has-submenu .submenu,
.nav-item .submenu {
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  pointer-events: auto;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.submenu-open .submenu,
.nav-item:hover .submenu,
.nav-item:focus-within .submenu,
.nav-item.submenu-open .submenu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.hero,
.banner,
.product-hero,
.page-hero,
.main-banner {
  min-height: 100vh;
}
.hero img,
.banner img,
.product-hero img,
.main-banner img {
  object-fit: contain !important;
}
.ns-up-arrow {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #172554;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
  display: none;
  z-index: 1000;
  cursor: pointer;
}
.ns-up-arrow.show {
  display: block;
}
.ns-product-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 12px 35px rgba(22, 163, 74, 0.25);
}
@media (max-width: 768px) {
  .hero,
  .banner,
  .product-hero,
  .page-hero,
  .main-banner {
    min-height: calc(100vh - 72px);
  }
  .ns-product-buy {
    width: 100%;
    max-width: 280px;
  }
  .site-header,
  .navbar,
  .main-header,
  header {
    position: sticky !important;
  }
}

/* NextSure final override: mobile banner and floating buttons */
.header--offline,
.js-header.header--offline {
  display: none !important;
}
#backTop {
  right: 22px !important;
  bottom: 22px !important;
  z-index: 99997 !important;
}
@media (max-width: 900px) {
  .hero,
  .slider,
  #heroSlider {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16/10 !important;
    overflow: hidden !important;
    background: #071426 !important;
  }
  .slide {
    height: 100% !important;
    min-height: 0 !important;
  }
  .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  .slide-content h1,
  .slide-content h2,
  .slide-content h3,
  .slide-content p {
    display: none !important;
  }
}
@media (max-width: 520px) {
  .hero,
  .slider,
  #heroSlider {
    aspect-ratio: 4/3 !important;
    min-height: 300px !important;
  }
  .slider-controls {
    bottom: 10px !important;
  }
}

/* SECTION 06 — Public Site Fixes */

/* NextSure v28 public site customer-friendly fixes */
:root {
  --ns-green: #02c90f;
  --ns-blue: #24156b;
  --ns-dark: #071024;
}
#preloader {
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease !important;
}
.preloader,
.loader {
  animation-duration: 0.6s !important;
}
.hero,
.slider,
.slide,
.home-hero,
.banner-section {
  min-height: calc(100vh - 92px) !important;
}
.slide img,
.hero img,
#heroSlider img {
  filter: brightness(1.18) contrast(1.04) !important;
  object-fit: cover !important;
  object-position: center !important;
}
.slide::after {
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.34),
    rgba(2, 6, 23, 0.1),
    rgba(2, 6, 23, 0.02)
  ) !important;
}
.slide-content {
  z-index: 3 !important;
}
.slide-content .btn,
.slide-content a.btn,
.ns-banner-buy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  background: var(--ns-green) !important;
  color: #06111f !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 35px rgba(2, 201, 15, 0.28) !important;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.submenu {
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease !important;
}
.has-submenu::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}
.site-header,
.navbar,
.main-header,
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}
.ns-page-buy-row {
  text-align: center;
  margin: 18px auto 26px !important;
}
.ns-page-buy-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ns-green);
  color: #06111f;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(2, 201, 15, 0.25);
}
@media (max-width: 900px) {
  .hero,
  .slider,
  .slide,
  .home-hero,
  .banner-section {
    min-height: 58vh !important;
  }
  .slide img,
  .hero img,
  #heroSlider img {
    object-fit: cover !important;
  }
  .slide::after {
    background: linear-gradient(
      0deg,
      rgba(2, 6, 23, 0.26),
      rgba(2, 6, 23, 0.03)
    ) !important;
  }
  .slide-content h1,
  .slide-content h2,
  .slide-content h3,
  .slide-content p {
    display: none !important;
  }
  .slide-content {
    bottom: 28px !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }
  .slide-content .btn,
  .slide-content a.btn {
    font-size: 15px !important;
    padding: 11px 22px !important;
  }
  .site-header .brand img,
  .brand_logo img {
    max-height: 54px !important;
    width: auto !important;
  }
}
@media (max-width: 520px) {
  .hero,
  .slider,
  .slide,
  .home-hero,
  .banner-section {
    min-height: 52vh !important;
  }
  .slide-content {
    bottom: 20px !important;
  }
  .slide-content .btn,
  .slide-content a.btn {
    min-height: 42px !important;
    padding: 10px 18px !important;
  }
}

/* SECTION 07 — Nextsure Professional */
/* NextSure professional theme override */
:root {
  --ns-primary: #12355b;
  --ns-secondary: #0f766e;
  --ns-accent: #f59e0b;
  --ns-dark: #0f172a;
  --ns-soft: #f8fafc;
  --ns-border: #dbe4ee;
  --ns-text: #132238;
  --ns-muted: #64748b;
}
html {
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(180deg, #f8fafc 0%, #eef5f8 100%) !important;
  color: var(--ns-text) !important;
  -webkit-font-smoothing: antialiased;
}
.site-header,
.login-nav,
.navbar,
.main-header,
header {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 228, 238, 0.9) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06) !important;
}
.nav-list a,
.sidebar-btn {
  color: var(--ns-dark);
}
.nav-list .cta,
.btn,
.btn-link,
.ns-product-buy,
button.bg-indigo-600,
a.bg-indigo-600 {
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary)) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 34px rgba(18, 53, 91, 0.2) !important;
}
button.bg-slate-900,
a.bg-slate-900,
.bg-slate-900 {
  background: var(--ns-primary) !important;
}
.bg-emerald-600,
.bg-sky-600 {
  background: var(--ns-secondary) !important;
}
.text-indigo-700 {
  color: var(--ns-primary) !important;
}
.bg-indigo-50 {
  background: #eaf2f8 !important;
}
.border {
  border-color: var(--ns-border) !important;
}
.premium-card,
.card,
.auth-card,
.logo-card,
.contact-box,
.map-card,
.rounded-2xl,
.rounded-3xl {
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08) !important;
  border-color: var(--ns-border) !important;
}
.page-hero,
.product-hero,
.hero .slide,
.main-banner,
.ns-smart-banner {
  background: linear-gradient(135deg, #12355b 0%, #0f766e 72%, #f59e0b 100%) !important;
}
input,
select,
textarea {
  border-color: var(--ns-border) !important;
  outline-color: var(--ns-secondary) !important;
}
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14) !important;
  border-color: var(--ns-secondary) !important;
}
#nsProfileBtn img,
.ns-avatar-img {
  object-fit: cover;
}
.ns-letter-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary));
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .hero,
  .slider,
  #heroSlider,
  .main-banner {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    background: #f8fafc !important;
  }
  .slide {
    height: 100% !important;
    min-height: 0 !important;
    background: #f8fafc !important;
  }
  .slide img,
  .hero img,
  .banner img,
  .product-hero img,
  .main-banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f8fafc !important;
  }
  .slide-content {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 10px !important;
    top: auto !important;
    transform: none !important;
    text-align: center !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border-radius: 16px !important;
    padding: 8px 10px !important;
    backdrop-filter: blur(8px);
  }
  .slide-content h1,
  .slide-content h2,
  .slide-content h3 {
    display: block !important;
    color: #fff !important;
    font-size: clamp(18px, 6vw, 28px) !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }
  .slide-content p {
    display: none !important;
  }
  .slide-content .btn,
  .slide-content a {
    display: none !important;
  }
}
@media (max-width: 520px) {
  .hero,
  .slider,
  #heroSlider {
    aspect-ratio: 4/3 !important;
    min-height: 0 !important;
  }
  .page-hero,
  .product-hero {
    min-height: auto !important;
    padding: 70px 16px 36px !important;
  }
  .page-hero h1,
  .product-hero h1 {
    font-size: 30px !important;
  }
}

/* NextSure v40 full visual polish: readable dashboard, smooth spacing, professional palette */
:root {
  --ns-primary: #0b3a5b;
  --ns-primary-2: #075985;
  --ns-secondary: #0f766e;
  --ns-accent: #d99a21;
  --ns-bg: #f4f8fb;
  --ns-panel: #ffffff;
  --ns-text: #102033;
  --ns-muted: #64748b;
  --ns-border: #d8e3ee;
  --ns-sidebar: #0b2942;
  --ns-sidebar-2: #0f3f5f;
}
body {
  background: linear-gradient(180deg, #f7fbff 0%, #edf6f8 100%) !important;
  color: var(--ns-text) !important;
  line-height: 1.55 !important;
}
main,
.premium-wrap,
.container {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px !important;
  padding-right: 18px !important;
}
section {
  scroll-margin-top: 90px;
}
.premium-wrap {
  padding-top: 34px !important;
  padding-bottom: 44px !important;
}
.premium-grid {
  gap: 22px !important;
}
.premium-card,
.logo-card,
.contact-box,
.map-card,
.card-inner {
  border-radius: 24px !important;
  padding: 26px !important;
}
.site-header .header-inner {
  max-width: 1220px !important;
  padding: 12px 18px !important;
}
.nav-list {
  gap: 18px !important;
}
.nav-list a {
  padding: 10px 12px;
  border-radius: 12px;
}
.nav-list a:hover {
  background: #eef6f8 !important;
  color: var(--ns-primary) !important;
}
.nav-list .cta {
  padding: 11px 18px !important;
  border-radius: 999px !important;
}
.btn,
.btn-link,
.ns-product-buy {
  border-radius: 999px !important;
  padding: 12px 20px !important;
  font-weight: 900 !important;
}
input,
select,
textarea {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  background: #fff !important;
}

/* Dashboard sidebar must stay readable on dark background */
.desktop-side,
.mobile-top,
#mobileMenu .w-80 {
  background: linear-gradient(180deg, var(--ns-sidebar), var(--ns-sidebar-2)) !important;
  color: #fff !important;
}
.desktop-side *,
.mobile-top *,
#mobileMenu .w-80 * {
  color: #fff !important;
}
.desktop-side .sidebar-btn,
#mobileMenu .sidebar-btn {
  color: #f8fafc !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  margin: 3px 0 !important;
}
.desktop-side .sidebar-btn:hover,
#mobileMenu .sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateX(2px);
}
.desktop-side .sidebar-sub,
#mobileMenu .sidebar-sub {
  border-left-color: rgba(255, 255, 255, 0.22) !important;
}
.desktop-side img,
#mobileMenu img {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 3px !important;
}
.main-shell {
  background: linear-gradient(180deg, #f7fbff, #eef6f8) !important;
  padding: 18px !important;
  gap: 18px !important;
}
.dash-card,
.sales-panel,
#ordersView .bg-white,
#billsView .bg-white,
#peopleView .bg-white,
#branchBillsView .bg-white {
  border-radius: 24px !important;
  border: 1px solid var(--ns-border) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07) !important;
}
.orders-searchbar {
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 22px !important;
  background: #fff !important;
  border: 1px solid var(--ns-border) !important;
}
.orders-table-wrap {
  border-radius: 20px !important;
  border: 1px solid var(--ns-border) !important;
  background: #fff !important;
}
.orders-table-wrap thead,
.ns-wide-table thead {
  background: #eaf4f7 !important;
  color: #102033 !important;
}
.orders-table-wrap th,
.orders-table-wrap td {
  border-bottom: 1px solid #edf2f7 !important;
}
button,
.page-btn,
a {
  transition: 0.18s ease !important;
}
.page-btn.active,
.order-type-btn.active,
.role-tab.active {
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary)) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.bg-indigo-600,
.bg-slate-900,
.bg-purple-600 {
  background: linear-gradient(135deg, var(--ns-primary), var(--ns-secondary)) !important;
  color: #fff !important;
}
.bg-green-600,
.bg-emerald-600 {
  background: linear-gradient(135deg, #0f766e, #059669) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  main,
  .premium-wrap,
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .main-shell {
    padding: 10px !important;
    gap: 10px !important;
  }
  .premium-card,
  .logo-card,
  .contact-box,
  .map-card,
  .card-inner {
    padding: 18px !important;
    border-radius: 20px !important;
  }
  .site-header .header-inner {
    padding: 10px 12px !important;
  }
}

/* SECTION 08 — Nextsure Final Ui Clean */

/* NextSure final UI clean-up
   - Same clean header style on public pages
   - No chat/scroll floating buttons
   - Better mobile home banner
   - Cleaner profile/dashboard visuals
*/
:root {
  --ns-teal: #0f6b73;
  --ns-teal-2: #0f766e;
  --ns-green: #19c947;
  --ns-navy: #1e1b4b;
  --ns-text: #243045;
  --ns-soft: #f6fafb;
}
html,
body {
  overflow-x: hidden !important;
  background: #f8fbfc;
  color: var(--ns-text);
}
/* remove unwanted floating widgets everywhere */
#backTop,
#nsScrollTop,
.ns-scroll-top,
.ns-up-arrow,
.back-to-top,
.scroll-top,
.scrollTop,
.floating-btn,
.chat-widget {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
/* Header like supplied reference image */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  background: #fff !important;
  border-bottom: 1px solid rgba(15, 107, 115, 0.16) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: none !important;
}
.header-inner,
.site-header .header-inner,
.site-header .container.header-inner {
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: 14px 28px !important;
  min-height: 82px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100% !important;
}
.site-header .brand_logo {
  width: 190px !important;
  min-width: 160px !important;
  display: flex !important;
  align-items: center !important;
}
.site-header .brand,
.site-header .brand img {
  display: block !important;
}
.site-header .brand img,
.site-header .brand_logo img {
  width: 100% !important;
  max-height: 70px !important;
  object-fit: contain !important;
}
.site-header .nav {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
}
.site-header .nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.site-header .nav-list > li {
  margin: 0 !important;
  position: relative !important;
}
.site-header .nav-list > li > a {
  color: #334155 !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  padding: 10px 0 !important;
  letter-spacing: 0.01em !important;
}
.site-header .nav-list > li > a:hover,
.site-header .nav-list > li > a.active {
  color: var(--ns-teal) !important;
}
.site-header .nav-list > li > a::before {
  height: 2px !important;
  background: var(--ns-teal) !important;
  bottom: 4px !important;
}
.site-header .nav-list > li > a.cta,
.site-header .nav-list > li:last-child > a[href*='login'] {
  background: var(--ns-teal) !important;
  color: #fff !important;
  border-radius: 28px !important;
  padding: 16px 28px !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 32px rgba(15, 107, 115, 0.18) !important;
}
.site-header .nav-list > li > a.cta::before,
.site-header .nav-list > li:last-child > a[href*='login']::before {
  display: none !important;
}
.site-header .submenu {
  top: calc(100% + 10px) !important;
  border: 1px solid rgba(15, 107, 115, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12) !important;
}
.site-header .submenu a {
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 11px 14px !important;
}
.site-header .submenu a:hover {
  background: #ecfdf5 !important;
  color: var(--ns-teal) !important;
}
/* Home/mobile banner fix */
.hero {
  background: #eaf4f6 !important;
  color: #0f172a !important;
  min-height: clamp(390px, 46vw, 650px) !important;
  overflow: hidden !important;
}
.slider {
  height: clamp(390px, 46vw, 650px) !important;
}
.slide {
  height: 100% !important;
  min-height: 0 !important;
  background: linear-gradient(90deg, #eef8fb, #ffffff) !important;
}
.slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
  transform: none !important;
}
.slide::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.72) 40%,
    rgba(255, 255, 255, 0.1) 72%
  ) !important;
}
.slide::after {
  display: none !important;
}
.slide-content {
  left: 8% !important;
  max-width: 520px !important;
  color: #0f172a !important;
}
.slide-content h1 {
  color: #0f172a !important;
  text-shadow: none !important;
  font-size: clamp(36px, 4.8vw, 58px) !important;
}
.slide-content h3 {
  color: var(--ns-teal-2) !important;
  text-shadow: none !important;
  font-size: clamp(22px, 2.4vw, 34px) !important;
}
.slide-content p {
  color: #475569 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}
.slide-content a,
.slide-content .btn {
  background: var(--ns-teal) !important;
  border-radius: 999px !important;
  color: #fff !important;
  box-shadow: 0 16px 32px rgba(15, 107, 115, 0.22) !important;
}
.slider-controls {
  bottom: 22px !important;
}
.nav-btn {
  background: var(--ns-teal) !important;
  border: 0 !important;
}
.dots {
  background: rgba(255, 255, 255, 0.75) !important;
}
.dot.active {
  background: var(--ns-teal) !important;
}
/* remove dashboard type dropdown only; keep product type buttons visible */
button[onclick='toggleOrderTypes()'] {
  display: none !important;
}
.order-type-bar {
  display: flex !important;
}
.orders-panel-head #orderTypeBar,
#orderTypeBar {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
}
.order-type-btn {
  border: 1px solid #dbeafe !important;
}
.order-type-btn.active {
  background: var(--ns-teal) !important;
  color: #fff !important;
}
/* App/profile area improvement */
.profile-shell {
  max-width: 1180px !important;
}
.profile-card {
  border-radius: 34px !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12) !important;
}
.profile-hero {
  background:
    radial-gradient(circle at top right, rgba(25, 201, 71, 0.34), transparent 35%),
    linear-gradient(135deg, #073b4c, #0f766e) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
}
.soft-panel {
  background: #fff !important;
  border: 1px solid #d9e8ed !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07) !important;
}
.avatar {
  background: linear-gradient(135deg, #1e1b4b, #0f766e) !important;
  border: 7px solid rgba(255, 255, 255, 0.96) !important;
}
.btn-main {
  background: linear-gradient(135deg, #0f6b73, #10b981) !important;
  box-shadow: 0 14px 32px rgba(15, 107, 115, 0.2) !important;
}
.btn-light {
  border: 1px solid rgba(15, 107, 115, 0.18) !important;
  color: #0f6b73 !important;
}
@media (max-width: 900px) {
  .header-inner,
  .site-header .header-inner,
  .site-header .container.header-inner {
    min-height: 72px !important;
    padding: 10px 16px !important;
  }
  .site-header .brand_logo {
    width: 150px !important;
    min-width: 145px !important;
  }
  .nav-toggle {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    z-index: 10002 !important;
  }
  .site-header .nav {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 78px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2) !important;
    padding: 14px !important;
    display: none !important;
    max-height: calc(100vh - 92px) !important;
    overflow: auto !important;
  }
  .site-header .nav.open,
  .site-header .nav.active {
    display: block !important;
  }
  .site-header .nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
  }
  .site-header .nav-list > li > a {
    padding: 14px 16px !important;
    border-radius: 14px !important;
  }
  .site-header .nav-list > li > a:hover {
    background: #f1f5f9 !important;
  }
  .site-header .nav-list > li > a.cta,
  .site-header .nav-list > li:last-child > a[href*='login'] {
    text-align: center !important;
    margin-top: 6px !important;
  }
  .site-header .submenu {
    position: static !important;
    display: none !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #f8fafc !important;
    margin: 4px 0 8px !important;
  }
  .site-header .has-submenu.open > .submenu {
    display: block !important;
  }
  .hero {
    min-height: 0 !important;
    height: auto !important;
    background: #f1fbfd !important;
  }
  .slider {
    height: clamp(280px, 72vw, 420px) !important;
  }
  .slide {
    overflow: hidden !important;
  }
  .slide img {
    object-fit: cover !important;
    object-position: center !important;
  }
  .slide::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05)
    ) !important;
  }
  .slide-content {
    display: none !important;
  }
  .slider-controls {
    bottom: 10px !important;
  }
  .nav-btn {
    display: none !important;
  }
  .dots {
    padding: 7px 12px !important;
    background: rgba(255, 255, 255, 0.78) !important;
  }
  .dot {
    width: 9px !important;
    height: 9px !important;
  }
  .section {
    padding: 42px 15px !important;
  }
  .grid.cards,
  .cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .contact_main {
    grid-template-columns: 1fr !important;
  }
  .orders-searchbar {
    gap: 8px !important;
  }
  .orders-searchbar input {
    min-width: 190px !important;
    flex: 1 1 100% !important;
  }
}
@media (max-width: 520px) {
  .header-inner,
  .site-header .header-inner {
    padding: 9px 12px !important;
  }
  .site-header .brand_logo {
    width: 138px !important;
    min-width: 132px !important;
  }
  .slider {
    height: 330px !important;
  }
  .slider-controls {
    bottom: 8px !important;
  }
  .partners-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .profile-shell {
    padding: 10px !important;
  }
  .profile-card {
    border-radius: 24px !important;
  }
}

/* ===== NextSure v12 quick fixes =====
   1) Mobile menu must show links when hamburger is opened.
   2) About / Partners / Contact / Products hero gap reduced.
   3) Hide Brevo/chat/Google-translate floating widgets everywhere.
*/
/* Hide Brevo / chat / translate widgets injected after page load */
#brevo-conversations,
#BrevoConversations,
[id*='brevo' i],
[class*='brevo' i],
[id*='sendinblue' i],
[class*='sendinblue' i],
[id*='sib' i][style*='fixed'],
[class*='sib' i][style*='fixed'],
[id*='conversation' i][style*='fixed'],
[class*='conversation' i][style*='fixed'],
[id*='chat' i][style*='fixed'],
[class*='chat' i][style*='fixed'],
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-gadget,
.goog-te-menu-frame,
.goog-tooltip,
.skiptranslate,
#google_translate_element,
iframe[src*='brevo' i],
iframe[src*='sendinblue' i],
iframe[src*='sib' i],
iframe[src*='translate.google' i],
iframe[src*='translate.googleapis' i] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}
html {
  top: 0 !important;
}
body {
  top: 0 !important;
}

/* Desktop page hero height fix: no extra huge blank gap */
.page-hero,
.product-hero {
  min-height: auto !important;
  height: auto !important;
  padding: 72px 20px 64px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.page-hero h1,
.product-hero h1 {
  margin: 0 !important;
  line-height: 1.08 !important;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem) !important;
}
.page-hero p,
.product-hero p {
  margin: 18px auto 0 !important;
  max-width: 880px !important;
}

@media (max-width: 900px) {
  /* Mobile menu panel: show real menu links, not only grey overlay */
  body.menu-open .site-header .nav,
  .site-header .nav.open,
  .site-header .nav.active {
    display: block !important;
    z-index: 10003 !important;
  }
  .site-header .nav {
    z-index: 10003 !important;
  }
  .menu-overlay {
    z-index: 9999 !important;
  }
  .site-header .nav-toggle {
    z-index: 10004 !important;
  }
  .site-header .nav-list {
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .site-header .nav-list li {
    width: 100% !important;
    border-bottom: 1px solid #edf2f7 !important;
  }
  .site-header .nav-list li:last-child {
    border-bottom: 0 !important;
  }
  .site-header .nav-list > li > a {
    display: block !important;
    width: 100% !important;
  }
  .site-header .has-submenu > .submenu,
  .site-header .has-submenu.active > .submenu,
  .site-header .has-submenu.open > .submenu {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .page-hero,
  .product-hero {
    min-height: auto !important;
    padding: 48px 16px 38px !important;
  }
  .page-hero h1,
  .product-hero h1 {
    font-size: clamp(28px, 8vw, 42px) !important;
  }
  .page-hero p,
  .product-hero p {
    font-size: 15px !important;
    margin-top: 12px !important;
  }
}

/* v13: keep public and order-page headers locked while scrolling */
header.site-header,
.site-header,
.sticky-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  transform: none !important;
}
.ns-page-buy-row a {
  font-weight: 900 !important;
}

/* ===== NextSure v14 fixes =====
   1) Public .header-inner header locked/fixed while scrolling.
   2) Dashboard/order detail text display in CAPITAL LETTERS where user-entered order text is shown.
   3) Product/order forms stay separate for Travel, Motor, Fire, Marine.
*/
body:has(.site-header) {
  padding-top: 82px !important;
}
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100000 !important;
  transform: none !important;
}
.site-header .header-inner,
.header-inner {
  position: relative !important;
  z-index: 100001 !important;
}
@media (max-width: 900px) {
  body:has(.site-header) {
    padding-top: 72px !important;
  }
  .site-header .nav {
    top: 78px !important;
    z-index: 100002 !important;
  }
}
@media (max-width: 520px) {
  body:has(.site-header) {
    padding-top: 66px !important;
  }
  .site-header .nav {
    top: 70px !important;
  }
}
/* Tailwind order form headers use .sticky-nav; keep them locked too */
.sticky-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100000 !important;
}
body:has(.sticky-nav) {
  padding-top: 64px !important;
}

/* All order data display should appear in capital letters, but keep email/payment text readable */
#ordersView tbody td,
#ordersView tbody td button,
#ordersView tbody td a,
#ordersTableHead th,
#ordersSubtitle,
.order-type-btn,
.order-detail-table td,
.order-detail-table th,
.ns-order-detail-text,
.swal2-html-container .ns-uppercase-display {
  text-transform: uppercase !important;
}
#ordersView tbody td:nth-child(6),
#ordersView tbody td .no-uppercase,
input[type='email'],
.email-text {
  text-transform: none !important;
}

/* ===== NextSure v15 fixes =====
   Header/header-inner locked on every public page, one hero Buy Now, hidden public multiplier.
*/
html {
  scroll-padding-top: 92px !important;
}
body {
  margin: 0 !important;
}
header.site-header,
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483000 !important;
  background: #fff !important;
  transform: none !important;
  will-change: auto !important;
}
.site-header .header-inner,
.header-inner {
  box-sizing: border-box !important;
}
body:has(.site-header) {
  padding-top: 92px !important;
}
.hero,
.page-hero,
.product-hero {
  margin-top: 0 !important;
}
@media (max-width: 900px) {
  body:has(.site-header) {
    padding-top: 78px !important;
  }
  html {
    scroll-padding-top: 78px !important;
  }
}
@media (max-width: 520px) {
  body:has(.site-header) {
    padding-top: 68px !important;
  }
  html {
    scroll-padding-top: 68px !important;
  }
}
.slide {
  position: relative !important;
}
.slide .hero-buy-now {
  position: absolute !important;
  left: 8% !important;
  bottom: 64px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 150px !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  background: #0f6b73 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  box-shadow: 0 18px 38px rgba(15, 107, 115, 0.28) !important;
  z-index: 5 !important;
}
@media (min-width: 901px) {
  .slide .hero-buy-now {
    bottom: 90px !important;
  }
}
@media (max-width: 900px) {
  .slide .hero-buy-now {
    left: 18px !important;
    bottom: 48px !important;
    min-width: 124px !important;
    padding: 11px 22px !important;
    font-size: 14px !important;
  }
}
.ns-page-buy-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 20px auto !important;
}
.ns-page-buy-row a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #18c54a !important;
  color: #06152a !important;
  padding: 15px 38px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 16px 40px rgba(24, 197, 74, 0.25) !important;
}
#multiplier[type='hidden'] + #multiplierError {
  display: none !important;
}

/* ===== NextSure v16 fixes =====
   Product slider Buy Now for every slide, lower calculation popup,
   and cleaner responsive product/order pages.
*/
/* Keep main public header locked at the very top on every public page. */
.site-header,
header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483600 !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08) !important;
}
.site-header .header-inner,
.header-inner {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 88px !important;
  z-index: 2147483601 !important;
}
@media (max-width: 900px) {
  .site-header .header-inner,
  .header-inner {
    min-height: 74px !important;
  }
}
@media (max-width: 520px) {
  .site-header .header-inner,
  .header-inner {
    min-height: 64px !important;
  }
}

/* Home slider: each Travel/Motor/Fire/Marine slide must show one Buy Now button. */
#heroSlider {
  position: relative !important;
  overflow: hidden !important;
}
#heroSlider .slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#heroSlider .slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}
#heroSlider .slide .hero-buy-now {
  position: absolute !important;
  left: 8% !important;
  bottom: 72px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 170px !important;
  min-height: 52px !important;
  padding: 14px 30px !important;
  border-radius: 999px !important;
  background: #0f6b73 !important;
  border: 2px solid #00d084 !important;
  color: #fff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 16px 35px rgba(15, 107, 115, 0.3) !important;
  z-index: 8 !important;
}
#heroSlider .slide:not(.active) .hero-buy-now {
  visibility: hidden !important;
  pointer-events: none !important;
}
#heroSlider .slide .hero-buy-now:hover {
  background: #0b5960 !important;
  transform: translateY(-2px) !important;
}
@media (min-width: 901px) {
  #heroSlider .slide .hero-buy-now {
    bottom: 86px !important;
  }
}
@media (max-width: 900px) {
  #heroSlider .slide .hero-buy-now {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 54px !important;
    min-width: 150px !important;
    min-height: 46px !important;
    padding: 11px 24px !important;
    font-size: 15px !important;
  }
}
@media (max-width: 520px) {
  #heroSlider .slide .hero-buy-now {
    bottom: 46px !important;
    min-width: 132px !important;
    min-height: 42px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
  .slider-controls {
    bottom: 8px !important;
  }
}

/* Calculation popup a little lower than the fixed header, with phone-safe spacing. */
#calcPopupOverlay {
  align-items: flex-start !important;
  padding-top: 128px !important;
  overflow: auto !important;
}
@media (max-width: 768px) {
  #calcPopupOverlay {
    padding-top: 100px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
@media (max-width: 420px) {
  #calcPopupOverlay {
    padding-top: 86px !important;
  }
}

/* Product pages: beautiful and phone-friendly Travel/Motor/Fire/Marine layout. */
.ns-page-buy-row {
  margin: 18px auto 24px !important;
  padding: 0 14px !important;
}
.ns-page-buy-row a,
.btn-row a[href$='-order.html'],
.btn-row a[href='/travel-order'],
.btn-row a[href='travel-order.html'] {
  border-radius: 999px !important;
  min-width: 160px !important;
  text-align: center !important;
}
.travel_banner_main,
.product-info,
.why,
.cta,
.contact-section,
main.page {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.travel_banner_main {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px !important;
  align-items: center !important;
}
.travel_images img,
.hero img,
.hero-img {
  max-width: 100% !important;
  border-radius: 22px !important;
}
@media (max-width: 900px) {
  .travel_banner_main,
  .hero,
  .layout {
    grid-template-columns: 1fr !important;
  }
  .travel_text,
  .product-info,
  .why,
  .cta,
  .contact-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .travel_text {
    text-align: center !important;
  }
  .travel_images {
    order: -1 !important;
  }
  .travel_images img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
  .hero {
    padding: 22px 14px !important;
    gap: 16px !important;
    min-height: auto !important;
  }
  .hero-card {
    padding: 22px !important;
    border-radius: 22px !important;
  }
  .hero h1,
  .section-title {
    font-size: clamp(28px, 8vw, 42px) !important;
    line-height: 1.1 !important;
  }
  .btn-row {
    justify-content: center !important;
  }
  .btn-row .btn,
  .btn-row a,
  .ns-page-buy-row a {
    width: auto !important;
    max-width: 280px !important;
  }
}
@media (max-width: 520px) {
  .hero-card,
  .bg-white.rounded-3xl {
    border-radius: 20px !important;
    padding: 18px !important;
  }
  .ns-page-buy-row a {
    width: 100% !important;
    max-width: 260px !important;
  }
  .benefits,
  .grid.cards {
    grid-template-columns: 1fr !important;
  }
}

/* Hide injected floating chat/translate widgets more aggressively. */
[id*='brevo' i],
[class*='brevo' i],
[id*='sendinblue' i],
[class*='sendinblue' i],
[id*='sib' i][style*='fixed'],
[class*='sib' i][style*='fixed'],
[id*='chat' i][style*='fixed'],
[class*='chat' i][style*='fixed'],
button[aria-label*='chat' i],
a[aria-label*='chat' i],
iframe[src*='brevo' i],
iframe[src*='sendinblue' i],
iframe[src*='sib' i],
.goog-te-gadget,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-menu-frame,
.goog-tooltip,
.skiptranslate,
#google_translate_element {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.swal2-container .ns-calc-swal-popup {
  margin-top: 80px !important;
}
@media (max-width: 768px) {
  .swal2-container .ns-calc-swal-popup {
    margin-top: 54px !important;
  }
}

/* ===== NextSure v17 public header + product page final fixes =====
   1) Same fixed white header on all public HTML pages, except dashboard screens.
   2) Profile dropdown, login button and mobile menu match the supplied reference image.
   3) Remove WhatsApp/chat/translate floating buttons from site-auth and injected widgets.
*/
body:has(.site-header) {
  padding-top: 104px !important;
}

.site-header,
header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2147483600 !important;
  width: 100% !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 107, 115, 0.12) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04) !important;
}

.site-header .header-inner,
.header-inner,
.site-header .container.header-inner {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 104px !important;
  margin: 0 auto !important;
  padding: 18px 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  box-sizing: border-box !important;
}

.site-header .brand_logo,
.site-header .brand {
  flex: 0 0 auto !important;
  width: 230px !important;
  min-width: 190px !important;
}

.site-header .brand img,
.site-header .brand_logo img {
  display: block !important;
  width: 100% !important;
  max-height: 76px !important;
  object-fit: contain !important;
}

.site-header .nav {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
}

.site-header .nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.site-header .nav-list > li {
  margin: 0 !important;
  position: relative !important;
}

.site-header .nav-list > li > a,
.site-header #nsProfileBtn {
  color: #263449 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
}

.site-header .nav-list > li > a:hover,
.site-header .nav-list > li > a.active {
  color: #0f6b73 !important;
}

.site-header .nav-list > li > a.cta,
.site-header .nav-list > li:last-child > a[href*='login'] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 124px !important;
  min-height: 64px !important;
  padding: 16px 28px !important;
  border-radius: 999px !important;
  background: #0f6b73 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 16px 38px rgba(15, 107, 115, 0.2) !important;
}

#nsProfileMenu {
  position: relative !important;
}

#nsProfileBtn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 54px !important;
  padding: 9px 18px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
  cursor: pointer !important;
}

#nsProfileBtn img,
#nsProfileBtn .ns-letter-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

#nsProfileDrop {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  display: none !important;
  min-width: 210px !important;
  padding: 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16) !important;
}

#nsProfileMenu.open #nsProfileDrop {
  display: block !important;
}

#nsProfileDrop a,
#nsProfileDrop button {
  display: block !important;
  width: 100% !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #102033 !important;
  font-weight: 800 !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

#nsProfileDrop a:hover,
#nsProfileDrop button:hover {
  background: #f1f5f9 !important;
  color: #0f6b73 !important;
}

#nsWhatsappFloat,
[id*='whatsapp' i][style*='fixed'],
[class*='whatsapp' i][style*='fixed'],
[id*='translate' i][style*='fixed'],
[class*='translate' i][style*='fixed'],
button[aria-label*='translate' i],
iframe[src*='translate' i] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body > .skiptranslate,
body > iframe.skiptranslate,
body > .goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 1100px) {
  .site-header .header-inner,
  .header-inner,
  .site-header .container.header-inner {
    padding: 16px 26px !important;
  }

  .site-header .nav-list {
    gap: 18px !important;
  }
}

@media (max-width: 900px) {
  body:has(.site-header) {
    padding-top: 78px !important;
  }

  .site-header .header-inner,
  .header-inner,
  .site-header .container.header-inner {
    min-height: 78px !important;
    padding: 10px 16px !important;
  }

  .site-header .brand_logo,
  .site-header .brand {
    width: 154px !important;
    min-width: 145px !important;
  }

  .site-header .brand img,
  .site-header .brand_logo img {
    max-height: 58px !important;
  }

  .nav-toggle,
  .site-header .nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin-left: auto !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    cursor: pointer !important;
  }

  .site-header .nav {
    position: fixed !important;
    top: 88px !important;
    left: 12px !important;
    right: 12px !important;
    display: none !important;
    max-height: calc(100vh - 100px) !important;
    padding: 14px !important;
    overflow: auto !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2) !important;
  }

  .site-header .nav.active,
  .site-header .nav.open,
  .site-header .nav:has(.nav-list.active) {
    display: block !important;
  }

  .site-header .nav-list,
  .site-header .nav-list.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .site-header .nav-list > li > a,
  .site-header #nsProfileBtn {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
  }

  .site-header .nav-list > li > a.cta,
  .site-header .nav-list > li:last-child > a[href*='login'] {
    min-height: 50px !important;
    margin-top: 6px !important;
    justify-content: center !important;
  }

  #nsProfileDrop {
    position: static !important;
    margin-top: 8px !important;
    box-shadow: none !important;
  }
}

@media (max-width: 520px) {
  body:has(.site-header) {
    padding-top: 70px !important;
  }

  .site-header .header-inner,
  .header-inner,
  .site-header .container.header-inner {
    min-height: 70px !important;
    padding: 8px 12px !important;
  }

  .site-header .brand_logo,
  .site-header .brand {
    width: 136px !important;
    min-width: 132px !important;
  }

  .site-header .brand img,
  .site-header .brand_logo img {
    max-height: 52px !important;
  }

  .site-header .nav {
    top: 78px !important;
    max-height: calc(100vh - 90px) !important;
  }
}

/* SECTION 09 — Dashboard Ai Feedback */
/* NextSure v18: modern dashboard sidebar, row colors, AI assistant and feedback */
:root {
  --ns-v18-navy: #082a44;
  --ns-v18-teal: #0f766e;
  --ns-v18-green: #10b981;
  --ns-v18-gold: #f59e0b;
  --ns-v18-soft: #eef7fb;
  --ns-v18-line: #dbe8f0;
}

/* Dashboard sidebar polish */
.desktop-side,
#mobileMenu .w-80 {
  background: linear-gradient(180deg, #082a44 0%, #0b3a5b 48%, #075b68 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 14px 0 34px rgba(8, 42, 68, 0.18) !important;
}
.desktop-side #sideNav > a img,
#mobileMenu #mobileNav > a img {
  width: 170px !important;
  max-width: 100% !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  padding: 8px !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12) !important;
}
.desktop-side h2,
#mobileMenu h2 {
  font-size: 22px !important;
  letter-spacing: 0.01em !important;
  margin-top: 8px !important;
}
.desktop-side p,
#mobileMenu p {
  color: rgba(255, 255, 255, 0.76) !important;
}
.desktop-side .sidebar-btn,
#mobileMenu .sidebar-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  font-weight: 900 !important;
  color: #f8fbff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.desktop-side .sidebar-btn:hover,
#mobileMenu .sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateX(4px) !important;
}
.desktop-side .sidebar-sub,
#mobileMenu .sidebar-sub {
  margin: 8px 0 12px 10px !important;
  padding-left: 14px !important;
  border-left: 1px dashed rgba(255, 255, 255, 0.25) !important;
}
.desktop-side .sidebar-sub .sidebar-btn,
#mobileMenu .sidebar-sub .sidebar-btn {
  font-size: 14px !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

/* Dashboard rows and tables */
.orders-table-wrap tbody td {
  text-transform: uppercase !important;
}
.orders-table-wrap tbody tr,
.ns-wide-table tbody tr {
  transition: 0.18s ease !important;
}
.orders-table-wrap tbody tr:nth-child(odd),
.ns-wide-table tbody tr:nth-child(odd) {
  background: linear-gradient(90deg, #fbfdff, #f6fbfd) !important;
}
.orders-table-wrap tbody tr:nth-child(even),
.ns-wide-table tbody tr:nth-child(even) {
  background: linear-gradient(90deg, #ffffff, #eef8fb) !important;
}
.orders-table-wrap tbody tr:hover,
.ns-wide-table tbody tr:hover,
.ns-pretty-row:hover {
  background: linear-gradient(90deg, #e9f7ff, #ecfdf5) !important;
  box-shadow: inset 4px 0 0 var(--ns-v18-teal) !important;
}
.orders-table-wrap thead th,
.ns-wide-table thead th {
  background: #e8f4f7 !important;
  color: #0f2338 !important;
  font-weight: 1000 !important;
}
.ns-report-row:nth-child(odd),
.ns-pretty-row:nth-child(odd) {
  background: #fbfdff !important;
}
.ns-report-row:nth-child(even),
.ns-pretty-row:nth-child(even) {
  background: #f4fbfd !important;
}

/* Management cards */
.ns-management-toolbar {
  background: linear-gradient(135deg, #ffffff 0%, #f1fbfd 100%) !important;
  border: 1px solid var(--ns-v18-line) !important;
}
.ns-person-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%) !important;
  border: 1px solid var(--ns-v18-line) !important;
  position: relative;
  overflow: hidden;
}
.ns-person-card:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ns-v18-teal), var(--ns-v18-green));
}
.ns-code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f8f4;
  color: #0f766e;
  font-size: 12px;
  font-weight: 1000;
  padding: 7px 10px;
  white-space: nowrap;
}
.ns-mini-stat {
  border-radius: 18px;
  padding: 12px 8px;
  border: 1px solid rgba(219, 232, 240, 0.8);
}
.ns-mini-stat b {
  display: block;
  font-size: 22px;
  color: #102033;
}
.ns-mini-orders {
  background: #edf7ff;
}
.ns-mini-paid {
  background: #eafbf2;
}
.ns-mini-due {
  background: #fff1f2;
}
.ns-deleted-bills-panel {
  order: 99;
}

/* AI assistant and feedback on home */
.ns-ai-assistant {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 9998;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}
.ns-ai-fab {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #0f766e, #10b981) !important;
  color: #fff !important;
  font-weight: 1000;
  box-shadow: 0 20px 44px rgba(15, 118, 110, 0.3) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
}
.ns-ai-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(92vw, 390px);
  height: 520px;
  max-height: 70vh;
  background: #fff;
  border: 1px solid #dbe8f0;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  display: none;
}
.ns-ai-assistant.open .ns-ai-panel {
  display: flex;
  flex-direction: column;
}
.ns-ai-head {
  padding: 16px 18px;
  background: linear-gradient(135deg, #0b3a5b, #0f766e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ns-ai-head b {
  font-size: 17px;
}
.ns-ai-head span {
  font-size: 12px;
  opacity: 0.85;
}
.ns-ai-close {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  width: 34px;
  height: 34px;
  font-size: 20px;
}
.ns-ai-messages {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbff, #eef8fb);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ns-ai-msg {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.ns-ai-msg.bot {
  background: #fff;
  color: #132238;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.ns-ai-msg.user {
  background: #0f766e;
  color: #fff;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.ns-ai-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.ns-ai-input {
  flex: 1;
  border: 1px solid #dbe8f0;
  border-radius: 16px;
  padding: 12px !important;
  font-size: 14px;
}
.ns-ai-send {
  border: 0;
  border-radius: 16px;
  background: #0b3a5b !important;
  color: #fff !important;
  font-weight: 900;
  padding: 0 16px !important;
}
.ns-feedback-section {
  margin: 48px auto;
  max-width: 1120px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff, #eefbf7);
  border: 1px solid #dbe8f0;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}
.ns-feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ns-feedback-grid textarea {
  grid-column: 1/-1;
  min-height: 120px;
}
.ns-feedback-section input,
.ns-feedback-section select,
.ns-feedback-section textarea {
  width: 100%;
  border: 1px solid #dbe8f0;
  border-radius: 16px;
  padding: 13px 14px !important;
  background: #fff;
}
.ns-feedback-submit {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b3a5b, #0f766e) !important;
  color: #fff !important;
  font-weight: 1000;
  padding: 13px 24px !important;
  margin-top: 12px;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.2) !important;
}
@media (max-width: 768px) {
  .ns-ai-assistant {
    right: 14px;
    bottom: 16px;
  }
  .ns-ai-fab {
    width: 56px;
    height: 56px;
    font-size: 21px;
  }
  .ns-ai-panel {
    width: calc(100vw - 24px);
    right: -2px;
    height: 72vh;
    bottom: 68px;
    border-radius: 22px;
  }
  .ns-feedback-section {
    margin: 30px 12px;
    padding: 20px;
  }
  .ns-feedback-grid {
    grid-template-columns: 1fr;
  }
}

/* v22: cleaner, more modern dashboard polish */
.desktop-side,
#mobileMenu .w-80 {
  background: linear-gradient(180deg, #072840 0%, #0b4961 52%, #08706f 100%) !important;
}
.desktop-side .sidebar-btn,
#mobileMenu .sidebar-btn {
  border-radius: 20px !important;
  padding: 14px 16px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(2, 6, 23, 0.08) !important;
}
.desktop-side .sidebar-btn.hidden,
#mobileMenu .sidebar-btn.hidden {
  display: none !important;
}
.desktop-side .sidebar-sub.hidden,
#mobileMenu .sidebar-sub.hidden {
  display: none !important;
}
.dash-card {
  border: 1px solid #dcebf2 !important;
  background: linear-gradient(135deg, #ffffff, #f8fdff) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06) !important;
}
#peopleView .ns-person-card,
.ns-person-card {
  border-radius: 28px !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08) !important;
}
.orders-table-wrap tbody tr:nth-child(4n + 1) {
  background: linear-gradient(90deg, #fffaf0, #ffffff) !important;
}
.orders-table-wrap tbody tr:nth-child(4n + 2) {
  background: linear-gradient(90deg, #eef7ff, #ffffff) !important;
}
.orders-table-wrap tbody tr:nth-child(4n + 3) {
  background: linear-gradient(90deg, #effdf6, #ffffff) !important;
}
.orders-table-wrap tbody tr:nth-child(4n + 4) {
  background: linear-gradient(90deg, #fff1f2, #ffffff) !important;
}

/* SECTION 10 — Public Ai Whatsapp Products */
/*
  NextSure v19 public AI, WhatsApp, product image and mobile fixes
  ----------------------------------------------------------------
  This file is intentionally separated so future edits are easy.
*/
:root {
  --ns-teal: #0f6b73;
  --ns-green: #10b981;
  --ns-navy: #102033;
  --ns-muted: #64748b;
  --ns-border: #dbe8f0;
}

/* Home top headline/ticker over banner */
.hero {
  position: relative;
}
.ns-hero-news {
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 2px solid rgba(239, 68, 68, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  color: #dc2626;
  font-weight: 1000;
  font-size: clamp(14px, 1.6vw, 22px);
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.01em;
}
.ns-hero-news b {
  color: #0f6b73;
  margin-right: 8px;
}

/* Product pages: show full banner image, never crop the important part */
.ns-product-image-wrap {
  background: linear-gradient(135deg, #f8fbff, #eef8fb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 440px !important;
  padding: 0 !important;
}
.ns-product-image-wrap::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0)
  ) !important;
}
.ns-product-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  min-height: 440px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}
.ns-product-hero-card {
  overflow: hidden !important;
}

/* Floating WhatsApp button: all pages */
.ns-wa-float {
  position: fixed;
  right: 22px;
  bottom: 102px;
  z-index: 2147483401;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.36);
  border: 4px solid rgba(255, 255, 255, 0.95);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.ns-wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 24px 54px rgba(37, 211, 102, 0.46);
}
.ns-wa-float svg {
  width: 31px;
  height: 31px;
  display: block;
}
.ns-wa-float span {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #102033;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  border-radius: 999px;
  padding: 9px 12px;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: 0.16s ease;
}
.ns-wa-float:hover span {
  opacity: 1;
}

/* AI assistant: all pages */
.ns-ai-assistant {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 2147483400;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}
.ns-ai-fab {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #0b3a5b, #0f766e 55%, #10b981) !important;
  color: #fff !important;
  font-weight: 1000;
  box-shadow: 0 20px 44px rgba(15, 118, 110, 0.3) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  letter-spacing: 0.02em;
  border: 4px solid rgba(255, 255, 255, 0.96) !important;
}
.ns-ai-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(92vw, 410px);
  height: 540px;
  max-height: 72vh;
  background: #fff;
  border: 1px solid #dbe8f0;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  display: none;
}
.ns-ai-assistant.open .ns-ai-panel {
  display: flex;
  flex-direction: column;
}
.ns-ai-head {
  padding: 16px 18px;
  background: linear-gradient(135deg, #0b3a5b, #0f766e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ns-ai-head b {
  font-size: 17px;
}
.ns-ai-head span {
  font-size: 12px;
  opacity: 0.86;
}
.ns-ai-close {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  width: 34px;
  height: 34px;
  font-size: 20px;
  cursor: pointer;
}
.ns-ai-messages {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbff, #eef8fb);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ns-ai-msg {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.48;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  white-space: pre-wrap;
}
.ns-ai-msg.bot {
  background: #fff;
  color: #132238;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  border: 1px solid rgba(219, 232, 240, 0.7);
}
.ns-ai-msg.user {
  background: #0f766e;
  color: #fff;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.ns-ai-quick {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.ns-ai-quick button {
  border: 1px solid #dbe8f0;
  background: #fff;
  color: #0f6b73;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}
.ns-ai-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.ns-ai-input {
  flex: 1;
  border: 1px solid #dbe8f0;
  border-radius: 16px;
  padding: 12px !important;
  font-size: 14px;
  min-width: 0;
}
.ns-ai-input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.ns-ai-send {
  border: 0;
  border-radius: 16px;
  background: #0b3a5b !important;
  color: #fff !important;
  font-weight: 900;
  padding: 0 16px !important;
  cursor: pointer;
}

/* Feedback section, when present */
.ns-feedback-section {
  max-width: 1120px;
  margin: 56px auto;
  padding: 28px;
  border: 1px solid #dbe8f0;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}
.ns-feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ns-feedback-grid textarea {
  grid-column: 1/-1;
}
.ns-feedback-section input,
.ns-feedback-section textarea,
.ns-feedback-section select {
  width: 100%;
  border: 1px solid #dbe8f0;
  border-radius: 14px;
  padding: 13px;
  background: #fff;
}
.ns-feedback-section button {
  border: 0;
  border-radius: 16px;
  background: #0f6b73;
  color: #fff;
  font-weight: 900;
  padding: 13px 20px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .ns-hero-news {
    top: 10px;
    left: 14px;
    right: 14px;
    font-size: 13px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 11px;
  }
  .ns-product-image-wrap,
  .ns-product-image-wrap img {
    min-height: 300px !important;
  }
}
@media (max-width: 640px) {
  .ns-product-image-wrap,
  .ns-product-image-wrap img {
    min-height: 250px !important;
  }
  .ns-wa-float {
    right: 14px;
    bottom: 88px;
    width: 56px;
    height: 56px;
  }
  .ns-wa-float span {
    display: none;
  }
  .ns-ai-assistant {
    right: 14px;
    bottom: 16px;
  }
  .ns-ai-fab {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }
  .ns-ai-panel {
    width: calc(100vw - 24px);
    right: -2px;
    height: 72vh;
    bottom: 68px;
    border-radius: 22px;
  }
  .ns-feedback-section {
    margin: 30px 12px;
    padding: 20px;
  }
  .ns-feedback-grid {
    grid-template-columns: 1fr;
  }
}

/* v20: WhatsApp live chat stays above AI assistant on every page */
.ns-wa-float {
  bottom: 112px !important;
  z-index: 2147483600 !important;
}
.ns-ai-assistant {
  bottom: 24px !important;
  z-index: 2147483500 !important;
}
@media (max-width: 640px) {
  .ns-wa-float {
    right: 16px !important;
    bottom: 102px !important;
    width: 58px !important;
    height: 58px !important;
  }
  .ns-ai-assistant {
    right: 16px !important;
    bottom: 18px !important;
  }
  .ns-ai-fab {
    width: 58px !important;
    height: 58px !important;
  }
  .ns-ai-panel {
    width: calc(100vw - 24px) !important;
    right: -4px !important;
  }
}

/* v21: WhatsApp live support must remain visible on every page and stay above AI. */
.ns-wa-float {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 62px !important;
  height: 62px !important;
  overflow: visible !important;
  right: 22px !important;
  bottom: 112px !important;
  z-index: 2147483600 !important;
}
.ns-ai-assistant {
  right: 22px !important;
  bottom: 24px !important;
  z-index: 2147483500 !important;
}
@media (max-width: 640px) {
  .ns-wa-float {
    right: 16px !important;
    bottom: 102px !important;
    width: 58px !important;
    height: 58px !important;
  }
  .ns-ai-assistant {
    right: 16px !important;
    bottom: 18px !important;
  }
}

/* v22: WhatsApp must sit clearly above AI chatbot on every page */
.ns-wa-float {
  bottom: 132px !important;
  right: 22px !important;
  z-index: 2147483601 !important;
}
.ns-ai-assistant {
  bottom: 24px !important;
  right: 22px !important;
  z-index: 2147483500 !important;
}
@media (max-width: 640px) {
  .ns-wa-float {
    bottom: 122px !important;
    right: 16px !important;
  }
  .ns-ai-assistant {
    bottom: 18px !important;
    right: 16px !important;
  }
}

/* v22: searchable assignment fields */
#adminAssignmentBox input[list] {
  font-weight: 800;
  color: #0f172a;
  border: 2px solid #dbeafe !important;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}
#adminAssignmentBox input[list]:focus {
  outline: none;
  border-color: #0f766e !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

/* v23: WhatsApp live chat stays higher than the AI chatbot on every page */
.ns-wa-float {
  bottom: 172px !important;
  right: 22px !important;
  z-index: 2147483605 !important;
}
.ns-ai-assistant {
  bottom: 24px !important;
  right: 22px !important;
  z-index: 2147483500 !important;
}
@media (max-width: 640px) {
  .ns-wa-float {
    bottom: 156px !important;
    right: 16px !important;
    width: 58px !important;
    height: 58px !important;
  }
  .ns-ai-assistant {
    bottom: 18px !important;
    right: 16px !important;
  }
}

/* v23: marine / motor calculation polish */
.ns-rate-reference {
  margin-top: 18px;
  border: 1px solid #dbe8f0;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  padding: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}
.ns-rate-reference h3 {
  margin: 0 0 10px;
  color: #0b3a5b;
  font-size: 18px;
  font-weight: 1000;
}
.ns-rate-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ns-rate-chip {
  border: 1px solid #dbe8f0;
  border-radius: 16px;
  background: #fff;
  padding: 11px;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}
.ns-rate-chip b {
  display: block;
  color: #0f766e;
  font-size: 13px;
  margin-bottom: 4px;
}
.ns-motor-pdf-table {
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  margin-top: 14px;
}
.ns-motor-pdf-table .ns-premium-line,
.ns-motor-pdf-table .ns-premium-total {
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  margin: 0;
  padding: 9px 12px;
}
.ns-motor-pdf-table .ns-premium-total {
  background: #eef6ff;
  border-bottom: 0;
}
.ns-travel-days-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .ns-rate-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ns-rate-chip-grid {
    grid-template-columns: 1fr;
  }
  .ns-rate-reference {
    padding: 14px;
    border-radius: 18px;
  }
}

/* SECTION 11 — Dropdown Date Calculator Fixes */
/* NextSure v38 fixes: dropdown hover gap, date inputs, responsive calculator polish */
.site-header .has-submenu,
.nav-list .has-submenu {
  position: relative !important;
}
.site-header .has-submenu .submenu,
.nav-list .has-submenu .submenu {
  top: 100% !important;
  margin-top: 0 !important;
  transform: translateY(0) !important;
  padding-top: 8px !important;
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 99999 !important;
}
.site-header .has-submenu:hover .submenu,
.site-header .has-submenu:focus-within .submenu,
.nav-list .has-submenu:hover .submenu,
.nav-list .has-submenu:focus-within .submenu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
.site-header .has-submenu::after,
.nav-list .has-submenu::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 99998;
}
input[type='date'] {
  min-height: 48px;
  font-size: 16px;
}
input[type='date']::before {
  color: #64748b;
}
.ns-date-help {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}
@media (max-width: 768px) {
  .site-header .has-submenu .submenu,
  .nav-list .has-submenu .submenu {
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    margin-top: 6px !important;
    transform: none !important;
  }
}

/* SECTION 12 — Nextsure Feedback Button */
.ns-feedback-float {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 9998;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f6b73, #10b981);
  color: #fff;
  font-weight: 900;
  padding: 13px 18px;
  box-shadow: 0 18px 42px rgba(15, 107, 115, 0.28);
  cursor: pointer;
}
.ns-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ns-feedback-modal {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  position: relative;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}
.ns-feedback-modal h2 {
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  color: #0f172a;
}
.ns-feedback-modal p {
  color: #64748b;
  font-weight: 700;
}
.ns-feedback-modal input,
.ns-feedback-modal select,
.ns-feedback-modal textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-size: 15px;
}
.ns-feedback-submit {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: #0f6b73;
  color: white;
  font-weight: 900;
  padding: 13px;
}
.ns-feedback-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: #f1f5f9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  font-weight: 900;
}
.ns-feedback-status {
  margin-top: 10px;
  font-weight: 800;
  color: #0f6b73;
}
@media (max-width: 640px) {
  .ns-feedback-float {
    right: 14px;
    bottom: 82px;
    padding: 11px 15px;
  }
}

/* SECTION 13 — Mobile Banner */
/* v43 mobile banner image full view */
@media (max-width: 768px) {
  .hero,
  .slider,
  .slide,
  .hero-slider,
  .banner,
  .product-hero {
    min-height: auto !important;
  }
  .slide img,
  .hero img,
  .banner img,
  .product-hero img,
  .hero-slide img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  .slide,
  .hero-slide {
    height: auto !important;
    overflow: visible !important;
    background: #eef7fb !important;
  }
}

/* SECTION 14 — Agency Product Ux */
/* NextSure v60: agency directory + product-card usability refinements. */
:root {
  --ns60-navy: #0b1f3a;
  --ns60-teal: #087f73;
  --ns60-green: #0ea574;
  --ns60-line: #dbe6ef;
  --ns60-soft: #f6fafc;
  --ns60-ink: #12243d;
}

/* Agency directory: no clipped/overlapping cards. */
#peopleGrid.ns-people-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  overflow: visible !important;
  padding: 4px !important;
}
#peopleGrid .ns-person-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 300px !important;
  height: auto !important;
  overflow: visible !important;
  padding: 22px !important;
  border: 1px solid var(--ns60-line) !important;
  border-left: 5px solid var(--ns60-green) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 12px 35px rgba(19, 45, 73, 0.08) !important;
}
#peopleGrid .ns-person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(19, 45, 73, 0.13) !important;
}
#peopleGrid .ns-person-head {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: start !important;
  min-height: 74px !important;
}
#peopleGrid .ns-person-title {
  min-width: 0 !important;
}
#peopleGrid .ns-person-title h3 {
  font-size: 20px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  margin: 2px 0 6px !important;
  color: var(--ns60-ink) !important;
}
#peopleGrid .ns-person-title p {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}
#peopleGrid .ns-person-meta {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px 14px !important;
  margin: 16px 0 14px !important;
  padding: 13px !important;
  background: var(--ns60-soft) !important;
  border-radius: 14px !important;
}
#peopleGrid .ns-person-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 9px !important;
  margin: 0 0 16px !important;
}
#peopleGrid .ns-person-stat {
  min-width: 0 !important;
  padding: 11px 10px !important;
  border: 1px solid #e2eaf1 !important;
  background: #fbfdff !important;
  border-radius: 13px !important;
}
#peopleGrid .ns-person-stat span {
  font-size: 11px !important;
}
#peopleGrid .ns-person-stat b {
  font-size: 15px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
#peopleGrid .ns-person-open {
  position: static !important;
  margin-top: auto !important;
  width: 100% !important;
  min-height: 50px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--ns60-navy), #13395d) !important;
  color: #fff !important;
}

/* Agency account: make billable status and checkbox clear. */
.ns-billable-check {
  width: 20px;
  height: 20px;
  accent-color: var(--ns60-teal);
  cursor: pointer;
}
.ns-billable-check:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.ns-order-bill-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  background: #eef7f5;
  color: #087264;
}
.ns-order-bill-state.is-existing {
  background: #fff4d7;
  color: #8a5b00;
}

/* Product cards. */
#products .cards {
  gap: 24px !important;
  align-items: stretch !important;
}
#products .card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left !important;
  min-height: 390px;
  padding: 28px !important;
  border: 1px solid #dbe5ef;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
  box-shadow: 0 16px 45px rgba(24, 48, 79, 0.09);
  transition: 0.22s ease;
}
#products .card:before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #1c2866, #08a27e);
}
#products .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(24, 48, 79, 0.14);
}
#products .card img {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain;
  background: #eef9f7;
  border: 1px solid #d4ece7;
  border-radius: 18px;
  padding: 12px;
  margin: 4px 0 22px !important;
}
#products .card h3 {
  font-size: 25px !important;
  line-height: 1.2;
  margin: 0 0 12px !important;
  color: #141d58;
}
#products .card p {
  line-height: 1.7 !important;
  margin: 0 0 16px !important;
  color: #5b6c82;
}
#products .ns-product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 8px;
  width: 100%;
}
#products .ns-product-features li {
  position: relative;
  padding-left: 24px;
  color: #31465f;
  font-size: 14px;
  font-weight: 700;
}
#products .ns-product-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0a9b76;
  font-weight: 1000;
}
#products .card .btn-link {
  margin-top: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #075d70, #087e73) !important;
  color: #fff !important;
  padding: 12px 18px !important;
  font-weight: 900 !important;
}

.ns-rate-source-box {
  border: 1px solid #cfe0eb;
  background: #f7fbfd;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}
.ns-rate-source-box .ns-rate-source-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d6f84;
  margin-bottom: 8px;
}
.ns-rate-source-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ns-rate-source-pills label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d2dfe9;
  border-radius: 12px;
  background: #fff;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}
.ns-rate-source-pills label:has(input:checked) {
  border-color: #0d8d78;
  background: #eafaf6;
  color: #076e60;
}
.ns-manual-net-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 10px;
}

@media (max-width: 1050px) {
  #peopleGrid.ns-people-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 700px) {
  #peopleGrid .ns-person-stats {
    grid-template-columns: 1fr 1fr !important;
  }
  #peopleGrid .ns-person-meta {
    grid-template-columns: 1fr !important;
  }
  #products .card {
    min-height: auto;
  }
  .ns-manual-net-row {
    grid-template-columns: 1fr;
  }
}

/* Actual dashboard agency-card markup (v54/v59). */
#peopleGrid .ns-agency-directory-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 310px !important;
  height: auto !important;
  overflow: visible !important;
  padding: 22px !important;
  border: 1px solid var(--ns60-line) !important;
  border-left: 5px solid var(--ns60-green) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 12px 35px rgba(19, 45, 73, 0.08) !important;
}
#peopleGrid .ns-agency-directory-card .ns-directory-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 72px !important;
}
#peopleGrid .ns-agency-identity {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
  min-width: 0 !important;
}
#peopleGrid .ns-agency-title {
  min-width: 0 !important;
}
#peopleGrid .ns-agency-title h3 {
  font-size: 20px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  margin: 3px 0 5px !important;
}
#peopleGrid .ns-agency-title p {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  margin: 0 !important;
}
#peopleGrid .ns-agency-directory-meta {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin: 15px 0 !important;
  padding: 12px 14px !important;
  background: #f5f9fc !important;
  border-radius: 14px !important;
}
#peopleGrid .ns-agency-directory-meta span {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}
#peopleGrid .ns-agency-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 9px !important;
  margin-bottom: 16px !important;
}
#peopleGrid .ns-agency-stat {
  min-width: 0 !important;
  height: auto !important;
  min-height: 72px !important;
  padding: 10px !important;
}
#peopleGrid .ns-agency-open-btn {
  position: static !important;
  inset: auto !important;
  margin-top: auto !important;
  width: 100% !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}
@media (max-width: 700px) {
  #peopleGrid .ns-agency-stats {
    grid-template-columns: 1fr 1fr !important;
  }
  #peopleGrid .ns-agency-directory-meta {
    grid-template-columns: 1fr !important;
  }
}

/* SECTION 15 — Dashboard Regression Fixes */
/* NextSure v61 — targeted regression fixes only. */
#dashboardHome:not(.hidden) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#dashboardHome .ns-dashboard-hero,
#dashboardHome .ns-last-month-cards,
#dashboardHome .ns-analytics-panel {
  display: flex;
  visibility: visible;
  opacity: 1;
}
#dashboardHome .ns-last-month-cards {
  display: grid !important;
}
#dashboardHome .ns-analytics-panel {
  display: block !important;
  min-height: 360px;
}
#products .card .btn-link {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 2;
}
@media (max-width: 768px) {
  #dashboardHome .ns-analytics-panel {
    min-height: 320px;
  }
}

/* SECTION 16 — Sidebar Product Links */
/* NextSure v62 — two targeted regression fixes only.
   1) Restore the desktop dashboard sidebar after replacing Tailwind CDN with local utilities.
   2) Keep product navigation buttons visible inside every Home product card.
*/

/* The local .hidden utility is !important. Use a more specific desktop rule so
   the sidebar's "hidden md:flex" class combination behaves like Tailwind. */
@media (min-width: 768px) {
  aside.desktop-side.hidden {
    display: flex !important;
    flex-direction: column !important;
    width: 18rem !important;
    flex: 0 0 18rem !important;
    min-width: 18rem !important;
  }
}

/* Product cards previously inherited a legacy fixed height (370px), which
   clipped the CTA after the new feature list was added. Let content determine
   height and keep the page link clearly visible at the bottom. */
#products .cards {
  align-items: stretch !important;
}

#products .card {
  height: auto !important;
  min-height: 500px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#products .card .btn-link {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 5 !important;
  width: 100% !important;
  min-height: 48px !important;
  margin-top: auto !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 700px) {
  #products .card {
    min-height: 0 !important;
  }
}

/* SECTION 17 — Layout Polish */
/*
 * NextSure v65 — Partner pagination, balanced spacing and small UI polish.
 * This sheet is deliberately conservative: it normalizes spacing without
 * changing existing workflows, colors, rates, or permission behavior.
 */
:root {
  --ns-space-1: 6px;
  --ns-space-2: 10px;
  --ns-space-3: 14px;
  --ns-space-4: 18px;
  --ns-space-5: 24px;
  --ns-space-6: 32px;
  --ns-radius-control: 14px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}

/* Partner Management: exactly two visible cards per page on desktop. */
#peopleView {
  gap: 14px !important;
  padding: 2px 4px 20px !important;
  overflow-y: auto !important;
}
#peopleView .ns-management-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px 0 !important;
}
#peopleView .ns-management-search-only {
  margin: 0 !important;
  min-width: 0 !important;
}
.ns-people-search-btn,
.ns-people-clear-btn {
  height: 54px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 900;
  white-space: nowrap;
}
.ns-people-search-btn {
  background: #0d7f76;
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 127, 118, 0.18);
}
.ns-people-clear-btn {
  background: #e8eef5;
  color: #17304d;
}
#peopleGrid.ns-people-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}
#peopleGrid .ns-agency-directory-card {
  min-height: 310px !important;
  margin: 0 !important;
}
.ns-people-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 4px 4px;
  color: #5e7085;
  font-weight: 800;
}
.ns-people-pagination > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.ns-people-pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d5e1eb;
  border-radius: 11px;
  background: #fff;
  color: #17304d;
  font-weight: 900;
}
.ns-people-pagination button.active {
  background: #0d7f76;
  color: #fff;
  border-color: #0d7f76;
}
.ns-people-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  #peopleGrid.ns-people-grid {
    grid-template-columns: 1fr !important;
  }
  #peopleView .ns-management-toolbar {
    grid-template-columns: 1fr auto auto !important;
  }
}
@media (max-width: 620px) {
  #peopleView .ns-management-toolbar {
    grid-template-columns: 1fr 1fr !important;
  }
  .ns-management-search-only {
    grid-column: 1/-1;
  }
  .ns-people-search-btn,
  .ns-people-clear-btn {
    width: 100%;
    padding: 0 12px;
  }
  .ns-people-pagination {
    justify-content: center;
    text-align: center;
  }
  .ns-people-pagination > span {
    width: 100%;
  }
}

/* Balanced form/card spacing across public pages and order flows. */
.site-header .header-inner {
  padding-left: clamp(16px, 3vw, 34px) !important;
  padding-right: clamp(16px, 3vw, 34px) !important;
}
.container {
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}
.ns-wizard-shell,
.ns-motor-shell,
.ns-order-card,
.premium-card,
.card {
  box-sizing: border-box;
}
.ns-wizard-panel,
.ns-motor-panel {
  padding: clamp(18px, 2.2vw, 30px) !important;
}
.ns-panel-heading,
.ns-motor-heading {
  margin-bottom: clamp(16px, 2vw, 24px) !important;
}
.ns-panel-actions,
.ns-motor-actions,
.ns-form-actions {
  gap: 10px !important;
  margin-top: clamp(18px, 2vw, 26px) !important;
}
.ns-form-grid,
.ns-admin-grid,
.ns-trip-grid,
.ns-passport-manual-grid {
  gap: clamp(12px, 1.5vw, 18px) !important;
}
.ns-field-group > span,
.ns-form-grid label > span,
.ns-admin-grid label > span {
  margin-bottom: 7px !important;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  min-height: 48px;
}
textarea {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
footer {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

/* Dashboard content spacing stays uniform without touching sidebar widths. */
#dashboardView,
#ordersView,
#billingView,
#personOrdersView {
  gap: 14px !important;
}
.ns-dashboard-hero,
.ns-standard-chart-card,
.ns-billing-panel,
.ns-person-orders-header {
  box-sizing: border-box;
}
.ns-people-pagination .ns-page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: #7b8ca0;
  font-weight: 900;
}

/* v66 passport review fields */
.ns-passport-manual-grid textarea,
.ns-traveller-form textarea {
  width: 100%;
  border: 1px solid #d6e2ea;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #10213d;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}
.ns-passport-manual-grid .ns-span-2 {
  grid-column: 1/-1;
}

/* SECTION 18 — Responsive Sitewide */
/*
 * NextSure v69 — site-wide responsive hardening.
 * ------------------------------------------------------------
 * Purpose: make the existing UI behave consistently on phones, tablets,
 * laptops and desktops without changing business logic, rates or APIs.
 * Keep new device-specific layout fixes in this file so future edits remain
 * easy to find and maintain.
 */

:root {
  --ns69-page-pad: clamp(12px, 2.2vw, 28px);
  --ns69-card-gap: clamp(12px, 1.8vw, 20px);
  --ns69-control-h: 46px;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}
input,
select,
textarea,
button {
  max-width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
}

/* Generic content safety -------------------------------------------------- */
.container,
.section,
.header-inner,
main,
[class*='shell'],
[class*='wrap'] {
  min-width: 0;
}
.card,
.panel,
.modal,
[class*='card'],
[class*='panel'] {
  min-width: 0;
}
.breakdown-table,
.payment-table,
.ns-user-table,
.orders-table-wrap table {
  max-width: none;
}
.table-responsive,
.table-wrap,
.orders-table-wrap,
.ns-user-table-wrap,
.ns-bill-table-wrap,
.ns-person-orders-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Do not let utility min-widths force normal cards/forms off-screen. */
@media (max-width: 900px) {
  .min-w-full:not(table) {
    min-width: 0 !important;
  }
  main:not(.invoice-sheet) {
    max-width: 100% !important;
  }
  /* An older global rule hid every <aside> below 900px. Only the dashboard
     navigation should disappear; product summaries/profile panels must stack. */
  body:not(.ns-dashboard-page) aside {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Public header / navigation -------------------------------------------- */
@media (max-width: 900px) {
  .site-header .header-inner {
    width: 100%;
    padding: 10px 14px !important;
    gap: 10px !important;
  }
  .site-header .brand_logo,
  .site-header .brand {
    min-width: 0 !important;
  }
  .site-header .brand_logo img {
    width: auto !important;
    max-width: 132px !important;
    max-height: 48px !important;
  }
  .nav {
    max-width: 100%;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  .nav-list,
  .nav-list > li {
    max-width: 100%;
  }
  .nav-list a {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 520px) {
  .site-header .header-inner {
    padding: 9px 11px !important;
  }
  .site-header .brand_logo img {
    max-width: 116px !important;
  }
}

/* Main public pages ------------------------------------------------------ */
@media (max-width: 900px) {
  .section,
  .ns-product-main,
  .ns-travel-shell,
  .ns-motor-shell,
  .ns-order-wrap,
  .ns-calc-page,
  .profile-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--ns69-page-pad) !important;
    padding-right: var(--ns69-page-pad) !important;
  }
  .ns-wizard-panel,
  .ns-motor-panel,
  .ns-order-card,
  .premium-card,
  .profile-card,
  .auth-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: clamp(14px, 3vw, 22px) !important;
    border-radius: clamp(16px, 3vw, 24px) !important;
  }
  .ns-form-grid,
  .ns-admin-grid,
  .ns-trip-grid,
  .ns-passport-manual-grid,
  .ns-feedback-grid,
  .contact_main {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .ns-panel-actions,
  .ns-motor-actions,
  .ns-form-actions,
  .action-row,
  .button-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
  }
  .ns-panel-actions > *,
  .ns-motor-actions > *,
  .ns-form-actions > * {
    flex: 1 1 160px;
    min-height: 44px;
  }
  input:not([type='checkbox']):not([type='radio']),
  select,
  textarea {
    width: 100%;
    min-height: var(--ns69-control-h);
  }
}
@media (max-width: 520px) {
  .section,
  .ns-product-main,
  .ns-travel-shell,
  .ns-motor-shell,
  .ns-order-wrap,
  .ns-calc-page,
  .profile-shell {
    padding-left: 11px !important;
    padding-right: 11px !important;
  }
  .ns-panel-actions > *,
  .ns-motor-actions > *,
  .ns-form-actions > * {
    flex-basis: 100%;
  }
}

/* Product cards ---------------------------------------------------------- */
@media (max-width: 1100px) and (min-width: 701px) {
  #products .cards,
  .cards.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px) {
  #products .cards,
  .cards.product-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  #products .card {
    min-height: 0 !important;
    height: auto !important;
    padding: 20px !important;
  }
  #products .card img {
    width: 58px !important;
    height: 58px !important;
    margin-bottom: 16px !important;
  }
  #products .card h3 {
    font-size: 22px !important;
  }
  #products .card .btn-link {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 14px !important;
  }
}

/* Smart date widgets ----------------------------------------------------- */
@media (max-width: 700px) {
  .ns-date-picker-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ns-date-picker-selects {
    display: grid !important;
    grid-template-columns: minmax(72px, 0.75fr) minmax(110px, 1fr) minmax(92px, 0.9fr) !important;
    gap: 8px !important;
  }
  .ns-date-picker-selects select {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 9px !important;
    padding-right: 8px !important;
  }
  .ns-date-picker-actions {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
  }
}
@media (max-width: 370px) {
  .ns-date-picker-selects {
    grid-template-columns: 1fr 1fr !important;
  }
  .ns-date-picker-selects select:last-child {
    grid-column: 1/-1;
  }
}

/* Dashboard responsive navigation -------------------------------------- */
/* The old CSS hid the desktop sidebar at 900px while Tailwind hid the
   mobile menu from 768px upward, leaving 768–900px with no navigation.
   v69 uses one clean breakpoint: mobile/tablet nav below 901px. */
@media (max-width: 900px) {
  body.ns-dashboard-page {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }
  body.ns-dashboard-page .mobile-top.md\:hidden {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: 56px;
  }
  body.ns-dashboard-page .desktop-side {
    display: none !important;
  }
  body.ns-dashboard-page #mobileMenu.md\:hidden:not(.hidden) {
    display: block !important;
  }
  body.ns-dashboard-page #mobileMenu > div {
    width: min(86vw, 320px) !important;
    max-width: 100%;
    height: 100dvh !important;
    padding: 18px !important;
  }
  body.ns-dashboard-page .ns-dashboard-frame {
    height: calc(100dvh - 56px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.ns-dashboard-page .main-shell {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 10px !important;
    gap: 10px !important;
  }
  body.ns-dashboard-page #dashboardHome,
  body.ns-dashboard-page #ordersView,
  body.ns-dashboard-page #billsView,
  body.ns-dashboard-page #peopleView,
  body.ns-dashboard-page #personOrdersView,
  body.ns-dashboard-page #systemReportsView,
  body.ns-dashboard-page #branchBillsView,
  body.ns-dashboard-page #claimsView {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.ns-dashboard-page .ns-dashboard-hero {
    padding: 18px !important;
    border-radius: 18px !important;
  }
  body.ns-dashboard-page .ns-dashboard-hero h1 {
    font-size: clamp(25px, 7vw, 34px) !important;
  }
  body.ns-dashboard-page .ns-dashboard-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  body.ns-dashboard-page .ns-dashboard-actions > * {
    width: 100% !important;
    justify-content: center !important;
  }
}
@media (min-width: 901px) {
  body.ns-dashboard-page .desktop-side {
    display: flex !important;
  }
  body.ns-dashboard-page .mobile-top {
    display: none !important;
  }
}
@media (max-width: 480px) {
  body.ns-dashboard-page .main-shell {
    padding: 7px !important;
    gap: 7px !important;
  }
  body.ns-dashboard-page .ns-dashboard-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Dashboard cards and analytics ---------------------------------------- */
@media (max-width: 900px) {
  .ns-last-month-cards {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .ns-metric-card {
    min-height: 92px !important;
    padding: 14px !important;
    border-radius: 17px !important;
  }
  .ns-metric-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
  }
  .ns-standard-chart-grid {
    grid-template-columns: 1fr !important;
  }
  .ns-chart-summary-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .ns-analytics-heading {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .ns-analytics-controls {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .ns-standard-svg {
    min-width: 560px !important;
  }
}
@media (max-width: 430px) {
  .ns-chart-summary-row {
    grid-template-columns: 1fr !important;
  }
}

/* Partner Management: Agency / Agent / Branch Admin --------------------- */
#peopleView {
  scrollbar-gutter: stable both-edges;
}
@media (max-width: 900px) {
  #peopleView {
    padding: 0 2px 88px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  #peopleView .ns-management-toolbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 25 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 8px 4px 10px !important;
    background: #eef6fb !important;
  }
  #peopleView .ns-management-search-only {
    grid-column: 1/-1 !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
  }
  #peopleView .ns-management-search-only .ns-people-search {
    min-height: 48px !important;
    font-size: 14px !important;
    padding: 11px 13px 11px 42px !important;
  }
  #peopleView .ns-management-toolbar .ns-people-search-btn,
  #peopleView .ns-management-toolbar .ns-people-clear-btn {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
  }

  #peopleGrid.ns-people-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 2px 2px 14px !important;
  }
  #peopleGrid .ns-agency-card.ns-agency-directory-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px 14px 15px 18px !important;
    gap: 12px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }
  #peopleGrid .ns-directory-head {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 9px 10px !important;
    min-height: 0 !important;
  }
  #peopleGrid .ns-agency-identity {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }
  #peopleGrid .ns-agency-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
  }
  #peopleGrid .ns-agency-title h3 {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 2px 0 3px !important;
    overflow-wrap: anywhere !important;
  }
  #peopleGrid .ns-agency-title p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
  }
  #peopleGrid .ns-agency-code {
    margin: 0 0 0 58px !important;
    padding: 7px 11px !important;
    font-size: 11px !important;
    max-width: calc(100% - 58px) !important;
    overflow-wrap: anywhere !important;
  }
  #peopleGrid .ns-agency-directory-meta {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 9px !important;
    border-radius: 12px !important;
  }
  #peopleGrid .ns-agency-directory-meta span {
    padding: 8px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }
  #peopleGrid .ns-agency-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
  }
  #peopleGrid .ns-agency-stat {
    min-height: 62px !important;
    padding: 9px !important;
    border-radius: 11px !important;
  }
  #peopleGrid .ns-agency-stat span {
    font-size: 10px !important;
  }
  #peopleGrid .ns-agency-stat b {
    font-size: 14px !important;
  }
  #peopleGrid .ns-agency-open-btn {
    min-height: 46px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    margin-top: 0 !important;
  }
  .ns-people-pagination {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 24 !important;
    width: 100% !important;
    margin-top: 4px !important;
    padding: 9px 6px !important;
    justify-content: center !important;
    text-align: center !important;
    background: rgba(238, 246, 251, 0.97) !important;
    border-top: 1px solid #d7e5ed !important;
    backdrop-filter: blur(8px);
  }
  .ns-people-pagination > span {
    width: 100% !important;
    font-size: 11px !important;
  }
  .ns-people-pagination > div {
    justify-content: center !important;
    gap: 5px !important;
  }
  .ns-people-pagination button {
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 9px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 390px) {
  #peopleGrid .ns-agency-directory-meta {
    grid-template-columns: 1fr !important;
  }
  #peopleGrid .ns-agency-code {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
}

/* Partner account / billing view --------------------------------------- */
@media (max-width: 900px) {
  .ns-person-orders-header {
    padding: 14px !important;
    border-radius: 18px !important;
  }
  .ns-person-orders-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .ns-person-summary-grid,
  .ns-person-summary-grid-v54 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .ns-person-order-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .ns-person-order-actions > * {
    width: 100% !important;
    min-height: 44px !important;
    white-space: normal !important;
  }
  .ns-person-orders-table-wrap {
    overflow: auto !important;
    max-height: none !important;
  }
}
@media (max-width: 480px) {
  .ns-person-summary-grid,
  .ns-person-summary-grid-v54 {
    grid-template-columns: 1fr 1fr !important;
  }
  .ns-person-order-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Orders / bills / permission tables ----------------------------------- */
@media (max-width: 900px) {
  .orders-searchbar {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .orders-searchbar input,
  .orders-searchbar select,
  .orders-searchbar button {
    width: 100% !important;
    min-width: 0 !important;
  }
  .orders-pagination {
    position: sticky;
    bottom: 0;
    z-index: 10;
    gap: 5px !important;
    padding: 8px !important;
  }
  #billsView table,
  #branchBillsView table,
  .ns-user-table {
    min-width: 900px !important;
  }
  .ns-permission-shell,
  .ns-permission-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
  }
  .ns-create-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 520px) {
  .orders-searchbar {
    grid-template-columns: 1fr !important;
  }
}

/* Invoice / bill detail ------------------------------------------------- */
@media (max-width: 720px) {
  .invoice-sheet {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 0 !important;
  }
  .invoice-sheet .section {
    padding: 12px !important;
  }
  .invoice-sheet .breakdown-table,
  .invoice-sheet .payment-table {
    min-width: 760px;
  }
  .invoice-sheet .order-breakdown,
  .invoice-sheet .bank-section {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Dialogs / overlays ---------------------------------------------------- */
@media (max-width: 640px) {
  .ns-dialog,
  .ns-feedback-modal,
  .ns-modal,
  .modal-content {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
    max-height: calc(100dvh - 28px) !important;
    overflow: auto !important;
    border-radius: 18px !important;
    padding: 16px !important;
  }
  .ns-feedback-overlay,
  .modal-overlay {
    padding: 11px !important;
  }
}

/* Floating WhatsApp / AI / feedback controls: keep content readable. */
@media (max-width: 640px) {
  .ns-wa-float {
    right: 10px !important;
    bottom: 112px !important;
    width: 50px !important;
    height: 50px !important;
  }
  .ns-ai-assistant {
    right: 10px !important;
    bottom: 10px !important;
  }
  .ns-ai-fab {
    width: 50px !important;
    height: 50px !important;
    font-size: 16px !important;
    border-width: 3px !important;
  }
  .ns-ai-panel {
    right: 0 !important;
    bottom: 60px !important;
    width: calc(100vw - 20px) !important;
    max-width: 390px !important;
    height: min(70dvh, 560px) !important;
    max-height: 70dvh !important;
  }
  .ns-feedback-float {
    right: 10px !important;
    bottom: 170px !important;
    padding: 9px 11px !important;
    font-size: 12px !important;
  }
  body {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* Small landscape phones: save vertical space. */
@media (max-height: 520px) and (max-width: 900px) {
  body.ns-dashboard-page .mobile-top.md\:hidden {
    min-height: 48px;
    padding: 8px 10px !important;
  }
  body.ns-dashboard-page .ns-dashboard-frame {
    height: calc(100dvh - 48px) !important;
  }
  body.ns-dashboard-page .main-shell {
    height: 100% !important;
  }
  #peopleView .ns-management-toolbar {
    position: static !important;
  }
  .ns-ai-panel {
    height: 78dvh !important;
    max-height: 78dvh !important;
  }
}

/* SECTION 19 — Smart Premium Theme */
/*
 * NextSure v128 — Smart Premium Corporate Theme
 * ------------------------------------------------------------
 * Visual-only refresh focused on clarity, modern navigation and
 * NextSure's real logo colours. Business logic is untouched.
 * Bill and Money Receipt pages intentionally do not load this file.
 */

:root {
  --ns128-purple: #230f6c;
  --ns128-purple-2: #3c238f;
  --ns128-purple-soft: #eeeafd;
  --ns128-green: #03c80b;
  --ns128-green-deep: #079746;
  --ns128-green-soft: #ebfaee;
  --ns128-ink: #17213a;
  --ns128-ink-2: #283957;
  --ns128-muted: #62718a;
  --ns128-line: #dce4ef;
  --ns128-surface: #ffffff;
  --ns128-surface-soft: #f7f9fc;
  --ns128-shadow: 0 18px 48px rgba(35, 15, 108, 0.1);
  --ns128-shadow-hover: 0 24px 56px rgba(35, 15, 108, 0.16);
  --ns128-radius: 22px;
}

html {
  background: #f4f7fb;
  scroll-behavior: smooth;
}

body:not(.ns-login-page) {
  background:
    radial-gradient(circle at 7% 0%, rgba(35, 15, 108, 0.06), transparent 26%),
    radial-gradient(circle at 94% 10%, rgba(3, 200, 11, 0.05), transparent 24%), #f4f7fb !important;
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page)::selection {
  background: rgba(3, 200, 11, 0.22);
  color: var(--ns128-purple);
}

/* ------------------------------------------------------------
   Header / Navigation
   ------------------------------------------------------------ */
body:not(.ns-login-page) .site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(35, 15, 108, 0.1) !important;
  box-shadow: 0 10px 34px rgba(21, 34, 58, 0.08) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

body:not(.ns-login-page) .site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ns128-purple),
    var(--ns128-purple-2) 58%,
    var(--ns128-green)
  );
  pointer-events: none;
}

body:not(.ns-login-page) .brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid rgba(35, 15, 108, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 15, 108, 0.08);
}

body:not(.ns-login-page) .brand img {
  object-fit: contain;
}

body:not(.ns-login-page) .nav-list > li > a {
  position: relative;
  color: var(--ns128-ink) !important;
  font-weight: 800 !important;
}

body:not(.ns-login-page) .nav-list > li > a:hover,
body:not(.ns-login-page) .nav-list > li > a:focus-visible {
  color: var(--ns128-purple) !important;
}

body:not(.ns-login-page) .nav-list > li > a::before {
  background: linear-gradient(90deg, var(--ns128-purple), var(--ns128-green)) !important;
}

body:not(.ns-login-page) .nav-list > li > a.cta {
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(
    135deg,
    var(--ns128-purple),
    var(--ns128-purple-2)
  ) !important;
  box-shadow: 0 10px 26px rgba(35, 15, 108, 0.2) !important;
}

body:not(.ns-login-page) .submenu {
  background: rgba(255, 255, 255, 0.99) !important;
  border: 1px solid var(--ns128-line) !important;
  box-shadow: 0 20px 48px rgba(35, 15, 108, 0.14) !important;
}

body:not(.ns-login-page) .submenu a {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) .submenu a:hover {
  color: var(--ns128-purple) !important;
  background: linear-gradient(
    90deg,
    var(--ns128-purple-soft),
    var(--ns128-green-soft)
  ) !important;
}

body:not(.ns-login-page) .nav-toggle {
  background: #fff !important;
  border: 1px solid var(--ns128-line) !important;
  box-shadow: 0 8px 18px rgba(35, 15, 108, 0.08);
}

body:not(.ns-login-page) .hamburger,
body:not(.ns-login-page) .hamburger::before,
body:not(.ns-login-page) .hamburger::after {
  background: var(--ns128-purple) !important;
}

/* ------------------------------------------------------------
   Hero areas / landing sections
   ------------------------------------------------------------ */
body:not(.ns-login-page) .page-hero,
body:not(.ns-login-page) .ns-product-hero,
body:not(.ns-login-page) .ns-motor-hero,
body:not(.ns-login-page) .ns-calc-hero,
body:not(.ns-login-page) .ns-order-hero,
body:not(.ns-login-page) .banner {
  color: #fff !important;
  background:
    radial-gradient(circle at 88% 16%, rgba(3, 200, 11, 0.22), transparent 30%),
    linear-gradient(125deg, #18094e 0%, var(--ns128-purple) 54%, #124831 140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 22px 54px rgba(35, 15, 108, 0.18) !important;
}

body:not(.ns-login-page) .page-hero h1,
body:not(.ns-login-page) .ns-product-hero h1,
body:not(.ns-login-page) .ns-motor-hero h1,
body:not(.ns-login-page) .ns-calc-hero h1,
body:not(.ns-login-page) .ns-order-hero h1,
body:not(.ns-login-page) .page-hero h2,
body:not(.ns-login-page) .ns-product-hero h2,
body:not(.ns-login-page) .ns-motor-hero h2,
body:not(.ns-login-page) .ns-calc-hero h2,
body:not(.ns-login-page) .ns-order-hero h2 {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.16);
}

body:not(.ns-login-page) .page-hero p,
body:not(.ns-login-page) .ns-product-hero p,
body:not(.ns-login-page) .ns-motor-hero p,
body:not(.ns-login-page) .ns-calc-hero p,
body:not(.ns-login-page) .ns-order-hero p {
  color: rgba(255, 255, 255, 0.88) !important;
}

body:not(.ns-login-page) .ns-product-kicker,
body:not(.ns-login-page) .ns-order-kicker,
body:not(.ns-login-page) .ns-motor-eyebrow,
body:not(.ns-login-page) .eyebrow,
body:not(.ns-login-page) .section-kicker {
  color: #8ff09a !important;
}

/* Homepage hero stays image-led, but controls remain readable. */
body:not(.ns-login-page) .hero {
  background: #11162c !important;
}

body:not(.ns-login-page) .ns-hero-news {
  color: var(--ns128-purple) !important;
  border-color: rgba(35, 15, 108, 0.22) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 36px rgba(35, 15, 108, 0.14) !important;
}

body:not(.ns-login-page) .ns-hero-news b {
  color: var(--ns128-green-deep) !important;
}

/* ------------------------------------------------------------
   Global content clarity
   ------------------------------------------------------------ */
body:not(.ns-login-page) main,
body:not(.ns-login-page) .section,
body:not(.ns-login-page) .partners-section,
body:not(.ns-login-page) .premium-wrap {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) .section-title,
body:not(.ns-login-page) .lead,
body:not(.ns-login-page)
  main
  h1:not(.ns-product-hero h1):not(.ns-motor-hero h1):not(.ns-calc-hero h1),
body:not(.ns-login-page)
  main
  h2:not(.ns-product-hero h2):not(.ns-motor-hero h2):not(.ns-calc-hero h2),
body:not(.ns-login-page) main h3 {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) .lead,
body:not(.ns-login-page) main p,
body:not(.ns-login-page) main small,
body:not(.ns-login-page) main li {
  color: var(--ns128-muted);
}

/* ------------------------------------------------------------
   Homepage product cards — lively but professional
   ------------------------------------------------------------ */
#products .cards {
  gap: 22px !important;
}

#products .card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 390px;
  padding: 28px !important;
  color: var(--ns128-ink) !important;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
  border: 1px solid #dfe6f0 !important;
  border-radius: 24px !important;
  box-shadow: var(--ns128-shadow) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease !important;
}

#products .card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ns128-purple), var(--ns128-green));
}

#products .card::after {
  content: '';
  position: absolute;
  z-index: -2;
  width: 150px;
  height: 150px;
  right: -62px;
  top: -58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 200, 11, 0.12), transparent 70%);
  transition: transform 0.3s ease;
}

#products .card:hover,
#products .card:focus-within {
  transform: translateY(-7px);
  border-color: rgba(35, 15, 108, 0.24) !important;
  box-shadow: var(--ns128-shadow-hover) !important;
}

#products .card:hover::after,
#products .card:focus-within::after {
  transform: scale(1.28);
}

#products .card .icon_logo {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    var(--ns128-purple-soft),
    var(--ns128-green-soft)
  ) !important;
  box-shadow: inset 0 0 0 1px rgba(35, 15, 108, 0.06);
  transition: transform 0.22s ease;
}

#products .card:hover .icon_logo {
  transform: translateY(-3px) rotate(-2deg);
}

#products .card .icon_logo img {
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
}

#products .card h3 {
  color: var(--ns128-purple) !important;
  font-size: 1.35rem !important;
}

#products .card p,
#products .card li {
  color: #53627a !important;
  line-height: 1.65;
}

#products .card .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 15px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--ns128-purple), var(--ns128-purple-2));
  box-shadow: 0 10px 24px rgba(35, 15, 108, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#products .card .btn-link:hover {
  transform: translateX(3px);
  box-shadow: 0 14px 30px rgba(35, 15, 108, 0.24);
}

/* ------------------------------------------------------------
   Cards / panels / partner boxes
   ------------------------------------------------------------ */
body:not(.ns-login-page) .premium-card,
body:not(.ns-login-page) .logo-card,
body:not(.ns-login-page) .stat-card,
body:not(.ns-login-page) .about-fact,
body:not(.ns-login-page) .contact-box,
body:not(.ns-login-page) .map-card,
body:not(.ns-login-page) .ns-product-hero-card,
body:not(.ns-login-page) .ns-product-panel,
body:not(.ns-login-page) .ns-product-list-panel,
body:not(.ns-login-page) .ns-process-card,
body:not(.ns-login-page) .ns-product-cta,
body:not(.ns-login-page) .ns-seo-faq,
body:not(.ns-login-page) .ns-motor-choice-card,
body:not(.ns-login-page) .ns-motor-info-card,
body:not(.ns-login-page) .ns-order-card,
body:not(.ns-login-page) .ns-wizard-panel,
body:not(.ns-login-page) .ns-motor-panel,
body:not(.ns-login-page) .soft-panel,
body:not(.ns-login-page) .partner {
  color: var(--ns128-ink) !important;
  background: #fff !important;
  border: 1px solid var(--ns128-line) !important;
  box-shadow: var(--ns128-shadow) !important;
}

body:not(.ns-login-page) .premium-card:hover,
body:not(.ns-login-page) .logo-card:hover,
body:not(.ns-login-page) .ns-process-card:hover,
body:not(.ns-login-page) .partner:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 15, 108, 0.22) !important;
  box-shadow: var(--ns128-shadow-hover) !important;
}

body:not(.ns-login-page) .premium-card h1,
body:not(.ns-login-page) .premium-card h2,
body:not(.ns-login-page) .premium-card h3,
body:not(.ns-login-page) .ns-product-panel h1,
body:not(.ns-login-page) .ns-product-panel h2,
body:not(.ns-login-page) .ns-product-panel h3,
body:not(.ns-login-page) .ns-order-card h1,
body:not(.ns-login-page) .ns-order-card h2,
body:not(.ns-login-page) .ns-order-card h3,
body:not(.ns-login-page) .ns-motor-panel h1,
body:not(.ns-login-page) .ns-motor-panel h2,
body:not(.ns-login-page) .ns-motor-panel h3 {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) .premium-card p,
body:not(.ns-login-page) .ns-product-panel p,
body:not(.ns-login-page) .ns-order-card p,
body:not(.ns-login-page) .ns-motor-panel p,
body:not(.ns-login-page) .contact-box p,
body:not(.ns-login-page) .map-card p {
  color: var(--ns128-muted) !important;
}

/* ------------------------------------------------------------
   Forms: maximum text clarity
   ------------------------------------------------------------ */
body:not(.ns-login-page) label,
body:not(.ns-login-page) label > span,
body:not(.ns-login-page) .ns-field > span,
body:not(.ns-login-page) .field > span,
body:not(.ns-login-page) .ns-motor-field > span,
body:not(.ns-login-page) .ns-step-title h2,
body:not(.ns-login-page) .ns-motor-heading h2,
body:not(.ns-login-page) .ns-motor-section-label b {
  color: var(--ns128-ink) !important;
}

body:not(.ns-login-page) label small,
body:not(.ns-login-page) .ns-field small,
body:not(.ns-login-page) .ns-motor-field small,
body:not(.ns-login-page) .ns-motor-heading p,
body:not(.ns-login-page) .ns-step-title p,
body:not(.ns-login-page) .ns-motor-section-label small,
body:not(.ns-login-page) .ns-date-help {
  color: #66758b !important;
  opacity: 1 !important;
}

body:not(.ns-login-page) input:not([type='checkbox']):not([type='radio']),
body:not(.ns-login-page) select,
body:not(.ns-login-page) textarea {
  color: #111a2f !important;
  background: #fff !important;
  border-color: #cfd9e7 !important;
}

body:not(.ns-login-page) input::placeholder,
body:not(.ns-login-page) textarea::placeholder {
  color: #8895a8 !important;
  opacity: 1 !important;
}

body:not(.ns-login-page) input:focus,
body:not(.ns-login-page) select:focus,
body:not(.ns-login-page) textarea:focus {
  outline: none !important;
  border-color: var(--ns128-purple) !important;
  box-shadow: 0 0 0 4px rgba(35, 15, 108, 0.1) !important;
}

body:not(.ns-login-page) .ns-step-title > span,
body:not(.ns-login-page) .ns-motor-heading > span,
body:not(.ns-login-page) .ns-order-kicker {
  color: var(--ns128-green-deep) !important;
  font-weight: 900 !important;
}

/* Product/order page backgrounds */
body.ns-product-page,
body.ns-order-page,
body.ns-travel-page,
body.ns-motor-page {
  background: #f4f7fb !important;
}

body.ns-product-page .ns-product-panel,
body.ns-order-page .ns-order-card,
body.ns-order-page .ns-motor-panel,
body.ns-travel-page .ns-order-card,
body.ns-motor-page .ns-motor-panel {
  background: #fff !important;
}

/* ------------------------------------------------------------
   Motor coverage — one clear selection page
   ------------------------------------------------------------ */
.ns-motor-page .ns-coverage-card {
  color: var(--ns128-ink) !important;
  background: #fff !important;
  border: 2px solid #dbe3ef !important;
  box-shadow: 0 12px 30px rgba(35, 15, 108, 0.07) !important;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

.ns-motor-page .ns-coverage-card:hover,
.ns-motor-page .ns-coverage-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(35, 15, 108, 0.36) !important;
  box-shadow: 0 18px 36px rgba(35, 15, 108, 0.12) !important;
}

.ns-motor-page .ns-coverage-card.is-selected {
  border-color: var(--ns128-purple) !important;
  background: linear-gradient(145deg, #fff, #f3f0ff) !important;
  box-shadow: 0 18px 40px rgba(35, 15, 108, 0.15) !important;
}

.ns-motor-page .ns-coverage-card b,
.ns-motor-page .ns-coverage-card small,
.ns-motor-page .ns-coverage-card li,
.ns-motor-page .ns-coverage-card em {
  color: inherit !important;
}

.ns-motor-page .ns-coverage-card small,
.ns-motor-page .ns-coverage-card li {
  color: #5d6c83 !important;
}

.ns-motor-page .ns-coverage-card.is-selected em {
  color: var(--ns128-green-deep) !important;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
body:not(.ns-login-page) .btn,
body:not(.ns-login-page) .ns-primary-btn,
body:not(.ns-login-page) .ns-product-buy,
body:not(.ns-login-page) .ns-motor-primary,
body:not(.ns-login-page) .ns-action-primary,
body:not(.ns-login-page) button[type='submit']:not(.secondary):not(.btn-light) {
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(
    135deg,
    var(--ns128-purple),
    var(--ns128-purple-2)
  ) !important;
  box-shadow: 0 10px 24px rgba(35, 15, 108, 0.19) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease !important;
}

body:not(.ns-login-page) .btn:hover,
body:not(.ns-login-page) .ns-primary-btn:hover,
body:not(.ns-login-page) .ns-product-buy:hover,
body:not(.ns-login-page) .ns-motor-primary:hover,
body:not(.ns-login-page) .ns-action-primary:hover,
body:not(.ns-login-page) button[type='submit']:not(.secondary):not(.btn-light):hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 15px 32px rgba(35, 15, 108, 0.24) !important;
}

body:not(.ns-login-page) .ns-secondary-btn,
body:not(.ns-login-page) .ns-motor-secondary,
body:not(.ns-login-page) .secondary,
body:not(.ns-login-page) .btn-light,
body:not(.ns-login-page) .ns-action-secondary {
  color: var(--ns128-purple) !important;
  background: #fff !important;
  border: 1px solid #ccd6e5 !important;
}

/* ------------------------------------------------------------
   Why choose / partners / footer
   ------------------------------------------------------------ */
.why-choose {
  color: var(--ns128-ink) !important;
  background: linear-gradient(135deg, #f0edff, #effcf1) !important;
}

.why-choose h2,
.why-choose li {
  color: var(--ns128-ink) !important;
}

.partners-section {
  background: #fff !important;
}

.contact-section {
  color: #fff !important;
  background: linear-gradient(135deg, #18094e, #230f6c 60%, #15462e) !important;
}

.contact-section h2,
.contact-section p,
.contact-section a,
.contact-section strong,
.contact-section li {
  color: #fff !important;
}

.ns-site-footer,
footer {
  color: rgba(255, 255, 255, 0.9) !important;
  background: #18094e !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ns-site-footer a,
footer a {
  color: #a6f2ad !important;
}

/* ------------------------------------------------------------
   AI assistant — profile-led, friendly technology feel
   ------------------------------------------------------------ */
.ns-ai-head {
  background: linear-gradient(135deg, #18094e, var(--ns128-purple), #17512f) !important;
}

.ns-ai-head-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ns-ai-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.ns-ai-avatar img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.ns-ai-avatar::after,
.ns-ai-live-dot {
  content: '';
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ns128-green);
  border: 2px solid #fff;
}

.ns-ai-fab {
  overflow: hidden;
  background: #fff !important;
  border: 3px solid #fff !important;
  box-shadow: 0 18px 42px rgba(35, 15, 108, 0.28) !important;
}

.ns-ai-fab img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.ns-ai-panel {
  border-color: rgba(35, 15, 108, 0.14) !important;
  box-shadow: 0 28px 72px rgba(35, 15, 108, 0.22) !important;
}

.ns-ai-msg.bot {
  color: var(--ns128-ink) !important;
  background: #fff !important;
  border-color: #dde5f0 !important;
}

.ns-ai-msg.user {
  color: #fff !important;
  background: var(--ns128-purple) !important;
}

.ns-ai-quick button {
  color: var(--ns128-purple) !important;
  border-color: #d6dced !important;
  background: #fff !important;
}

.ns-ai-send {
  background: var(--ns128-purple) !important;
}

/* ------------------------------------------------------------
   Dashboard / Agent panel
   ------------------------------------------------------------ */
body.ns-dashboard-page {
  background: linear-gradient(180deg, #f7f9fc, #f1f5f9) !important;
  color: var(--ns128-ink) !important;
}

body.ns-dashboard-page .desktop-side {
  background:
    radial-gradient(circle at 10% 8%, rgba(3, 200, 11, 0.13), transparent 23%),
    linear-gradient(180deg, #18094e, #230f6c 66%, #171047) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 12px 0 38px rgba(35, 15, 108, 0.16);
}

body.ns-dashboard-page .desktop-side .sidebar-btn {
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

body.ns-dashboard-page .desktop-side .sidebar-btn:hover {
  color: #fff !important;
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1) !important;
}

body.ns-dashboard-page .desktop-side .sidebar-btn.active,
body.ns-dashboard-page .desktop-side .sidebar-btn[aria-current='page'] {
  color: #160946 !important;
  background: linear-gradient(135deg, #fff, #ecffef) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

body.ns-dashboard-page .main-shell {
  background: transparent !important;
}

body.ns-dashboard-page .dash-card,
body.ns-dashboard-page .sales-panel,
body.ns-dashboard-page .orders-tools-card,
body.ns-dashboard-page .ns-dashboard-period-panel,
body.ns-dashboard-page .ns-billing-center-head,
body.ns-dashboard-page .ns-v79-table-card,
body.ns-dashboard-page #personOrdersBox,
body.ns-dashboard-page .bg-white {
  color: var(--ns128-ink) !important;
  background: #fff !important;
  border-color: #dde5ef !important;
  box-shadow: 0 12px 30px rgba(35, 15, 108, 0.07) !important;
}

body.ns-dashboard-page .dash-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body.ns-dashboard-page .dash-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ns128-purple), var(--ns128-green));
}

body.ns-dashboard-page .dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(35, 15, 108, 0.11) !important;
}

body.ns-dashboard-page .dash-card span,
body.ns-dashboard-page .dash-card small,
body.ns-dashboard-page .dash-card b,
body.ns-dashboard-page table,
body.ns-dashboard-page td,
body.ns-dashboard-page th,
body.ns-dashboard-page label,
body.ns-dashboard-page p {
  color: inherit;
}

body.ns-dashboard-page table thead,
body.ns-dashboard-page .orders-table-wrap thead {
  color: #25334d !important;
  background: #f2f4f9 !important;
}

body.ns-dashboard-page table tbody tr:hover {
  background: #f7f5ff !important;
}

body.ns-dashboard-page .order-type-btn.active,
body.ns-dashboard-page .role-tab.active,
body.ns-dashboard-page .sales-tab.active {
  color: #fff !important;
  background: var(--ns128-purple) !important;
}

/* ------------------------------------------------------------
   Smart navigation transition / click feedback
   ------------------------------------------------------------ */
body.ns-ui-ready main,
body.ns-ui-ready .main-shell,
body.ns-ui-ready .page-hero,
body.ns-ui-ready .hero {
  animation: ns128PageIn 0.28s ease both;
}

body.ns-page-leaving main,
body.ns-page-leaving .main-shell,
body.ns-page-leaving .page-hero,
body.ns-page-leaving .hero {
  opacity: 0.5;
  transform: translateY(3px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.ns128-ripple {
  position: absolute;
  pointer-events: none;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(35, 15, 108, 0.14);
  transform: scale(0);
  animation: ns128Ripple 0.5s ease-out forwards;
}

@keyframes ns128PageIn {
  from {
    opacity: 0.75;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ns128Ripple {
  to {
    transform: scale(18);
    opacity: 0;
  }
}

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

@media (max-width: 900px) {
  #products .card {
    min-height: 0;
  }

  body:not(.ns-login-page) .nav-list {
    background: #fff !important;
    border: 1px solid var(--ns128-line) !important;
    box-shadow: 0 18px 44px rgba(35, 15, 108, 0.14) !important;
  }

  body:not(.ns-login-page) .nav-list > li > a {
    color: var(--ns128-ink) !important;
  }
}

@media (max-width: 640px) {
  #products .card {
    padding: 22px !important;
    border-radius: 20px !important;
  }

  .ns-ai-avatar {
    width: 40px;
    height: 40px;
  }

  .ns-ai-avatar img {
    width: 34px;
    height: 34px;
  }
}

/* v131: predictable support-button stack and readable login navigation. */
.ns-wa-float {
  bottom: 236px !important;
  right: 18px !important;
  z-index: 9999 !important;
}
.ns-feedback-float {
  bottom: 170px !important;
  right: 18px !important;
}
.login-nav,
.login-nav .header-inner,
.login-nav .nav,
.login-nav .submenu {
  background: #fff !important;
  color: #102033 !important;
}
.login-nav a,
.login-nav .nav-link {
  color: #102033 !important;
}
@media (max-width: 640px) {
  .ns-wa-float {
    bottom: 226px !important;
    right: 14px !important;
  }
  .ns-feedback-float {
    bottom: 170px !important;
    right: 14px !important;
  }
}

/* Comfortable chat dimensions without overflowing mobile screens. */
.ns-ai-panel {
  width: min(94vw, 480px) !important;
  height: 620px !important;
  max-height: calc(100dvh - 110px) !important;
}
.ns-ai-msg {
  font-size: 15px !important;
  line-height: 1.65 !important;
}
@media (max-width: 640px) {
  .ns-ai-panel {
    width: calc(100vw - 24px) !important;
    height: 76dvh !important;
    max-height: calc(100dvh - 100px) !important;
  }
}

.ns-support-portrait {
  margin: 0 auto 20px;
  max-width: 280px;
  text-align: center;
}
.ns-support-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid #fff;
  box-shadow: 0 14px 36px rgba(15, 107, 115, 0.16);
}
.ns-support-portrait figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #087f8c;
}
@media (max-width: 640px) {
  .ns-support-portrait {
    max-width: 220px;
  }
}

.ns-human-support {
  max-width: 1120px;
  margin: 48px auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #f0fdfa;
  border: 1px solid #ccebe4;
  border-radius: 28px;
}
.ns-human-support img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
}
.ns-human-support h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  color: #102033;
  margin: 12px 0;
}
.ns-human-support p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 22px;
}
.ns-support-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #087f8c;
}
@media (max-width: 700px) {
  .ns-human-support {
    grid-template-columns: 1fr;
    margin: 28px 12px;
    padding: 20px;
    gap: 20px;
  }
  .ns-human-support img {
    height: 230px;
  }
}

/* SECTION 20 — Nextsure Fire Marine Clear */
/* Fire and Marine: preserve the original artwork without dimming or cropping. */
#heroSlider .slide[data-product-link='/fire-order'] img,
#heroSlider .slide[data-product-link='/marine-order'] img {
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  background: #04162f !important;
}
#heroSlider .slide[data-product-link='/fire-order']::after,
#heroSlider .slide[data-product-link='/marine-order']::after {
  background: none !important;
}
/* The artwork already contains the product title. Keep the action available. */
#heroSlider .slide[data-product-link='/fire-order'] .slide-content,
#heroSlider .slide[data-product-link='/marine-order'] .slide-content {
  display: none !important;
}
.ns-clear-banner .ns-product-image-wrap {
  min-height: 0 !important;
  height: auto !important;
  background: #04162f !important;
}
.ns-clear-banner .ns-product-image-wrap::before {
  background: none !important;
}
.ns-clear-banner .ns-product-image-wrap img {
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  object-fit: contain !important;
  filter: none !important;
}

/* SECTION 21 — Nextsure Readability Support */
/* Readability and support controls: no pricing rules. */
body:not(.ns-login-page) .ns-product-copy h1#productTitle {
  color: #132b42 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}
body:not(.ns-login-page) .ns-product-copy h1#productTitle span {
  color: #0d727a !important;
  -webkit-text-fill-color: initial !important;
}
body:not(.ns-login-page) .ns-product-copy p {
  color: #334155 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body:not(.ns-login-page) .ns-product-copy .ns-product-kicker {
  color: #166534 !important;
  background: #e8f5ed !important;
  text-shadow: none !important;
}
#nsWaFloat {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
  right: 20px !important;
  bottom: 118px !important;
  z-index: 2147483601 !important;
  background: #168a45 !important;
  color: white !important;
}
#nsAiFab {
  position: relative;
  overflow: visible !important;
  pointer-events: auto !important;
}
#nsAiFab img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50%;
}
#nsAiFab .ns-ai-label {
  position: absolute;
  right: 74px;
  top: 50%;
  transform: translateY(-50%);
  background: #102033;
  color: #fff !important;
  padding: 9px 12px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
#nsAiAssistant {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483602 !important;
}
#nsAiAssistant .ns-ai-msg.bot {
  background: #f1f5f9 !important;
  color: #172b42 !important;
}
#nsAiAssistant .ns-ai-input {
  background: white !important;
  color: #172b42 !important;
}
.ns-scan-preview {
  position: relative;
  overflow: hidden;
  max-width: 480px;
  height: 210px;
  background: #e2e8f0;
  margin: 12px auto;
  border-radius: 14px;
  border: 1px solid #94a3b8;
}
.ns-scan-preview img,
.ns-scan-preview object {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.38;
  pointer-events: none;
}
.ns-scan-preview b {
  position: absolute;
  bottom: 8px;
  left: 12px;
  background: #102033;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.ns-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #0d9488;
  box-shadow: 0 0 14px #14b8a6;
  animation: passport-line 2s ease-in-out infinite alternate;
}
@keyframes passport-line {
  from {
    top: 5%;
  }
  to {
    top: 90%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ns-scan-line {
    animation: none;
    top: 50%;
  }
}

/* Claims uses white hero cards; override the shared white hero text. */
body.ns-claims-page .ns-calc-hero > div {
  background: #fff !important;
  color: #132b42 !important;
}
body.ns-claims-page .ns-calc-hero h1,
body.ns-claims-page .ns-calc-hero .ns-source-note,
body.ns-claims-page .ns-calc-hero .ns-source-note > b,
body.ns-claims-page .ns-order-card h2 {
  color: #132b42 !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
body.ns-claims-page .ns-calc-hero p,
body.ns-claims-page .ns-order-card > p {
  color: #334155 !important;
  -webkit-text-fill-color: initial !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body.ns-claims-page .ns-calc-hero .ns-order-kicker {
  background: #e8f5ed !important;
  color: #166534 !important;
  -webkit-text-fill-color: initial !important;
}
body.ns-claims-page .ns-claim-btn {
  background: #0f6b73 !important;
  color: #fff !important;
  -webkit-text-fill-color: initial !important;
}
body.ns-claims-page .ns-claim-btn:hover,
body.ns-claims-page .ns-claim-btn:focus-visible {
  background: #08545b !important;
  color: #fff !important;
}

/* Keep product actions fully visible when descriptions wrap. */
#products .grid.cards {
  align-items: stretch !important;
}
#products .grid.cards > .card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
#products .grid.cards > .card > .btn-link {
  flex: 0 0 auto !important;
  min-height: 48px !important;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 2 !important;
  margin-top: auto !important;
}
#products .grid.cards > .card::before,
#products .grid.cards > .card::after {
  pointer-events: none !important;
}

#nsWaFloat {
  bottom: 210px !important;
}
.ns-ai-panel {
  width: min(460px, calc(100vw - 28px)) !important;
  height: min(650px, 75dvh) !important;
  max-height: calc(100dvh - 115px) !important;
}
.ns-ai-avatar img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}
.ns-login-page .site-header,
.ns-login-page .sticky-nav,
.ns-login-page .nav {
  background: #fff !important;
  color: #142c44 !important;
}
.ns-login-page .site-header a,
.ns-login-page .nav a {
  color: #142c44 !important;
  text-shadow: none !important;
}
body .ns-motor-hero .ns-product-actions,
body .ns-motor-hero .hero-actions {
  overflow: visible !important;
  flex-wrap: wrap;
}
body .ns-motor-hero,
body .ns-product-hero-card {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
@media (max-width: 640px) {
  #nsWaFloat {
    bottom: 200px !important;
  }
  .ns-ai-panel {
    width: calc(100vw - 28px) !important;
  }
  .ns-product-hero-card {
    grid-template-columns: 1fr !important;
  }
  .ns-product-copy {
    padding: 24px !important;
  }
}

body .card:has(a[href^='/motor-order']),
body .card:has(a[href^='/fire-order']),
body .card:has(a[href^='/marine-order']),
body .card:has(a[href^='/travel-order']) {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: 26px !important;
  display: flex !important;
  flex-direction: column !important;
}
body .card .btn-link {
  margin-top: auto !important;
  display: inline-flex !important;
  flex-shrink: 0 !important;
  min-height: 44px !important;
  align-items: center !important;
  padding: 12px 18px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

body.ns-login-page .login-nav,
body.ns-login-page .login-nav .submenu,
body.ns-login-page .mobile-strip {
  background: #fff !important;
  color: #142c44 !important;
}
body.ns-login-page .login-nav a,
body.ns-login-page .mobile-strip a {
  color: #142c44 !important;
  text-shadow: none !important;
}

/* Date controls retain the complete value on narrow screens. */
input[type='date'],
input[type='datetime-local'] {
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100%;
  min-height: 48px !important;
  height: auto !important;
  padding: 10px 12px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #132b42 !important;
  background-color: #fff !important;
  opacity: 1 !important;
}
input[type='date']::-webkit-date-and-time-value {
  text-align: left;
  min-height: 24px;
}
input[type='date']::-webkit-datetime-edit {
  padding: 0;
  overflow: visible;
}
.ns-compact-dob {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  min-width: 0;
}
.ns-compact-dob select {
  min-height: 46px !important;
  min-width: 78px !important;
  flex: 1 1 78px;
  padding: 8px 24px 8px 10px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #132b42 !important;
  background-color: #fff !important;
}
.ns-locked-rate-dob {
  color: #132b42 !important;
  background: #eef4f8 !important;
  opacity: 1 !important;
  min-height: 46px;
}
.ns-passport-manual-grid small {
  display: block;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

/* Compact directory controls leave room for the full page of agency rows. */
#peopleView .ns-management-toolbar,
#peopleView .ns-management-search-toolbar {
  padding: 6px 8px !important;
  min-height: 0 !important;
  gap: 8px !important;
}
#peopleView .ns-management-search-only {
  padding: 3px 10px !important;
  border-radius: 12px !important;
  min-height: 0 !important;
}
#peopleView .ns-management-search-only .ns-people-search {
  height: 38px !important;
  min-height: 38px !important;
  padding: 7px 8px !important;
  font-size: 14px !important;
}
#peopleView .ns-management-search-icon {
  font-size: 20px !important;
}
#peopleView .ns-people-search-btn,
#peopleView .ns-people-clear-btn {
  height: 36px !important;
  min-height: 36px !important;
  width: auto !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
}
#peopleView #peopleGrid {
  display: block !important;
  flex: 1 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}
#peopleView .ns-partner-list-wrap {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}
#peopleView .ns-partner-list-table th {
  padding: 8px 10px !important;
  font-size: 12px !important;
}
#peopleView .ns-partner-list-table td {
  padding: 7px 10px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  height: auto !important;
}
#peopleView .ns-partner-list-table .ns-partner-avatar {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
}
#peopleView .ns-partner-list-table small {
  font-size: 11px !important;
  line-height: 1.2 !important;
}
#peopleView .ns-people-pagination {
  padding: 6px 8px !important;
  margin-top: 4px !important;
}
/* All visible date text fields, including modal date controls. */
.ns-date-picker-wrap .ns-date-text,
.swal2-popup .ns-date-picker-wrap .ns-date-text {
  width: 100% !important;
  min-width: 150px !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 9px 10px !important;
  font-size: 16px !important;
  line-height: 24px !important;
  text-overflow: clip !important;
}
.ns-date-picker-wrap .ns-date-selects {
  display: none !important;
}
input[type='month'],
input[type='week'] {
  min-height: 44px !important;
  padding: 9px 10px !important;
  line-height: 24px !important;
  font-size: 16px !important;
}
.ns-bkash-custom {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 100px auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0 14px;
  color: #132b42;
  font-size: 13px;
}
.ns-bkash-custom input {
  width: 100% !important;
  min-height: 40px;
  padding: 8px !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.ns-bkash-custom button {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f1f5f9;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .ns-bkash-custom {
    grid-template-columns: 1fr 100px;
  }
  .ns-bkash-custom button {
    grid-column: 1/-1;
  }
  #peopleView .ns-management-search-only {
    width: 100% !important;
  }
  .ns-date-picker-wrap .ns-date-text {
    min-width: 0 !important;
  }
}

/* Keep transformed native date inputs hidden and out of document flow. */
input.ns-original-date-input[type='date'] {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
#swalAgentBranchSummary,
#v89AgentSummary {
  display: none !important;
}

/* SECTION 22 — Product Card Visuals */
/* Product cards: product-specific human/technology visual strip. */
#products .card.ns-visual-card {
  overflow: hidden;
  position: relative;
  padding-top: 0 !important;
}
#products .ns-card-visual {
  height: 150px;
  margin: -1px -1px 18px;
  border-radius: inherit;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -28px 38px rgba(5, 28, 50, 0.18);
}
#products .ns-card-visual.travel {
  background-image: url('/images/travel-card-background.jpg');
}
#products .ns-card-visual.motor {
  background-image: url('/images/motor-card-background.jpg');
}
#products .ns-card-visual.fire {
  background-image: url('/images/fire-card-background.jpg');
}
#products .ns-card-visual.marine {
  background-image: url('/images/marine-card-background.jpg');
}
#products .card.ns-visual-card .icon_logo {
  margin-top: -48px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
@media (max-width: 700px) {
  #products .ns-card-visual {
    height: 130px;
  }
}

/* SECTION 23 — Site Footer */
/* Shared public-site contact and footer. Full browser width by design. */
.ns-global-contact {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 38px clamp(18px, 4vw, 64px) !important;
  box-sizing: border-box !important;
  color: #fff !important;
  background: linear-gradient(135deg, #18094e 0%, #230f6c 58%, #15462e 100%) !important;
  position: relative;
  overflow: hidden;
}
.ns-global-contact::before {
  content: '';
  position: absolute;
  inset: auto -8% -65% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.18), transparent 68%);
  pointer-events: none;
}
.ns-global-contact__grid {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.75fr) minmax(260px, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  position: relative;
  z-index: 1;
}
.ns-global-contact__item {
  min-width: 0;
  max-width: none !important;
}
.ns-global-contact h2 {
  margin: 0 0 12px;
  color: #fff !important;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
}
.ns-global-contact p,
.ns-global-contact li,
.ns-global-contact a,
.ns-global-contact strong {
  color: #fff !important;
}
.ns-global-contact p {
  margin: 0;
  line-height: 1.75;
  font-size: 15px;
}
.ns-global-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.ns-global-contact a {
  text-decoration: none;
  font-weight: 700;
}
.ns-global-contact a:hover {
  text-decoration: underline;
}
.ns-global-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}
.ns-global-contact__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.ns-global-contact__contact p {
  margin: 0 0 10px;
}
.ns-global-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px clamp(18px, 4vw, 64px) !important;
  box-sizing: border-box !important;
  background: #12073f !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  text-align: center !important;
}
.ns-global-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 9px;
}
.ns-global-footer a {
  color: #a6f2ad !important;
  text-decoration: none;
  font-weight: 800;
}
.ns-global-footer p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}
@media (max-width: 900px) {
  .ns-global-contact {
    padding: 30px 18px !important;
  }
  .ns-global-contact__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ns-global-contact__links {
    gap: 8px;
  }
  .ns-global-footer {
    padding: 18px !important;
  }
}

/* SECTION 24 — Public Modern Background */
/*
 * NextSure public website modern background theme.
 * ------------------------------------------------------------
 * VISUAL ONLY: no pricing, order, billing or authentication logic here.
 * To recolor the public website later, edit ONLY the variables below.
 */
:root {
  --ns-site-bg-1: #edf8ff;
  --ns-site-bg-2: #f5f3ff;
  --ns-site-bg-3: #effcf8;
  --ns-site-ink: #12233d;
  --ns-site-muted: #60748d;
  --ns-site-primary: #3158e6;
  --ns-site-secondary: #7054f6;
  --ns-site-accent: #08a9b5;
  --ns-site-success: #0a9b72;
  --ns-site-surface: rgba(255, 255, 255, 0.88);
  --ns-site-border: rgba(100, 132, 170, 0.18);
  --ns-site-shadow: 0 18px 46px rgba(24, 64, 104, 0.095);
}
html {
  background: var(--ns-site-bg-1) !important;
}
body.ns-public-modern {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 5%, rgba(112, 84, 246, 0.12), transparent 27%),
    radial-gradient(circle at 8% 34%, rgba(8, 169, 181, 0.105), transparent 31%),
    radial-gradient(circle at 76% 86%, rgba(10, 155, 114, 0.08), transparent 30%),
    linear-gradient(
      145deg,
      var(--ns-site-bg-1) 0%,
      var(--ns-site-bg-2) 48%,
      var(--ns-site-bg-3) 100%
    ) !important;
  background-attachment: fixed !important;
  color: var(--ns-site-ink) !important;
}
body.ns-public-modern::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(49, 88, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 169, 181, 0.04) 1px, transparent 1px),
    radial-gradient(
      circle at 22px 22px,
      rgba(112, 84, 246, 0.095) 1.1px,
      transparent 1.7px
    );
  background-size:
    46px 46px,
    46px 46px,
    92px 92px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22));
}
body.ns-public-modern::after {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
  right: -9vw;
  bottom: -14vw;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(49, 88, 230, 0.065);
  box-shadow:
    0 0 0 34px rgba(8, 169, 181, 0.025),
    0 0 0 76px rgba(112, 84, 246, 0.018);
}
body.ns-public-modern .site-header {
  background: rgba(255, 255, 255, 0.91) !important;
  border-bottom: 1px solid var(--ns-site-border) !important;
  box-shadow: 0 9px 28px rgba(23, 54, 91, 0.07) !important;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
body.ns-public-modern .site-header::before {
  background: linear-gradient(
    90deg,
    var(--ns-site-primary),
    var(--ns-site-secondary),
    var(--ns-site-accent)
  ) !important;
}
body.ns-public-modern main,
body.ns-public-modern .section,
body.ns-public-modern .premium-wrap,
body.ns-public-modern .partners-section {
  color: var(--ns-site-ink) !important;
}
body.ns-public-modern .section-title,
body.ns-public-modern main h1:not(.hero *):not(.page-hero *):not(.ns-product-hero *),
body.ns-public-modern main h2:not(.hero *):not(.page-hero *):not(.ns-product-hero *),
body.ns-public-modern main h3 {
  color: var(--ns-site-ink) !important;
}
body.ns-public-modern main p,
body.ns-public-modern main li,
body.ns-public-modern main small {
  color: var(--ns-site-muted);
}
body.ns-public-modern .premium-card,
body.ns-public-modern .logo-card,
body.ns-public-modern .stat-card,
body.ns-public-modern .about-fact,
body.ns-public-modern .contact-box,
body.ns-public-modern .map-card,
body.ns-public-modern .ns-product-panel,
body.ns-public-modern .ns-product-list-panel,
body.ns-public-modern .ns-process-card,
body.ns-public-modern .ns-product-cta,
body.ns-public-modern .ns-seo-faq,
body.ns-public-modern .ns-motor-choice-card,
body.ns-public-modern .ns-motor-info-card,
body.ns-public-modern .ns-order-card,
body.ns-public-modern .ns-wizard-panel,
body.ns-public-modern .ns-motor-panel,
body.ns-public-modern .soft-panel,
body.ns-public-modern .partner {
  background: var(--ns-site-surface) !important;
  border: 1px solid var(--ns-site-border) !important;
  box-shadow: var(--ns-site-shadow) !important;
  backdrop-filter: blur(10px);
}
body.ns-public-modern #products .card {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.94),
    rgba(247, 250, 255, 0.89),
    rgba(243, 253, 250, 0.86)
  ) !important;
  border-color: var(--ns-site-border) !important;
  box-shadow: var(--ns-site-shadow) !important;
}
body.ns-public-modern #products .card::before {
  background: linear-gradient(
    90deg,
    var(--ns-site-primary),
    var(--ns-site-secondary),
    var(--ns-site-accent)
  ) !important;
}
body.ns-public-modern #products .card h3 {
  color: #274cbf !important;
}
body.ns-public-modern .btn-primary,
body.ns-public-modern .button.primary,
body.ns-public-modern .btn-link,
body.ns-public-modern a.cta {
  background: linear-gradient(
    135deg,
    var(--ns-site-primary),
    var(--ns-site-secondary)
  ) !important;
  box-shadow: 0 11px 25px rgba(65, 74, 210, 0.18) !important;
}
body.ns-public-modern .page-hero,
body.ns-public-modern .ns-product-hero,
body.ns-public-modern .ns-motor-hero,
body.ns-public-modern .ns-calc-hero,
body.ns-public-modern .ns-order-hero {
  background:
    radial-gradient(circle at 88% 16%, rgba(8, 169, 181, 0.3), transparent 30%),
    linear-gradient(125deg, #142b5d 0%, #3f3fc8 54%, #087f88 132%) !important;
  box-shadow: 0 22px 56px rgba(32, 62, 128, 0.18) !important;
}
body.ns-public-modern footer,
body.ns-public-modern .site-footer {
  background: linear-gradient(135deg, #07192f, #102b4a 50%, #0a3941) !important;
}
@media (max-width: 760px) {
  body.ns-public-modern {
    background-attachment: scroll !important;
  }
  body.ns-public-modern::after {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ns-public-modern * {
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Public Website Water-Glass Theme — visual layer
   ------------------------------------------------------------
   Deliberately different from the dark-tech Admin Dashboard.
   Change these variables to recolor every public customer page.
   No pricing, order, billing or authentication logic is changed.
   ============================================================ */
:root {
  --ns-public-sky: #eaf8ff;
  --ns-public-aqua: #e8fbfa;
  --ns-public-lilac: #f2f1ff;
  --ns-public-blue: #1f67d8;
  --ns-public-cyan: #00a9c7;
  --ns-public-teal: #07998f;
  --ns-public-violet: #6b63d9;
  --ns-public-ink: #12304a;
  --ns-public-muted: #607b8f;
  --ns-public-surface: rgba(255, 255, 255, 0.87);
  --ns-public-border: rgba(62, 126, 157, 0.15);
  --ns-public-shadow: 0 18px 45px rgba(28, 91, 119, 0.095);
}
html {
  background: var(--ns-public-sky) !important;
}
body.ns-public-modern {
  color: var(--ns-public-ink) !important;
  background:
    radial-gradient(ellipse at 90% 4%, rgba(107, 99, 217, 0.11), transparent 29%),
    radial-gradient(ellipse at 8% 25%, rgba(0, 169, 199, 0.14), transparent 31%),
    radial-gradient(ellipse at 78% 87%, rgba(7, 153, 143, 0.12), transparent 32%),
    linear-gradient(
      145deg,
      var(--ns-public-sky) 0%,
      var(--ns-public-aqua) 48%,
      var(--ns-public-lilac) 100%
    ) !important;
  background-attachment: fixed !important;
}
/* Soft water-mark/ripple texture — no video, no heavy image asset. */
body.ns-public-modern::before {
  opacity: 0.58 !important;
  background-image:
    radial-gradient(
      ellipse at 18% 16%,
      transparent 0 34px,
      rgba(0, 169, 199, 0.055) 35px 36px,
      transparent 37px 65px,
      rgba(31, 103, 216, 0.032) 66px 67px,
      transparent 68px
    ),
    radial-gradient(
      ellipse at 82% 72%,
      transparent 0 54px,
      rgba(7, 153, 143, 0.05) 55px 56px,
      transparent 57px 92px,
      rgba(107, 99, 217, 0.028) 93px 94px,
      transparent 95px
    ),
    linear-gradient(rgba(31, 103, 216, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 169, 199, 0.024) 1px, transparent 1px) !important;
  background-size:
    520px 360px,
    620px 440px,
    62px 62px,
    62px 62px !important;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.18)
  ) !important;
}
body.ns-public-modern::after {
  right: -5vw !important;
  bottom: -10vw !important;
  width: min(44vw, 580px) !important;
  border: 1px solid rgba(0, 169, 199, 0.075) !important;
  box-shadow:
    0 0 0 32px rgba(31, 103, 216, 0.022),
    0 0 0 72px rgba(7, 153, 143, 0.016) !important;
}

/* Brighter customer-facing header, different from dashboard navigation. */
body.ns-public-modern .site-header {
  background: rgba(251, 254, 255, 0.9) !important;
  border-bottom: 1px solid rgba(62, 126, 157, 0.14) !important;
  box-shadow: 0 10px 30px rgba(24, 82, 109, 0.065) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
}
body.ns-public-modern .site-header::before {
  background: linear-gradient(
    90deg,
    var(--ns-public-blue),
    var(--ns-public-cyan),
    var(--ns-public-teal),
    var(--ns-public-violet)
  ) !important;
}
body.ns-public-modern .nav-list a {
  color: #24445e;
}
body.ns-public-modern .nav-list a:hover {
  color: var(--ns-public-blue) !important;
}

/* Public hero: ocean-tech rather than admin-control-panel. */
body.ns-public-modern .page-hero,
body.ns-public-modern .ns-product-hero,
body.ns-public-modern .ns-motor-hero,
body.ns-public-modern .ns-calc-hero,
body.ns-public-modern .ns-order-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(126, 240, 228, 0.3), transparent 26%),
    radial-gradient(circle at 8% 90%, rgba(123, 163, 255, 0.22), transparent 28%),
    linear-gradient(122deg, #0e3e73 0%, #1765a8 45%, #078b98 103%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 24px 55px rgba(25, 91, 126, 0.18) !important;
  position: relative;
  overflow: hidden;
}
body.ns-public-modern .page-hero::after,
body.ns-public-modern .ns-product-hero::after,
body.ns-public-modern .ns-motor-hero::after,
body.ns-public-modern .ns-calc-hero::after,
body.ns-public-modern .ns-order-hero::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.035),
    0 0 0 70px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

/* Customer cards and content surfaces. */
body.ns-public-modern
  :is(
    .premium-card,
    .logo-card,
    .stat-card,
    .about-fact,
    .contact-box,
    .map-card,
    .ns-product-panel,
    .ns-product-list-panel,
    .ns-process-card,
    .ns-product-cta,
    .ns-seo-faq,
    .ns-motor-choice-card,
    .ns-motor-info-card,
    .ns-order-card,
    .ns-wizard-panel,
    .ns-motor-panel,
    .soft-panel,
    .partner
  ) {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.94),
    rgba(247, 253, 255, 0.86),
    rgba(241, 252, 249, 0.82)
  ) !important;
  border: 1px solid var(--ns-public-border) !important;
  box-shadow: var(--ns-public-shadow) !important;
  backdrop-filter: blur(10px) saturate(118%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(118%) !important;
}
body.ns-public-modern #products .card {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.96),
    rgba(242, 251, 255, 0.9),
    rgba(240, 253, 249, 0.88)
  ) !important;
  border: 1px solid var(--ns-public-border) !important;
  box-shadow: var(--ns-public-shadow) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease !important;
}
body.ns-public-modern #products .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 22px 48px rgba(25, 91, 126, 0.14) !important;
}
body.ns-public-modern #products .card::before {
  background: linear-gradient(
    90deg,
    var(--ns-public-blue),
    var(--ns-public-cyan),
    var(--ns-public-teal)
  ) !important;
}
body.ns-public-modern #products .card h3 {
  color: #1c5e9f !important;
}
body.ns-public-modern .section-title,
body.ns-public-modern main h1:not(.hero *):not(.page-hero *):not(.ns-product-hero *),
body.ns-public-modern main h2:not(.hero *):not(.page-hero *):not(.ns-product-hero *),
body.ns-public-modern main h3 {
  color: var(--ns-public-ink) !important;
}
body.ns-public-modern main p,
body.ns-public-modern main li,
body.ns-public-modern main small {
  color: var(--ns-public-muted) !important;
}

body.ns-public-modern :is(.btn-primary, .button.primary, .btn-link, a.cta) {
  background: linear-gradient(
    135deg,
    var(--ns-public-blue),
    var(--ns-public-cyan)
  ) !important;
  border-color: transparent !important;
  box-shadow: 0 11px 25px rgba(22, 111, 167, 0.18) !important;
}
body.ns-public-modern :is(.btn-primary, .button.primary, .btn-link, a.cta):hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
}

body.ns-public-modern footer,
body.ns-public-modern .site-footer {
  background:
    radial-gradient(circle at 88% 15%, rgba(0, 169, 199, 0.13), transparent 26%),
    linear-gradient(135deg, #071c31, #0c3450 54%, #07454a) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 760px) {
  body.ns-public-modern {
    background-attachment: scroll !important;
  }
  body.ns-public-modern::after {
    display: none !important;
  }
}

/* SECTION 25 — Search Discovery */
/* NextSure v151 search-discovery content. Visible, useful content only; no hidden keyword stuffing. */
.ns-search-discovery {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto;
  padding: 26px;
  border: 1px solid rgba(78, 118, 151, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 38px rgba(25, 62, 91, 0.07);
  backdrop-filter: blur(10px);
}
.ns-search-discovery h2 {
  margin: 0 0 10px;
  color: #102b44;
  font-size: clamp(24px, 3vw, 34px);
}
.ns-search-discovery > p {
  margin: 0 0 18px;
  color: #5b7085;
  line-height: 1.75;
}
.ns-search-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ns-search-faq-grid article {
  padding: 18px;
  border: 1px solid #dbe7ef;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff, #f5fafc);
}
.ns-search-faq-grid h3 {
  margin: 0 0 7px;
  color: #183951;
  font-size: 17px;
}
.ns-search-faq-grid p {
  margin: 0;
  color: #607488;
  line-height: 1.65;
}
.ns-search-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.ns-search-links a {
  padding: 10px 13px;
  border-radius: 12px;
  background: #edf7fb;
  color: #13546f;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid #d8e8ef;
}
@media (max-width: 720px) {
  .ns-search-discovery {
    width: min(100% - 20px, 1180px);
    padding: 19px;
  }
  .ns-search-faq-grid {
    grid-template-columns: 1fr;
  }
}

/* SECTION 26 — V155 Public Polish */
/* NextSure v155 public polish — visual-only, no calculation/flow changes */
:root {
  --ns155-glass: rgba(255, 255, 255, 0.82);
  --ns155-line: rgba(15, 118, 110, 0.14);
  --ns155-shadow: 0 18px 55px rgba(15, 23, 42, 0.09);
}
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(45, 212, 191, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.12), transparent 30rem),
    linear-gradient(180deg, #f8fffe 0%, #f7fbff 48%, #fff 100%);
}
main,
.page-shell,
.container {
  scroll-behavior: smooth;
}
header,
.site-header,
.navbar {
  backdrop-filter: saturate(1.25) blur(16px);
  -webkit-backdrop-filter: saturate(1.25) blur(16px);
}
.hero,
.banner,
.product-hero,
.travel-hero,
.motor-hero,
.fire-hero,
.marine-hero {
  position: relative;
  isolation: isolate;
}
.hero::after,
.product-hero::after,
.travel-hero::after,
.motor-hero::after,
.fire-hero::after,
.marine-hero::after {
  content: '';
  position: absolute;
  inset: auto 4% 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(20, 184, 166, 0.55),
    rgba(56, 189, 248, 0.55),
    transparent
  );
  pointer-events: none;
}
.card,
.product-card,
.feature-card,
.service-card,
.info-card {
  border-color: var(--ns155-line) !important;
  box-shadow: var(--ns155-shadow);
}
.card:hover,
.product-card:hover,
.feature-card:hover,
.service-card:hover {
  transform: translateY(-3px);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 22px 62px rgba(15, 23, 42, 0.13);
}
button,
.btn,
a.btn,
.cta-button {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}
button:hover,
.btn:hover,
a.btn:hover,
.cta-button:hover {
  transform: translateY(-1px);
}
button:active,
.btn:active,
a.btn:active,
.cta-button:active {
  transform: translateY(0);
}
input,
select,
textarea {
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(13, 148, 136, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.11) !important;
}
img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  body {
    background: linear-gradient(180deg, #f8fffe, #fff);
  }
  .hero,
  .banner,
  .product-hero {
    border-radius: 0 0 24px 24px;
  }
  .card,
  .product-card,
  .feature-card,
  .service-card {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
