/* ==========================================================================
   MUNIM JI HQ (मुनीम जी HQ) — MASTER DESIGN SYSTEM (theme.css)
   Responsive: 5G Smartphones (360px+), Tablets (768px+), Desktop Compact (1024px+)
   Typography: Multi-script support for all 11 Indian languages
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Noto+Sans+Gujarati:wght@400;500;600;700&family=Noto+Sans+Gurmukhi:wght@400;500;600;700&family=Noto+Sans+Kannada:wght@400;500;600;700&family=Noto+Sans+Malayalam:wght@400;500;600;700&family=Noto+Sans+Oriya:wght@400;500;600;700&family=Noto+Sans+Tamil:wght@400;500;600;700&family=Noto+Sans+Telugu:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Brand & Corporate Fintech Color Palette */
  --navy-950: #060b19;
  --navy-900: #0b132b;
  --navy-800: #152244;
  --navy-700: #1e3163;

  --primary-600: #1d4ed8;
  --primary-500: #2563eb;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;

  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --danger-600: #dc2626;
  --danger-100: #fee2e2;
  --danger-50: #fef2f2;

  /* Neutral Surfaces & Borders */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Text Hierarchy */
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Classic Cinematic Motion Curves */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-cinematic);
  --transition-smooth: 0.35s var(--ease-cinematic);

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 10px 30px -5px rgba(37, 99, 235, 0.28);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Multi-Script Font Stack for All 11 Indian Languages */
  --font-heading: 'Plus Jakarta Sans', 'Inter', 'Noto Sans Devanagari', 'Noto Sans Bengali', 'Noto Sans Gujarati', 'Noto Sans Gurmukhi', 'Noto Sans Oriya', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Malayalam', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans Devanagari', 'Noto Sans Bengali', 'Noto Sans Gujarati', 'Noto Sans Gurmukhi', 'Noto Sans Oriya', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Malayalam', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   1. BASE RESET & MULTI-SCRIPT SAFE TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (min-width: 1024px) {
  html {
    font-size: 14.5px; /* Compact, crisp SaaS density on PC/Desktop */
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.28;
  letter-spacing: -0.015em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   2. RESPONSIVE CONTAINERS & UTILITY GRIDS (100% ZOOM SAFE)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.section-pad {
  padding-top: 52px;
  padding-bottom: 52px;
}

@media (min-width: 1024px) {
  .section-pad {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-100);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: clamp(0.92rem, 1.3vw, 1rem);
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   3. TOP ADMIN PROMO BANNER
   ========================================================================== */
.top-promo-bar {
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-900) 100%);
  color: var(--text-inverse);
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 7px 34px 7px 12px;
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-promo-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.promo-badge {
  background: var(--amber-500);
  color: var(--navy-950);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.promo-link {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.promo-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  cursor: pointer;
}

/* ==========================================================================
   4. GLOBAL STICKY NAVBAR, MEGA-MENU, ACCOUNT DROPDOWN & 11-LANGUAGE SELECTOR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.navbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary-600), var(--navy-900));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.nav-menu-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .nav-menu-desktop {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  background: transparent;
  border: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

/* Desktop Mega-Dropdown */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  max-height: 78vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 65;
}

.nav-item:hover .mega-dropdown,
.nav-item:focus-within .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mega-link:hover {
  background: var(--bg-muted);
}

.mega-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.mega-title {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.mega-desc {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Header Right Actions + 11-Language Selector + Account Dropdown */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switcher-wrap {
  position: relative;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-muted);
  border: 1px solid var(--border-medium);
  color: var(--text-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 24px 6px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  max-width: 118px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--primary-600);
  background-color: var(--bg-surface);
  outline: none;
}

.desktop-auth-btns {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .desktop-auth-btns {
    display: flex;
  }
}

/* Top-Right Account Profile Dropdown (gstproseller.com style) */
.account-menu-wrap {
  position: relative;
}

.account-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-heading);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  max-width: 195px;
}

.account-trigger-btn:hover {
  border-color: var(--primary-600);
  background: var(--primary-50);
}

.account-avatar-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-name-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 268px;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 85;
  display: none;
}

.account-dropdown-panel.open {
  display: block;
}

.acct-profile-head {
  padding: 8px 10px 10px 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 6px;
}

.acct-dropdown-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
}

.acct-dropdown-link:hover {
  background: var(--bg-muted);
  color: var(--primary-600);
}

.acct-dropdown-link.danger {
  color: var(--danger-600);
  border-top: 1px solid var(--border-light);
  margin-top: 6px;
  padding-top: 10px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-heading);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Slide-Over Drawer (5G Phone Friendly) */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 25, 0.55);
  backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 350px);
  height: 100dvh;
  background: var(--bg-surface);
  z-index: 90;
  padding: 18px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-group {
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

.mobile-nav-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-heading);
  border-radius: var(--radius-sm);
}

.mobile-nav-link:active {
  background: var(--primary-50);
  color: var(--primary-600);
}

/* ==========================================================================
   5. BUTTON SYSTEM (COMPACT DESKTOP + TOUCH-FRIENDLY MOBILE)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .btn {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 0.86rem;
  }
  .btn-lg {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 0.94rem;
  }
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary-600);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--primary-500);
}

.btn-navy {
  background: var(--navy-900);
  color: #ffffff;
}

.btn-navy:hover {
  background: var(--navy-800);
}

.btn-emerald {
  background: var(--emerald-600);
  color: #ffffff;
}

.btn-emerald:hover {
  background: var(--emerald-500);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-heading);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--primary-600);
  color: var(--primary-600);
  background: var(--primary-50);
}

.btn-danger {
  background: var(--danger-600);
  color: #ffffff;
}

.btn-sm {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   6. HERO SECTION & TRUST METRICS (COMPACT DESKTOP PROPORTION)
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at 85% 15%, #dbeafe 0%, #f8fafc 48%, #ffffff 100%);
  padding: 40px 0 48px 0;
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 48px 0 54px 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
  }
}

.hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--navy-900);
}

.hero-highlight {
  color: var(--primary-600);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.25vw, 1.02rem);
  color: var(--text-body);
  margin-bottom: 22px;
  max-width: 580px;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 540px) {
  .hero-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-visual-card {
  background: var(--navy-900);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   7. CLASSIC CINEMATIC CARDS (SLEEK DESKTOP DENSITY)
   ========================================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

@media (min-width: 1024px) {
  .card {
    padding: 18px 20px;
  }
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.icon-box.emerald {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.icon-box.amber {
  background: var(--amber-50);
  color: var(--amber-600);
}

/* ==========================================================================
   8. DYNAMIC PRICING & CLIENT COUNTER UI (100% ZOOM SAFE)
   ========================================================================== */
.pricing-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.segmented-tabs {
  display: inline-flex;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  max-width: 100%;
  overflow-x: auto;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary-600);
  box-shadow: var(--shadow-xs);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border: 2px solid var(--primary-600);
  box-shadow: var(--shadow-md);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--primary-600);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.price-figure {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 10px 0 4px 0;
}

.price-tax-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.client-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 14px;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.feature-checklist {
  list-style: none;
  margin: 14px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  color: var(--emerald-600);
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   9. FORMS, INPUTS & RED-MARK VALIDATION HIGHLIGHTS
   ========================================================================== */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 16px;
  color: var(--text-heading);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

@media (min-width: 1024px) {
  .form-control {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* Red Mark Validation Highlights (Wrong File, Invalid GSTIN, Invalid UTR) */
.input-invalid {
  border: 2px solid var(--danger-600) !important;
  background-color: var(--danger-50) !important;
  color: #7f1d1d !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

.dropzone-invalid {
  border: 2.5px dashed var(--danger-600) !important;
  background-color: var(--danger-50) !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
}

.field-error-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--danger-600);
  line-height: 1.4;
}

/* Android Mobile-Safe Native File Input Overlay */
.upload-dropzone-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.native-file-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-body);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary-600);
  flex-shrink: 0;
}

.alert-box {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.alert-error {
  background: var(--danger-50);
  color: var(--danger-600);
  border: 1.5px solid #fca5a5;
}

.alert-success {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1.5px solid #6ee7b7;
}

/* ==========================================================================
   10. MODALS, 3-TIER LOCK POPUP & 16:9 VIDEO POPUP
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 25, 0.72);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-smooth);
  max-height: 92dvh;
  overflow-y: auto;
}

.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-body {
  padding: 20px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
  font-size: 1.15rem;
  cursor: pointer;
}

.video-aspect-16-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-aspect-16-9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   11. SAAS DASHBOARD, LEFT SIDEBAR & 5-STEP WIZARD
   (ZERO TALL WHITE BOX ON MOBILE, TABLET & CHROME DESKTOP SITE MODE)
   ========================================================================== */
.app-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100dvh - 62px);
}

.app-sidebar {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-body);
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-600);
}

@media (min-width: 1024px) {
  .app-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: start;
  }

  .app-sidebar {
    position: sticky;
    top: 62px;
    max-height: calc(100dvh - 62px) !important;
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
    border-right: 1px solid var(--border-light);
    padding: 16px 12px;
    overflow-x: visible;
    overflow-y: auto;
  }

  .sidebar-link {
    width: 100%;
    border-radius: var(--radius-sm);
    border-color: transparent;
    background: transparent;
    padding: 8px 11px;
    font-size: 0.84rem;
    justify-content: flex-start;
  }

  .sidebar-link:hover,
  .sidebar-link.active {
    background: var(--primary-50);
    border-color: var(--primary-100);
    color: var(--primary-600);
  }
}

.app-main {
  width: 100%;
  min-width: 0;
  padding: 16px 14px 44px 14px;
  position: relative;
}

@media (min-width: 768px) {
  .app-main {
    padding: 20px 24px 52px 24px;
  }
}

.wizard-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .wizard-bar {
    grid-template-columns: repeat(5, 1fr);
  }
}

.wizard-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 11px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-muted);
}

.wizard-step.active {
  border-color: var(--primary-600);
  background: var(--primary-50);
  color: var(--primary-600);
}

.wizard-step.done {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.upload-dropzone {
  position: relative;
  overflow: hidden;
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.upload-dropzone:hover {
  border-color: var(--primary-600);
  background: var(--primary-50);
}

/* ==========================================================================
   12. TABLES & STATUS BADGES (MOBILE HORIZONTAL SCROLL)
   ========================================================================== */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 620px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--bg-muted);
  font-weight: 700;
  color: var(--text-heading);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-active {
  background: var(--emerald-100);
  color: var(--emerald-600);
}

.badge-trial {
  background: var(--amber-100);
  color: var(--amber-600);
}

.badge-expired {
  background: var(--danger-100);
  color: var(--danger-600);
}

/* ==========================================================================
   13. GLOBAL FOOTER & FLOATING WHATSAPP
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 44px 0 24px 0;
  margin-top: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-heading {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.floating-whatsapp {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-md);
  z-index: 70;
  transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: scale(1.07);
}

/* ==========================================================================
   14. UNIVERSAL MOBILE + DESKTOP AUTO-FIT SAFEGUARDS FOR ALL SITE PAGES
   ========================================================================== */
main, section, article, aside, header, footer {
  max-width: 100%;
}

.card, .card-box, .kpi-card, .kpi-tile, .stat-card-box, .pricing-card, .modal-box {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

table {
  max-width: 100%;
}

@media (max-width: 540px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 9px 13px;
  }

  .top-header, .tabs-bar, .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-btn-group, .tab-btns {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .pill-nav-link, .sub-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
