/* ============================================================================
   MUNIM JI HQ (मुनीम जी HQ) — MASTER DESIGN SYSTEM (assets/css/theme.css)
   100% Reference UI Clone (Light + Dark Mode, Cartoon SVG Icon Boxes,
   Bouncy Micro-Animations, Window Report Frame & Full Mobile/Desktop Auto-Fit)
   ============================================================================ */

@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;900&display=swap');

/* ============================================================================
   1. LIGHT MODE VARIABLES (DEFAULT — EXACT REFERENCE PALETTE)
   ============================================================================ */
:root {
  /* Royal Purple Primary Brand (Matches Reference UI) */
  --purple-950: #1e1035;
  --purple-900: #2e1065;
  --purple-800: #4c1d95;
  --purple-700: #5b21b6;
  --purple-600: #6d28d9;
  --purple-500: #7c3aed;
  --purple-400: #a78bfa;
  --purple-100: #ede9fe;
  --purple-50: #f5f3ff;

  /* Compatibility Aliases for Existing Modules */
  --navy-950: #0f172a;
  --navy-900: #1e1b4b;
  --navy-800: #312e81;
  --navy-700: #4338ca;
  --primary-600: #6d28d9;
  --primary-500: #7c3aed;
  --primary-100: #ede9fe;
  --primary-50: #f5f3ff;

  /* Accent Colors */
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

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

  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --rose-600: #e11d48;
  --rose-100: #ffe4e6;
  --rose-50: #fff1f2;

  --cyan-600: #0891b2;
  --cyan-100: #cffafe;
  --cyan-50: #ecfeff;

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

  /* Light Surfaces & Borders */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-header: rgba(255, 255, 255, 0.92);
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

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

  /* Smooth Spring & Bouncy Animation Curves */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-cinematic);
  --transition-bounce: 0.35s var(--ease-spring);

  /* 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 26px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 42px -12px rgba(109, 40, 217, 0.16);
  --shadow-purple: 0 10px 25px -5px rgba(109, 40, 217, 0.35);

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

  /* Multi-Script Font Stack */
  --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;
}

/* ============================================================================
   2. DARK MODE VARIABLES ([data-theme="dark"] TOGGLE)
   ============================================================================ */
[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-surface: #111827;
  --bg-muted: #1e293b;
  --bg-header: rgba(17, 24, 39, 0.92);
  --border-light: #1f2937;
  --border-medium: #374151;

  --text-heading: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;

  --primary-50: rgba(124, 58, 237, 0.16);
  --primary-100: rgba(124, 58, 237, 0.28);
  --purple-50: rgba(124, 58, 237, 0.16);
  --purple-100: rgba(124, 58, 237, 0.28);

  --emerald-50: rgba(16, 185, 129, 0.15);
  --amber-50: rgba(245, 158, 11, 0.15);
  --blue-50: rgba(59, 130, 246, 0.15);
  --rose-50: rgba(244, 63, 94, 0.15);
  --cyan-50: rgba(6, 182, 212, 0.15);
  --danger-50: rgba(239, 68, 68, 0.15);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 22px 46px rgba(0, 0, 0, 0.65);
}

/* ============================================================================
   3. BASE RESET & 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: 15px;
  }
}

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;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

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

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;
}

.hidden {
  display: none !important;
}

/* ============================================================================
   4. KEYFRAME ANIMATIONS (MASCOT FLOAT, CARTOON ICON BOUNCE, PULSE)
   ============================================================================ */
@keyframes mascotFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes iconWiggleBounce {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.16) rotate(-7deg); }
  70% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1.08) rotate(0deg); }
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(109, 40, 217, 0); }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: mascotFloat 4.2s ease-in-out infinite;
}

.animate-fade-up {
  animation: fadeSlideUp 0.45s var(--ease-cinematic) both;
}

/* ============================================================================
   5. RESPONSIVE CONTAINERS & GRIDS (MOBILE / TABLET / LAPTOP / DESKTOP)
   ============================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

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

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

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

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-50);
  color: var(--purple-600);
  border: 1px solid var(--purple-100);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 680px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

/* ============================================================================
   6. TOP PURPLE ANNOUNCEMENT BAR & STICKY NAVBAR
   ============================================================================ */
.top-promo-bar {
  background: linear-gradient(90deg, #5b21b6 0%, #6d28d9 50%, #7c3aed 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  text-align: center;
  position: relative;
  z-index: 60;
}

.top-promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-promo-pill {
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.navbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.28);
  transition: transform var(--transition-bounce);
}

.brand-logo-link:hover .brand-logo-badge {
  transform: scale(1.08) rotate(-4deg);
}

.brand-title-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name-en {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.brand-name-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple-600);
}

.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

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

.nav-link-item {
  padding: 8px 13px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

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

.nav-actions-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all var(--transition-bounce);
}

.theme-toggle-btn:hover {
  border-color: var(--purple-500);
  transform: scale(1.07);
}

.lang-select-pill {
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

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

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

.mobile-drawer {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================================
   7. BUTTONS (ROYAL PURPLE, OUTLINE, EMERALD & PILLS)
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-bounce);
  text-decoration: none;
  line-height: 1.2;
}

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

.btn-sm {
  font-size: 0.82rem;
  padding: 7px 13px;
  border-radius: 10px;
}

.btn-lg {
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.36);
}

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

.btn-outline:hover {
  border-color: var(--purple-600);
  color: var(--purple-600);
  background: var(--purple-50);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}

.btn-navy {
  background: #1e1b4b;
  color: #ffffff;
}

.btn-navy:hover {
  background: #312e81;
  transform: translateY(-2px);
}

/* ============================================================================
   8. CARDS & PASTEL CARTOON SVG ICON BOXES (EXACT REFERENCE STYLE)
   ============================================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card-hover:hover {
  transform: translateY(-5px);
  border-color: var(--purple-400);
  box-shadow: var(--shadow-lg);
}

/* Cartoon Icon Container (Matches Reference Video Icons in Front of Every Tool) */
.cartoon-icon-box,
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  transition: transform var(--transition-bounce);
}

.cartoon-icon-box svg,
.icon-box svg {
  width: 30px;
  height: 30px;
}

.card-hover:hover .cartoon-icon-box,
.card-hover:hover .icon-box,
.tool-item-card:hover .cartoon-icon-box {
  animation: iconWiggleBounce 0.55s var(--ease-spring) forwards;
}

/* Pastel Variants for Cartoon Icons */
.pastel-purple { background: #f3e8ff; border-color: #e9d5ff; }
.pastel-blue   { background: #dbeafe; border-color: #bfdbfe; }
.pastel-green  { background: #dcfce7; border-color: #bbf7d0; }
.pastel-amber  { background: #fef3c7; border-color: #fde68a; }
.pastel-rose   { background: #ffe4e6; border-color: #fecdd3; }
.pastel-cyan   { background: #cffafe; border-color: #a5f3fc; }
.pastel-indigo { background: #e0e7ff; border-color: #c7d2fe; }
.pastel-orange { background: #ffedd5; border-color: #fed7aa; }

[data-theme="dark"] .pastel-purple { background: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.35); }
[data-theme="dark"] .pastel-blue   { background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.35); }
[data-theme="dark"] .pastel-green  { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.35); }
[data-theme="dark"] .pastel-amber  { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.35); }
[data-theme="dark"] .pastel-rose   { background: rgba(244, 63, 94, 0.18); border-color: rgba(244, 63, 94, 0.35); }
[data-theme="dark"] .pastel-cyan   { background: rgba(6, 182, 212, 0.18); border-color: rgba(6, 182, 212, 0.35); }
[data-theme="dark"] .pastel-indigo { background: rgba(99, 102, 241, 0.18); border-color: rgba(99, 102, 241, 0.35); }
[data-theme="dark"] .pastel-orange { background: rgba(249, 115, 22, 0.18); border-color: rgba(249, 115, 22, 0.35); }

/* ============================================================================
   9. HERO SLIDER SECTION & 3D MASCOT STAGE
   ============================================================================ */
.hero-section {
  background: radial-gradient(circle at 82% 20%, rgba(124, 58, 237, 0.13) 0%, transparent 52%),
              radial-gradient(circle at 12% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
              var(--bg-surface);
  padding: 44px 0 56px 0;
  border-bottom: 1px solid var(--border-light);
}

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

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 44px;
  }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.14;
  margin-bottom: 16px;
}

.hero-highlight {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.9vw, 1.12rem);
  color: var(--text-body);
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: var(--border-medium);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: 28px;
  background: var(--purple-600);
}

/* ============================================================================
   10. FULL-WIDTH ROYAL PURPLE STATS BAND (EXACT REFERENCE BAND)
   ============================================================================ */
.purple-stats-band {
  background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 55%, #7c3aed 100%);
  color: #ffffff;
  padding: 36px 0;
}

.purple-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

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

.p-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
}

.p-stat-lbl {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ede9fe;
  margin-top: 4px;
}

/* ============================================================================
   11. BROWSER WINDOW FRAME (LIVE DASHBOARD & SAMPLE REPORT PREVIEW)
   ============================================================================ */
.browser-window-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.browser-window-bar {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.w-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #f59e0b; }
.w-dot.green { background: #10b981; }

.window-url-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mp-tabs-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  scrollbar-width: none;
}

.mp-tabs-scroller::-webkit-scrollbar {
  display: none;
}

.mp-pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-body);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.mp-pill-tab:hover {
  border-color: var(--purple-500);
}

.mp-pill-tab.active {
  background: var(--purple-600);
  color: #ffffff;
  border-color: var(--purple-600);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

/* ============================================================================
   12. FORMS, INPUTS, TABLES & BADGES
   ============================================================================ */
.form-group {
  margin-bottom: 16px;
}

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

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-heading);
  font-size: 0.94rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

.form-control.input-invalid {
  border-color: var(--danger-600) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-active,
.badge-free {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid var(--emerald-100);
}

.badge-trial,
.badge-purple {
  background: var(--purple-50);
  color: var(--purple-600);
  border: 1px solid var(--purple-100);
}

.alert-box {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--danger-50);
  border: 1px solid var(--danger-100);
  color: var(--danger-600);
}

.alert-success {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-600);
}

/* ============================================================================
   13. SEGMENTED TABS & UPLOAD DROPZONES (FOR ALL 32+ TOOLS)
   ============================================================================ */
.segmented-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-muted);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.upload-dropzone {
  border: 2px dashed var(--purple-400);
  background: var(--purple-50);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--purple-600);
  background: var(--purple-100);
  transform: scale(1.005);
}

/* ============================================================================
   14. DASHBOARD SIDEBAR LAYOUT
   ============================================================================ */
.app-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100dvh - 110px);
}

@media (min-width: 960px) {
  .app-layout {
    grid-template-columns: 256px 1fr;
  }
}

.app-sidebar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

@media (min-width: 960px) {
  .app-sidebar {
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid var(--border-light);
    padding: 18px 14px;
  }
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

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

.app-main {
  padding: clamp(14px, 2.5vw, 28px);
  min-width: 0;
}

/* ============================================================================
   15. FLOATING GREEN "GET HELP!" WHATSAPP PILL & COOKIE BAR + MODALS
   ============================================================================ */
.floating-wa-pill {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.36);
  transition: transform var(--transition-bounce);
}

.floating-wa-pill:hover {
  transform: translateY(-3px) scale(1.04);
  color: #ffffff;
}

.cookie-consent-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 780px;
  margin: 0 auto;
  z-index: 65;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.modal-close {
  background: var(--bg-muted);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-heading);
}

.modal-body {
  padding: 20px;
}

.video-aspect-16-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

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

/* ============================================================================
   16. FOOTER
   ============================================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 48px 0 28px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

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

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--purple-600);
}

.footer-bottom-bar {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
