/* ==========================================================================
   MAA LAXMI CSC CENTER - UI/UX PRO MAX DESIGN SYSTEM
   Professional Government & Digital Citizen Services / Mobile Hub CSS
   WCAG 2.1 AA Compliant | Glassmorphism | Bento Grid | Micro-Interactions
   ========================================================================== */

:root {
  /* Brand Color Tokens */
  --primary: #1e3a8a;          /* Deep Royal Navy */
  --primary-hover: #172554;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --primary-rgb: 30, 58, 138;

  --accent: #0284c7;           /* Sky Tech Accent */
  --accent-hover: #0369a1;
  --accent-light: #f0f9ff;
  --accent-border: #bae6fd;
  --accent-glow: rgba(2, 132, 199, 0.25);

  --saffron: #f59e0b;          /* Indian Saffron / Amber */
  --saffron-dark: #d97706;
  --saffron-light: #fffbeb;
  --saffron-border: #fde68a;
  --saffron-glow: rgba(245, 158, 11, 0.3);

  --emerald: #10b981;          /* Growth / Success Emerald */
  --emerald-dark: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --rose: #ef4444;             /* Alert / Danger Rose */
  --rose-dark: #dc2626;
  --rose-light: #fef2f2;
  --rose-border: #fecaca;

  /* Modern Gradient Tokens */
  --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --gradient-primary-hover: linear-gradient(135deg, #172554 0%, #1d4ed8 100%);
  --gradient-saffron: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-indigo: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --gradient-rose: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-dark: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.1) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.08) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);

  /* Surfaces & Canvas */
  --dark: #0f172a;             /* Deep Slate 900 */
  --dark-surface: #1e293b;     /* Slate 800 */
  --dark-border: rgba(255, 255, 255, 0.12);
  
  --bg: #f8fafc;               /* Crisp Neutral Canvas */
  --bg-gradient: radial-gradient(circle at 50% -20%, rgba(30, 58, 138, 0.1) 0%, rgba(245, 158, 11, 0.04) 40%, rgba(248, 250, 252, 0) 70%);
  --card: #ffffff;
  --card-elevated: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-glass: rgba(226, 232, 240, 0.85);

  /* Typography & Contrast */
  --text-main: #0f172a;        /* High Contrast Slate 900 (14.2:1 ratio) */
  --text-body: #1e293b;        /* Slate 800 */
  --text-muted: #64748b;       /* Slate 500 (Accessible 4.6:1 ratio on #fff) */
  --text-dim: #94a3b8;

  /* Dimensions & Spacing */
  --sidebar-w: 260px;
  --header-h: 70px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY SYSTEM
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: #0f172a;
  background-color: #f8fafc;
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 0;
}

p {
  margin-top: 0;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

.font-display {
  font-family: 'Outfit', sans-serif !important;
}

/* ==========================================================================
   GRAND HOMEPAGE HERO PRO & COMPONENTS
   ========================================================================== */

.hero-pro {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 50% -12%, rgba(30, 58, 138, 0.14) 0%, rgba(37, 99, 235, 0.06) 45%, transparent 75%),
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 12% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(rgba(148, 163, 184, 0.22) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px;
  padding: 5rem 1.5rem 3.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  text-align: center;
}

/* Ambient Floating Aurora Mesh in Hero */
.hero-pro::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 100vw;
  height: 480px;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.16) 0%, rgba(56, 189, 248, 0.10) 35%, rgba(245, 158, 11, 0.06) 65%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: heroAuroraFloat 10s ease-in-out infinite alternate;
}

@keyframes heroAuroraFloat {
  0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateX(-47%) translateY(28px) scale(1.08); opacity: 1; }
  100% { transform: translateX(-53%) translateY(-18px) scale(0.95); opacity: 0.8; }
}

.hero-pro::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, transparent 40%, rgba(248, 250, 252, 0.8) 100%);
}

.hero-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  padding: 7px 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e3a8a;
  box-shadow: 0 4px 18px -2px rgba(16, 185, 129, 0.18);
  margin-bottom: 1.6rem;
  transition: all 0.25s ease;
}

.hero-pro-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.6);
}

.hero-badge-beacon {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-beacon-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.75;
  animation: beaconPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 8px #10b981;
}

@keyframes beaconPing {
  0% { transform: scale(1); opacity: 0.9; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero-pro-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: #0f172a;
  max-width: 960px;
  margin: 0 auto 1.35rem;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 25%, #0284c7 45%, #ea580c 70%, #2563eb 90%, #1e3a8a 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmerSweep 7s ease-in-out infinite;
  filter: drop-shadow(0 2px 14px rgba(37, 99, 235, 0.16));
}

@keyframes textShimmerSweep {
  0%, 15% { background-position: 0% 50%; }
  50%, 65% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-title-sub {
  display: inline-block;
  margin-top: 0.2rem;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.amp-symbol {
  color: #f59e0b;
  font-weight: 800;
  margin-right: 2px;
}

.hero-pro-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #475569;
  max-width: 780px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
  font-weight: 500;
}

/* Hero Smart Search Box & Interactive Dropdown */
.hero-search-wrapper {
  max-width: 700px;
  margin: 0 auto 1.85rem;
  position: relative;
  z-index: 30;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 18px;
  padding: 6px 8px 6px 18px;
  box-shadow: 0 16px 36px -8px rgba(30, 58, 138, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-search-bar:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 20px 48px -10px rgba(37, 99, 235, 0.22), 0 0 0 4px rgba(59, 130, 246, 0.18);
  transform: translateY(-2px);
}

.hero-search-icon-box {
  color: #3b82f6;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.65rem;
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 600;
  background: transparent;
  padding: 8px 6px;
  min-width: 0;
}

.hero-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.hero-search-clear {
  display: none;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  transition: color 0.15s;
}

.hero-search-clear:hover {
  color: #475569;
}

.hero-search-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
  transition: all 0.25s ease;
}

.hero-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.4);
}

/* Auto-Suggest Dropdown */
.hero-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  text-align: left;
  overflow: hidden;
  z-index: 100;
  animation: modalSpringIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-search-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-search-results-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.35rem 0;
}

.hero-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

.hero-search-item:last-child {
  border-bottom: none;
}

.hero-search-item:hover, .hero-search-item.active {
  background: #eff6ff;
}

.hero-search-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.hero-search-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.hero-search-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.hero-search-item-cat {
  font-size: 0.72rem;
  color: #64748b;
}

.hero-search-item-fee {
  font-size: 0.8rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Quick Search Shortcuts */
.hero-shortcuts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 2;
}

.hero-shortcuts-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.2rem;
}

.hero-shortcut-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-shortcut-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.1);
}

.chip-blue:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.chip-amber:hover { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.chip-emerald:hover { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.chip-teal:hover { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }
.chip-rose:hover { background: #fdf2f8; border-color: #fbcfe8; color: #be185d; }
.chip-indigo:hover { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }

/* Primary CTA Action Strip */
.hero-cta-strip {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff !important;
  border-radius: 14px;
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 24px -4px rgba(30, 58, 138, 0.45);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -4px rgba(30, 58, 138, 0.55);
}

.btn-hero-secondary {
  background: #0b1329;
  color: #ffffff !important;
  border: 1.5px solid #334155;
  border-radius: 14px;
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 24px -4px rgba(11, 19, 41, 0.3);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 14px 30px -4px rgba(245, 158, 11, 0.25);
}

.beacon-pulse-amber {
  width: 9px;
  height: 9px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseLive 1.5s infinite;
}

.badge-live-amber {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  letter-spacing: 0.05em;
}

.btn-hero-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border-radius: 14px;
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.45);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -4px rgba(16, 185, 129, 0.55);
}

/* 4 Trust Metrics Pro Max Bento Cards */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-bento-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hero-bento-card:hover {
  transform: translateY(-6px);
}

.bento-accent-line {
  height: 4px;
  width: 100%;
}

.bento-card-blue .bento-accent-line { background: linear-gradient(90deg, #1e3a8a, #3b82f6); }
.bento-card-blue:hover { box-shadow: 0 18px 36px -8px rgba(30, 58, 138, 0.18); border-color: #bfdbfe; }

.bento-card-emerald .bento-accent-line { background: linear-gradient(90deg, #059669, #34d399); }
.bento-card-emerald:hover { box-shadow: 0 18px 36px -8px rgba(16, 185, 129, 0.18); border-color: #a7f3d0; }

.bento-card-amber .bento-accent-line { background: linear-gradient(90deg, #d97706, #fbbf24); }
.bento-card-amber:hover { box-shadow: 0 18px 36px -8px rgba(245, 158, 11, 0.18); border-color: #fde68a; }

.bento-card-rose .bento-accent-line { background: linear-gradient(90deg, #db2777, #f472b6); }
.bento-card-rose:hover { box-shadow: 0 18px 36px -8px rgba(219, 39, 119, 0.18); border-color: #fbcfe8; }

.bento-card-body {
  padding: 1.4rem 1.15rem 1.25rem;
}

.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-bento-card:hover .bento-icon-wrapper {
  transform: scale(1.1) rotate(4deg);
}

.icon-blue { background: #eff6ff; color: #1d4ed8; }
.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-amber { background: #fffbeb; color: #d97706; }
.icon-rose { background: #fdf2f8; color: #db2777; }

.bento-metric-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.25rem 0 0.15rem;
}

.bento-metric-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.bento-metric-sub {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-pro {
    padding: 3.5rem 1rem 2.5rem;
  }
  .hero-pro-title {
    font-size: 2.15rem;
  }
  .hero-search-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 8px 10px;
  }
  .hero-search-btn {
    width: 100%;
    justify-content: center;
  }
  .hero-cta-strip {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .btn-hero-primary, .btn-hero-secondary, .btn-hero-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .hero-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* ==========================================================================
   PUBLIC SITE ELEVATED HERO & COMPONENTS
   ========================================================================== */

.clean-hero {
  background: #ffffff;
  background-image: radial-gradient(circle at 50% -10%, rgba(30, 58, 138, 0.12) 0%, rgba(245, 158, 11, 0.05) 40%, rgba(248, 250, 252, 0) 75%);
  padding: 5rem 1.5rem 3.75rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.clean-hero::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(245, 158, 11, 0.06) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.clean-hero-page {
  background: #ffffff;
  background-image: radial-gradient(circle at 50% -20%, rgba(30, 58, 138, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
  padding: 3.75rem 1.5rem 2.75rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.clean-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(239, 246, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  border: 1px solid rgba(191, 219, 254, 0.9);
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.35rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.06);
}

.clean-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28);
  animation: pulseLive 2s infinite;
}

.clean-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 860px;
  margin: 0 auto 1.35rem;
  position: relative;
  z-index: 1;
}

.clean-title span {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clean-subtitle {
  font-size: 1.125rem;
  color: #475569;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Interactive Quick Search Box */
.clean-search-box {
  max-width: 650px;
  margin: 0 auto 2.25rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #cbd5e1;
  padding: 0.45rem 0.45rem 0.45rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.clean-search-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.16), 0 0 0 3px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.clean-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  min-height: 42px;
}

.clean-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* Card System */
.clean-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  position: relative;
  overflow: hidden;
}

.clean-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  border-color: #bfdbfe;
}

.clean-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease;
}

.clean-card:hover::after {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #f59e0b 100%);
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.clean-card:hover .category-icon {
  transform: scale(1.1) rotate(4deg);
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.75rem 1.5rem;
}

.section-header {
  margin-bottom: 2.35rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.section-header p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Filter Pills & Chips */
.chip, .filter-pill {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 15px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chip:hover, .filter-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.chip.active, .filter-pill.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

/* ==========================================================================
   BUTTONS & ACTIONS (ACCESSIBLE 44PX TARGETS)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.2;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96);
}

/* Button Shimmer Sweep Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: btnShimmerSweep 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes btnShimmerSweep {
  0%, 60% { left: -150%; }
  85%, 100% { left: 180%; }
}

/* Icon Micro-Shift on Hover */
.btn i.fa-arrow-right,
.btn-hero-primary i.fa-arrow-right {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover i.fa-arrow-right,
.btn-hero-primary:hover i.fa-arrow-right {
  transform: translateX(4px);
}

/* Tactile Click Ripple Wave */
.btn-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: btnRippleAnim 0.65s cubic-bezier(0, 0, 0.2, 1);
  pointer-events: none;
}
@keyframes btnRippleAnim {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: var(--gradient-primary-hover);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-saffron {
  background: var(--gradient-saffron);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28);
  font-weight: 800;
}
.btn-saffron:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--gradient-emerald);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
}
.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.38);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-danger {
  background: var(--gradient-rose);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: var(--text-body);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}




/* ==========================================================================
   TABLES & DATA SYSTEM
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

table.data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

table.data-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-body);
}

table.data-table tbody tr {
  transition: background-color 0.15s ease;
}

table.data-table tbody tr:hover {
  background-color: #f8fafc;
}

table.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   FORM CONTROLS & ACCESSIBLE INPUTS
   ========================================================================== */

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

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

.form-control, .form-select {
  width: 100%;
  padding: 0.65rem 0.95rem;
  min-height: 42px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background-color: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.14);
}

/* Modal System */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  min-width: 300px;
  max-width: 420px;
  padding: 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
}

.toast.toast-success { border-left-color: var(--emerald); }
.toast.toast-error   { border-left-color: var(--rose); }
.toast.toast-warning { border-left-color: var(--saffron); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* POS Quick Billing Grid */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .pos-layout {
    grid-template-columns: 1fr;
  }
}

/* Printable Invoice Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-area, .printable-area * {
    visibility: visible;
  }
  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
}

.thermal-receipt {
  width: 80mm;
  max-width: 80mm;
  padding: 10px;
  background: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #000000;
  margin: 0 auto;
  line-height: 1.4;
}

.thermal-receipt.size-58mm {
  width: 58mm;
  max-width: 58mm;
  font-size: 10px;
}

/* ==========================================================================
   ADMIN LAYOUT & DASHBOARD
   ========================================================================== */

.admin-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

.admin-sidebar {
  width: var(--sidebar-w, 260px);
  min-width: var(--sidebar-w, 260px);
  background: #090e1a;
  background: linear-gradient(180deg, #070b14 0%, #0d1527 50%, #080d1a 100%);
  color: #f8fafc;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, width 0.28s ease;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
}

.admin-main {
  margin-left: var(--sidebar-w, 260px);
  width: calc(100% - var(--sidebar-w, 260px));
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg);
}

/* Desktop Collapsed Sidebar State */
body.sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%) !important;
  box-shadow: none !important;
}

body.sidebar-collapsed .admin-main {
  margin-left: 0 !important;
  width: 100% !important;
}

.admin-topbar {
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
}

.admin-content {
  padding: 1.75rem;
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Card System for Admin */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.card-hover:hover {
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.stat-card {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -2px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card.accent-saffron::before { background: var(--gradient-saffron); }
.stat-card.accent-emerald::before { background: var(--gradient-emerald); }
.stat-card.accent-rose::before    { background: var(--gradient-rose); }
.stat-card.accent-indigo::before  { background: var(--gradient-indigo); }
.stat-card.accent-sky::before     { background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%); }

/* Professional Dashboard Stat Card */
.stat-card-pro {
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card-pro:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -2px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.stat-watermark {
  position: absolute;
  right: -6px;
  bottom: -10px;
  font-size: 4.75rem;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

/* Dashboard Banner & Grids */
.dashboard-banner {
  padding: clamp(1.2rem, 3vw, 1.85rem) clamp(1rem, 3vw, 2.25rem) !important;
}

.dashboard-banner-title {
  font-size: clamp(1.25rem, 3.5vw, 1.95rem) !important;
  font-weight: 800;
}

.dashboard-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.dashboard-filter-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.dashboard-filter-form select,
.dashboard-filter-form input[type="date"] {
  min-width: 0;
  flex: 1 1 110px;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dashboard-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-tables-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}


/* ==========================================================================
   FLOATING WHATSAPP & RADAR ANIMATION
   ========================================================================== */

.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 45;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  font-size: 30px;
  animation: floatingBounce 3.6s ease-in-out infinite;
}

@keyframes floatingBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: waRadarPulse 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.floating-whatsapp::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  animation: waRadarPulse 2.4s cubic-bezier(0, 0, 0.2, 1) 0.6s infinite;
  pointer-events: none;
}

@keyframes waRadarPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  75%, 100% { transform: scale(1.6); opacity: 0; }
}

.floating-whatsapp:hover {
  transform: scale(1.15) rotate(6deg) translateY(-4px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.65), 0 0 20px rgba(37, 211, 102, 0.4);
  animation-play-state: paused;
}



/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   MULTI-DEVICE RESPONSIVE SYSTEM (MOBILE, TABLET, LAPTOP, DESKTOP)
   WCAG 2.1 AA Compliant | Fluid Typography | Touch Optimized
   ========================================================================== */

/* Utility Visibility & Layout Helpers */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-flex { display: inline-flex !important; }
.d-flex { display: flex !important; }
.w-100 { width: 100% !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

/* Desktop Defaults */
.mobile-bottom-nav { display: none !important; }
.sidebar-backdrop { display: none; }
.sidebar-close-btn { display: none !important; }

body.sidebar-open {
  overflow: hidden !important;
}

/* Fluid Hero Typography on Desktop */
@media (min-width: 1400px) {
  .admin-content {
    max-width: 1600px;
    padding: 2rem;
  }
}

/* --------------------------------------------------------------------------
   TABLETS & COMPACT DESKTOPS (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 260px;
    --header-h: 64px;
  }

  /* Admin Off-Canvas Sidebar */
  .admin-sidebar {
    transform: translateX(-100%) !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 85vw !important;
    z-index: 1050 !important;
    box-shadow: none !important; /* Zero shadow bleed when off-canvas */
  }

  .admin-sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.65) !important;
  }

  .sidebar-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* Backdrop for Sidebar Drawer */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  /* Admin Content */
  .admin-content {
    padding: 1.25rem;
    max-width: 100%;
  }

  .admin-topbar {
    padding: 0 1.25rem;
  }

  /* POS Billing Screen Layout */
  .pos-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Bento Grids / Charts Collapse */
  .dashboard-charts-grid,
  .dashboard-tables-grid,
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 0.8fr"],
  div[style*="grid-template-columns: 1.15fr 0.85fr"],
  div[style*="grid-template-columns: 1.1fr 0.9fr"],
  div[style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* 4-column filter forms into 2-column */
  form[style*="grid-template-columns: 2fr 1fr 1fr auto"],
  form[style*="grid-template-columns: 1.5fr 1.5fr 1fr auto"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
  }

  form[style*="grid-template-columns"] > div:last-child {
    grid-column: span 2;
  }

  /* Tablet Grids 2-column layout */
  .sarkari-bulletin-grid,
  .category-cards-grid,
  .featured-services-grid,
  .popular-portals-grid,
  .services-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.15rem !important;
  }
}

/* --------------------------------------------------------------------------
   STANDARD TABLETS & SMARTPHONES (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }

  /* Visibility Helpers */
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-inline { display: inline !important; }
  .d-md-flex { display: flex !important; }

  /* Topbar Compact Mode */
  .admin-topbar {
    padding: 0.5rem 0.85rem !important;
    height: auto !important;
    min-height: 56px !important;
  }

  .topbar-location-sub,
  .topbar-user-info,
  .topbar-link-web span,
  .admin-topbar .topbar-user-name,
  .admin-topbar .topbar-user-role {
    display: none !important;
  }

  .admin-topbar h2 {
    font-size: 1rem !important;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-user-link {
    padding-left: 0.5rem !important;
    border-left: none !important;
  }

  /* Padding adjustments */
  .admin-content {
    padding: 0.85rem !important;
    padding-bottom: 80px !important; /* clearance for bottom nav */
  }

  .admin-main {
    padding-bottom: 75px !important;
  }

  .card {
    padding: 1.15rem 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 1.15rem !important;
  }

  /* Collapse ALL Multi-Column Grids */
  form[style*="grid-template-columns"],
  div[style*="grid-template-columns: 2fr"],
  div[style*="grid-template-columns: 1.5fr"],
  div[style*="grid-template-columns: 1.2fr"],
  div[style*="grid-template-columns: 1.1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  form[style*="grid-template-columns"] > div:last-child {
    grid-column: span 1 !important;
  }

  .dashboard-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)) !important;
    gap: 0.85rem !important;
  }

  .stat-card-pro {
    padding: 1rem 1.05rem !important;
  }

  .stat-card-pro .font-mono {
    font-size: 1.35rem !important;
  }

  /* Flex headers wrap cleanly */
  div[style*="justify-content: space-between"] {
    gap: 0.75rem !important;
  }

  /* Data Table Mobile Touch */
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 10px !important;
    margin-bottom: 0.75rem !important;
  }

  table.data-table th,
  table.data-table td {
    padding: 0.7rem 0.8rem !important;
    font-size: 0.8125rem !important;
  }

  table.data-table th {
    font-size: 0.7rem !important;
  }

  /* Modal Mobile Optimization (Bottom Sheet Style) */
  .modal-backdrop {
    padding: 0.5rem !important;
    align-items: flex-end !important;
  }

  .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    max-height: 92vh !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    padding: 1rem 1.15rem !important;
    flex-shrink: 0;
  }

  .modal-body {
    padding: 1rem 1.15rem !important;
    max-height: calc(92vh - 130px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1;
  }

  .modal-footer {
    padding: 0.85rem 1.15rem !important;
    flex-shrink: 0;
    background: #f8fafc;
  }

  /* Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    z-index: 1030 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
    padding-bottom: max(4px, env(safe-area-inset-bottom)) !important;
  }

  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.725rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s ease;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: var(--primary);
  }

  /* Floating WhatsApp on Mobile & Tablet */
  .floating-whatsapp {
    bottom: 74px !important;
    right: 1rem !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
    z-index: 1020 !important;
  }

  /* Floating Scroll To Top sits ABOVE WhatsApp on Mobile */
  #scrollToTopBtn {
    bottom: 132px !important;
    right: 1.15rem !important;
    width: 42px !important;
    height: 42px !important;
    z-index: 1019 !important;
  }

  /* PWA Floating Banner mobile adjustment (leaves WhatsApp visible on right) */
  .pwa-floating-banner {
    bottom: 72px !important;
    left: 12px !important;
    right: 70px !important;
    max-width: calc(100vw - 84px) !important;
    z-index: 1015 !important;
  }

  /* Site Footer Mobile Clearance for Bottom Navigation */
  .site-footer,
  footer {
    padding-bottom: 95px !important;
  }

  /* Public Site Hero Sections */
  .clean-hero {
    padding: 2.25rem 1rem 1.75rem !important;
  }

  .clean-hero-page {
    padding: 2rem 1rem 1.5rem !important;
  }

  .clean-title {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.25 !important;
  }

  .clean-subtitle {
    font-size: 0.925rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
  }

  .clean-search-box {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.5rem !important;
    gap: 0.4rem !important;
  }

  .clean-search-input {
    width: 100% !important;
    padding: 0.55rem 0.75rem !important;
    min-height: 40px !important;
  }

  .clean-search-box .btn {
    width: 100% !important;
    border-radius: 8px !important;
    padding: 0.65rem !important;
    justify-content: center !important;
  }

  /* Grand Homepage Hero Pro Mobile Responsiveness */
  .hero-pro {
    padding: 2.5rem 1rem 2rem !important;
  }

  .hero-pro-badge {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
    margin-bottom: 1rem !important;
  }

  .hero-pro-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.85rem !important;
  }

  .hero-pro-subtitle {
    font-size: 0.925rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.55 !important;
  }

  .hero-search-wrapper {
    margin-bottom: 1.5rem !important;
  }

  .hero-search-bar {
    flex-direction: column !important;
    padding: 8px !important;
    border-radius: 14px !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .hero-search-bar i {
    display: none !important;
  }

  .hero-search-input {
    width: 100% !important;
    font-size: 0.95rem !important;
    padding: 6px 8px !important;
  }

  .hero-search-bar button {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
  }

  .hero-shortcuts {
    gap: 0.35rem !important;
    margin-bottom: 1.75rem !important;
  }

  .hero-shortcut-chip {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
  }

  /* Homepage Hero 3 Primary CTA Buttons Stack on Mobile */
  .hero-pro div[style*="justify-content: center"][style*="flex-wrap: wrap"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.65rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-pro div[style*="justify-content: center"][style*="flex-wrap: wrap"] a.btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.925rem !important;
  }

  /* Homepage 4 Trust Metrics Bento Grid into Sleek 2x2 on Mobile */
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .hero-metric-card {
    padding: 0.85rem 0.5rem !important;
    border-radius: 14px !important;
  }

  .hero-metric-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }

  .hero-metric-val {
    font-size: 1.25rem !important;
  }

  .hero-metric-label {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }

  /* 11D Glass Finder Section on Mobile */
  #glass-finder .glass-card-pro {
    padding: 1.35rem 1rem !important;
    border-radius: 16px !important;
  }

  #glass-finder div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }

  #glass-finder div[style*="min-width: 280px"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  #glass-finder div[style*="display: flex; gap: 0.75rem"] {
    flex-direction: column !important;
  }

  #glass-finder div[style*="display: flex; gap: 0.75rem"] button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Sarkari Vacancies Hero & Filter Bar on Mobile */
  .sarkari-hero {
    padding: 2.25rem 1rem 1.75rem !important;
  }

  .sarkari-hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  }

  .sarkari-search-bar {
    flex-direction: column !important;
    padding: 8px !important;
    border-radius: 14px !important;
    gap: 8px !important;
  }

  .sarkari-search-bar input,
  .sarkari-search-bar select,
  .sarkari-search-bar button {
    width: 100% !important;
    font-size: 0.9rem !important;
  }

  .sarkari-search-bar button {
    justify-content: center !important;
    padding: 0.75rem !important;
  }

  .sarkari-tabs-container {
    top: 56px !important;
  }

  .sarkari-tabs-inner {
    padding: 0.5rem 0.75rem !important;
    gap: 0.4rem !important;
  }

  .sarkari-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Sarkari Card Specs 2x2 Grid on Mobile */
  .sarkari-card-specs {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
  }

  /* Repair Tracker Status Form on Mobile */
  form[action="repair-status.php"] {
    flex-direction: column !important;
    padding: 8px !important;
    gap: 8px !important;
  }

  form[action="repair-status.php"] input,
  form[action="repair-status.php"] button {
    width: 100% !important;
  }

  form[action="repair-status.php"] button {
    justify-content: center !important;
    padding: 0.75rem !important;
  }

  /* Services Grid, Portals, Bulletins, Categories on Mobile */
  #serviceGrid,
  #portalsGrid,
  .sarkari-bulletin-grid,
  .category-cards-grid,
  .featured-services-grid,
  .popular-portals-grid,
  .contact-grid,
  .repair-details-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .services-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  /* Top Banner & Public Nav on Mobile */
  .top-banner {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.72rem !important;
    display: block !important;
  }

  .top-banner-content {
    justify-content: center !important;
    text-align: center !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }

  .top-banner-left {
    display: none !important;
  }

  .pub-nav-container {
    padding: 0.5rem 1rem !important;
  }

  .section-container {
    padding: 2rem 1rem !important;
  }

  /* Auto-collapse all multi-column grids on tablets and mobiles */
  div[style*="grid-template-columns: repeat(auto-fit, minmax(2"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(3"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(2"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(3"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Poster Studio Mobile Single Column */
  .poster-studio-grid,
  div[style*="grid-template-columns: 1fr 400px"],
  div[style*="grid-template-columns: 1fr 380px"],
  div[style*="grid-template-columns: 1fr 420px"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .poster-canvas-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    justify-content: center !important;
    padding-bottom: 0.5rem !important;
  }
}

/* --------------------------------------------------------------------------
   SMALL MOBILE PHONES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  /* Prevent iOS automatic zoom on focus */
  input[type="text"],
  input[type="number"],
  input[type="date"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Universal Media & Image Protection */
  img, svg, video, canvas, iframe {
    max-width: 100% !important;
    height: auto;
  }

  /* 2-column input rows stack on small phones */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(2"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Compact Card Padding for maximum content visibility */
  .card, .clean-card, .glass-card-pro {
    padding: 1rem 0.85rem !important;
    border-radius: 12px !important;
  }

  .dashboard-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }

  /* Compact Buttons on small screens */
  .btn {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.8125rem !important;
  }

  .btn-sm {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  /* Page title on small phones */
  .admin-content h1,
  .section-header h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  .admin-topbar h2 {
    max-width: 120px !important;
    font-size: 0.95rem !important;
  }

  /* OTP 6-Digit Input on Small Phones */
  .otp-input-field {
    font-size: 1.5rem !important;
    letter-spacing: 8px !important;
    padding: 0.75rem !important;
  }

  /* Toast Notification */
  #toast-container {
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: 0.75rem !important;
  }

  .toast {
    min-width: 100% !important;
    max-width: 100% !important;
    font-size: 0.8125rem !important;
  }

  /* Action buttons in table */
  table.data-table td div[style*="display: inline-flex"],
  table.data-table td div[style*="display: flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
  }

  /* Repair Tracker Stepper on Small Phones */
  .repair-stepper-label {
    font-size: 0.65rem !important;
    line-height: 1.1 !important;
  }
}

/* --------------------------------------------------------------------------
   EXTRA SMALL SCREENS (<= 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  body {
    font-size: 0.875rem !important;
  }

  .clean-hero {
    padding: 1.75rem 0.65rem 1.25rem !important;
  }

  .section-container {
    padding: 1.5rem 0.65rem !important;
  }

  .pub-nav-container {
    padding: 0.4rem 0.65rem !important;
  }

  .pub-logo img {
    height: 28px !important;
  }

  .hero-metrics-grid {
    grid-template-columns: 1fr !important;
  }

  .dashboard-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }
}

/* ==========================================================================
   ENTERPRISE MOTION, ANIMATION & VISUAL EFFECTS SYSTEM (AUTONOMOUS SKILL)
   ========================================================================== */

/* Top Scroll Reading Progress Bar */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, #f59e0b 0%, #2563eb 50%, #10b981 100%);
  z-index: 999999;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.55);
  pointer-events: none;
}

/* Floating Scroll To Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 80px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 998;
}
#scrollToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
#scrollToTopBtn:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #1e3a8a;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.35);
}
#scrollToTopBtn:hover i {
  animation: bounceArrowUp 0.6s ease infinite alternate;
}
@keyframes bounceArrowUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* High-Performance Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Delays for Grids */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Radar Live Ping Wave */
.radar-ping {
  position: relative;
}
.radar-ping::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid currentColor;
  opacity: 0.75;
  animation: radarWave 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes radarWave {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Glass Card 2.0 with Light Shimmer Sheen & Dynamic Cursor Spotlight */
.glass-card-pro {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.glass-card-pro:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(37, 99, 235, 0.2), 0 0 28px -4px rgba(37, 99, 235, 0.15);
  border-color: rgba(191, 219, 254, 0.95);
}
.glass-card-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 2;
}
.glass-card-pro:hover::before {
  left: 150%;
}

/* Dynamic Interactive Spotlight on Hover */
.glass-card-pro::after,
.hero-bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.glass-card-pro:hover::after,
.hero-bento-card:hover::after {
  opacity: 1;
}

/* Icon Micro-Bounce on Card Hover */
.glass-card-pro:hover .category-icon,
.hero-bento-card:hover .bento-icon-wrapper {
  transform: scale(1.15) rotate(5deg);
}

/* Scrolled Sticky Navbar Glass Enhancement */
.pub-nav.scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border-bottom: 1px solid rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

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

/* Floating WhatsApp Radar Wave */
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  z-index: -1;
  animation: waRadar 2.2s infinite ease-out;
}
@keyframes waRadar {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Animated Number Counter Pulse */
.counter-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Service Document Checklist Modal Styling */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}
.checklist-item:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateX(3px);
}
.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #10b981;
  cursor: pointer;
  margin-top: 2px;
}

/* ==========================================================================
   PWA & Mobile Web App Installation UI / UX Styles
   ========================================================================== */
.pwa-floating-banner {
  position: fixed;
  bottom: 80px;
  left: 20px;
  right: 20px;
  max-width: 460px;
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.pwa-floating-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.pwa-banner-card {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.pwa-banner-text {
  min-width: 0;
}
.pwa-banner-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}
.pwa-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.pwa-banner-desc {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.btn-pwa-install {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}
.btn-pwa-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.6);
}
.btn-pwa-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-pwa-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

@media (min-width: 1024px) {
  .pwa-floating-banner {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .pwa-floating-banner {
    bottom: 24px;
    left: 24px;
    right: auto;
    width: 380px;
  }
}

@media (max-width: 768px) {
  .pwa-floating-banner {
    bottom: 74px !important;
    left: 12px !important;
    right: 74px !important;
    max-width: calc(100vw - 86px) !important;
  }
  .pwa-banner-desc {
    max-width: 180px;
  }
}

/* ==========================================================================
   ADMIN LIVE NOTIFICATION & MESSAGE CENTER STYLES
   ========================================================================== */
.admin-notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-notif-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}
.admin-notif-btn.has-unread {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}
.admin-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
  line-height: 1;
}
.admin-notif-beacon {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: notifBeaconPulse 1.8s infinite;
}
@keyframes notifBeaconPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.4); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Notification Popover Dropdown */
.admin-notif-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 410px;
  max-width: 92vw;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: notifDropdownPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes notifDropdownPop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-notif-header {
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-icon-subtle {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-icon-subtle:hover {
  background: #e2e8f0;
}

/* Filter Tab Strip */
.admin-notif-tabs {
  display: flex;
  padding: 6px 10px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-notif-tabs::-webkit-scrollbar { display: none; }
.notif-tab {
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s;
}
.notif-tab:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #0f172a;
}
.notif-tab.active {
  background: #ffffff;
  color: #1e40af;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.notif-tab b {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 999px;
}
.notif-tab.active b {
  background: #dbeafe;
  color: #1e40af;
}

/* Scrollable Body */
.admin-notif-body {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.admin-notif-item {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.18s;
}
.admin-notif-item:hover {
  background: #f8fafc;
}
.admin-notif-item:last-child {
  border-bottom: none;
}
.notif-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.notif-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-badge-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.notif-subtitle {
  font-size: 0.78rem;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-detail {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 6px;
  word-break: break-word;
}
.notif-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.btn-notif-action {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-notif-primary {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.btn-notif-primary:hover {
  background: #2563eb;
  color: #ffffff;
}
.btn-notif-wa {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.btn-notif-wa:hover {
  background: #059669;
  color: #ffffff;
}

.admin-notif-footer {
  padding: 0.75rem 1.15rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-footer-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.notif-footer-link:hover {
  text-decoration: underline;
}

/* User Pill in Topbar */
.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}
.admin-user-pill:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-user-meta {
  display: flex;
  flex-direction: column;
}
.admin-user-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.admin-user-role {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
}

/* Floating Real-Time Toast Notifications */
.admin-notif-toast-container {
  position: fixed;
  top: 75px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.admin-notif-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: notifToastSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
@keyframes notifToastSlide {
  0% { opacity: 0; transform: translateX(50px) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 768px) {
  .d-none-mobile {
    display: none !important;
  }
  .admin-notif-dropdown {
    width: 320px;
    right: -50px;
  }
}

