/* ================================================================= */
/* BAAS.LK - CORE STYLESHEET (3D, GLASSPHORPHISM & RESPONSIVE UX)    */
/* ================================================================= */

/* Root & Base Adjustments */
:root {
  --primary-blue: #0066fe;
  --primary-orange: #f59e0b;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  background-color: #ffffff;
  color: #0f172a;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mobile bottom nav safe-area padding */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Dark Mode Overrides */
.dark body {
  background-color: #040d1a;
  color: #f1f5f9;
}

.dark .glass-nav {
  background: rgba(4, 13, 26, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dark .glass-nav .border-t {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 18, 35, 0.95);
}

.dark .service-card {
  background: #0b192e !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .service-card h3,
.dark .service-card h4 {
  color: #f8fafc !important;
}

.dark .service-card p {
  color: #94a3b8 !important;
}

/* 3D Perspective Container */
.perspective-container {
  perspective: 1200px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-element-3d {
  transform: translateZ(35px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tilt-element-depth {
  transform: translateZ(55px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.glass-card-dark {
  background: rgba(2, 24, 69, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card-accent {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ================================================================= */
/* ULTRA-PREMIUM PRO GLASS DESIGN SYSTEM & ADVANCED ANIMATIONS       */
/* ================================================================= */

/* Master Pro Glass Header */
.pro-glass-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dark .pro-glass-header {
  background: rgba(3, 11, 26, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Subtle High-End Glass Deck (For Main Hero Search Console) */
.pro-glass-search-deck {
  position: relative;
  background: rgba(11, 18, 32, 0.94) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.65) !important;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.pro-glass-search-deck:hover {
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.75) !important;
}

/* ================================================================= */
/* PRO MASTER HERO GLASS CARD (UNIFIED TITLE + INTEGRATED VISUAL)    */
/* ================================================================= */
.pro-master-hero-card {
  position: relative;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.65);
  transition: all 0.3s ease;
  overflow: hidden;
}

.pro-master-hero-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.pro-master-hero-card::after {
  display: none;
}

/* Integrated Baas Photo Frame inside Master Card */
.pro-integrated-image-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 8, 23, 0.7);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.pro-integrated-image-frame:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 
    0 35px 80px -10px rgba(0, 0, 0, 0.85),
    inset 0 1.5px 3px rgba(255, 255, 255, 0.9),
    0 0 65px rgba(245, 158, 11, 0.35);
}

.pro-integrated-image-frame img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-integrated-image-frame:hover img {
  transform: scale(1.035);
}

/* Pro Level Hero Title Glass Box (Item 1 Standalone Fallback) */
.pro-title-box {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  padding: 1.75rem 2rem;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.6),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.55),
    0 0 35px rgba(0, 102, 254, 0.15);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-title-box:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 
    0 30px 75px -15px rgba(0, 0, 0, 0.7),
    inset 0 2px 3px rgba(255, 255, 255, 0.75),
    0 0 50px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}

.pro-title-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(25px);
}

/* Glass Reflection Sweep Beam */
.pro-glass-search-deck::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 220%;
  height: 200%;
  background: linear-gradient(
    65deg, 
    transparent 38%, 
    rgba(255, 255, 255, 0.25) 47%, 
    rgba(255, 255, 255, 0.55) 50%, 
    rgba(255, 255, 255, 0.25) 53%, 
    transparent 62%
  );
  transform: rotate(20deg) translateY(-100%);
  pointer-events: none;
  animation: glassSweepLoop 8s ease-in-out infinite;
}

@keyframes glassSweepLoop {
  0%, 65% {
    transform: rotate(20deg) translateY(-120%);
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  82% {
    transform: rotate(20deg) translateY(120%);
    opacity: 1;
  }
  86%, 100% {
    transform: rotate(20deg) translateY(120%);
    opacity: 0;
  }
}

/* Luminous White Glass Input Pods (Spacious, Neat & Beautiful) */
.pro-glass-input-pod {
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  padding: 0.75rem 1rem;
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 10;
}

.pro-glass-input-pod:hover,
.pro-glass-input-pod:focus-within {
  transform: translateY(-2px) scale(1.015);
  background: #ffffff;
  border-color: #f59e0b;
  box-shadow: 
    0 15px 35px -5px rgba(245, 158, 11, 0.3),
    0 0 0 3.5px rgba(245, 158, 11, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

.dark .pro-glass-input-pod {
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 12px 30px -5px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

/* Pro Directory Bento Box (Item 3) */
.pro-directory-bento {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(245, 158, 11, 0.08) 100%);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 2.25rem;
  box-shadow: 
    0 25px 65px -15px rgba(0, 0, 0, 0.65),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.55),
    0 0 45px rgba(0, 102, 254, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-directory-bento:hover {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 
    0 35px 85px -15px rgba(0, 0, 0, 0.75),
    inset 0 2px 3px rgba(255, 255, 255, 0.8),
    0 0 60px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

/* Refined Stats Capsule */
.pro-glass-stat-capsule {
  background: rgba(11, 18, 32, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.pro-glass-stat-capsule:hover {
  transform: translateY(-2px) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6) !important;
}

/* Pro Stats Network Master Deck */
.pro-stats-network-deck {
  position: relative;
  background: rgba(11, 18, 32, 0.92) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.65) !important;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.pro-stats-network-deck:hover {
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

/* 3D Showcase Card Glass Shell */
.pro-showcase-shell {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 2.6rem;
  padding: 0.85rem;
  box-shadow: 
    0 35px 85px -15px rgba(0, 0, 0, 0.75),
    inset 0 2px 3px rgba(255, 255, 255, 0.7),
    0 0 50px rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-showcase-shell:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 45px 110px -15px rgba(0, 0, 0, 0.85),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    0 0 75px rgba(255, 255, 255, 0.3);
}

/* Floating badge with animated pulse radar */
.pro-glass-badge {
  background: rgba(3, 11, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Floating pulse radar ring */
.pulse-radar-ring {
  position: relative;
}
.pulse-radar-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.8;
  animation: radarPing 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Pro 3D Gold Accent Button (Used in Search & Directory Bento) */
.btn-pro-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #0f172a;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 10px 25px -5px rgba(245, 158, 11, 0.5),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-pro-gold:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 16px 35px -5px rgba(245, 158, 11, 0.65),
    0 0 30px rgba(251, 191, 36, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 1);
  color: #020817;
}

.btn-pro-gold:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Background Glowing Ambient Orbs Animations */
.animate-orb-1 {
  animation: orbDrift1 14s ease-in-out infinite alternate;
}
.animate-orb-2 {
  animation: orbDrift2 18s ease-in-out infinite alternate;
}
.animate-orb-3 {
  animation: orbDrift3 22s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(70px, 45px) scale(1.18); opacity: 0.65; }
  100% { transform: translate(-35px, 85px) scale(0.92); opacity: 0.45; }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate(-85px, -55px) scale(1.22); opacity: 0.6; }
  100% { transform: translate(45px, -85px) scale(0.95); opacity: 0.4; }
}

@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.3; }
  50% { transform: translate(60px, -45px) scale(1.25); opacity: 0.55; }
  100% { transform: translate(-45px, 35px) scale(1.05); opacity: 0.35; }
}

/* Animated Border Gradient (The Linear/Apple Halo Border) */
.border-halo-gradient {
  position: relative;
}
.border-halo-gradient::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(245, 158, 11, 0.7), rgba(0, 102, 254, 0.6), rgba(255, 255, 255, 0.85));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: borderHaloSpin 8s linear infinite;
  background-size: 300% 300%;
}

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

/* Shimmer Button Sweep */
.btn-pro-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  background-size: 200% 100%;
  color: #040d1a !important;
  font-weight: 900;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 10px 25px -5px rgba(245, 158, 11, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pro-gold:hover {
  background-position: 100% 0;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 15px 35px -5px rgba(245, 158, 11, 0.7),
    0 0 35px rgba(245, 158, 11, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
}

/* Frosted Pro Glass Ribbon (Directory Banner) */
.pro-glass-ribbon {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Frosted Card for Reviews / Testimonials */
.pro-review-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 15px 35px -10px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .pro-review-card {
  background: rgba(7, 18, 38, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.pro-review-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 
    0 25px 50px -10px rgba(0, 0, 0, 0.18),
    0 0 30px rgba(245, 158, 11, 0.15);
}

.dark .pro-review-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 30px 60px -10px rgba(0, 0, 0, 0.65),
    0 0 35px rgba(0, 102, 254, 0.25);
}

/* 3D Pushable Buttons */
.btn-3d {
  position: relative;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 0 #b45309, 0 8px 15px rgba(245, 158, 11, 0.4);
}

.btn-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b45309, 0 12px 22px rgba(245, 158, 11, 0.5);
}

.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #b45309, 0 3px 6px rgba(245, 158, 11, 0.3);
}

.btn-3d-blue {
  position: relative;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 0 #003eb8, 0 8px 15px rgba(0, 102, 254, 0.35);
}

.btn-3d-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #003eb8, 0 12px 22px rgba(0, 102, 254, 0.45);
}

.btn-3d-blue:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #003eb8, 0 3px 6px rgba(0, 102, 254, 0.2);
}

/* Shimmer Sweep Effect */
.btn-shine-sweep {
  position: relative;
  overflow: hidden;
}

.btn-shine-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 220%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-shine-sweep:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* Subtle Top-Right Ambient Radial Gradient (Gold 8% Opacity) */
.bg-dot-grid,
.hero-radial-bg {
  background: radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.08) 0%, transparent 60%) !important;
}

#hero-town-select,
#hero-district-select,
#hero-category-select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* Scroll Reveal Transition */
.reveal-elem {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-elem.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Scrollbar None Utility */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Premium Auth Floating Labels & Inputs */
.floating-input-group {
  position: relative;
  margin-bottom: 1rem;
}
.floating-input {
  width: 100%;
  padding: 1.25rem 1.25rem 0.5rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-input:focus {
  outline: none;
  border-color: #0066fe;
  background: #ffffff;
  box-shadow: 0 4px 20px -5px rgba(0, 102, 254, 0.15), 0 0 0 4px rgba(0, 102, 254, 0.1);
}
.floating-label {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  font-weight: 800;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: 0.5rem;
  font-size: 0.65rem;
  color: #0066fe;
  transform: translateY(0);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Password Strength Indicator */
.strength-meter {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.75rem;
  display: flex;
  gap: 3px;
}
.strength-segment {
  flex: 1;
  background: transparent;
  transition: background 0.4s ease;
}
.strength-1 .seg-1 { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.strength-2 .seg-1, .strength-2 .seg-2 { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.strength-3 .seg-1, .strength-3 .seg-2, .strength-3 .seg-3 { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }

/* Staggered Animations & Progress */
.stagger-1 { transition-delay: 80ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 240ms; }
.stagger-4 { transition-delay: 320ms; }

.auth-progress-bar {
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-indicator {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Social Buttons */
.social-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.social-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.social-btn:hover::before {
  opacity: 0.05;
}
.social-btn:active {
  transform: scale(0.97);
}

/* Magnetic Button Wrapper */
.magnetic-wrap {
  display: inline-block;
}

/* Clean, Professional Hover Elevation for Cards */
.service-card {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 102, 254, 0.25);
}

.dark .service-card:hover {
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ================================================================= */
/* MOBILE SPECIFIC UI ENHANCEMENTS                                    */
/* ================================================================= */

/* Mobile Bottom Navigation Bar (Streamlined 3-Action Architecture) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(4.1rem + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(4, 11, 24, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 16px;
  padding-right: 16px;
  box-shadow: 0 -10px 30px -4px rgba(0, 0, 0, 0.65);
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 18px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-width: 82px;
  max-width: 125px;
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
  font-size: 19px;
  margin-bottom: 3px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.18);
}

.mobile-nav-item.active i {
  color: #f59e0b;
  transform: translateY(-1px) scale(1.08);
}

.mobile-nav-item:active {
  transform: scale(0.93);
}

.mobile-nav-item.active-user {
  color: #38bdf8;
}
.mobile-nav-item.active-user:hover,
.mobile-nav-item.active-user.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}
.mobile-nav-item.active-user i {
  color: #38bdf8;
}

/* Mobile Slide-over Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: #071326;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

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

/* Quick District Chips */
.district-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: white;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dark .district-chip {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.district-chip:hover {
  border-color: #0066fe;
  color: #0066fe;
  transform: translateY(-1px);
}

.district-chip.active {
  background: linear-gradient(135deg, #0066fe 0%, #004fe6 100%);
  border-color: #004fe6;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 254, 0.3);
}

/* Social Proof Floating Ticker (Disabled) */
.live-activity-ticker {
  display: none !important;
}

/* Quick Town / Sub-Town Chips */
.town-chip {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: #78350f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dark .town-chip {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fde68a;
}

.town-chip:hover {
  border-color: #f59e0b;
  color: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.18);
}

.dark .town-chip:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

.town-chip.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #d97706;
  color: #020617 !important;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Multi-Filter Console: Baas Category Chips, Tags & Transitions
   ========================================================================== */

.baas-cat-chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.dark .baas-cat-chip {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.baas-cat-chip:hover {
  border-color: #0066fe;
  color: #0066fe;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 254, 0.16);
}

.dark .baas-cat-chip:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.15);
}

.baas-cat-chip.active {
  background: linear-gradient(135deg, #0066fe 0%, #004ecc 100%);
  border-color: #004ecc;
  color: #ffffff !important;
  box-shadow: 0 6px 20px -2px rgba(0, 102, 254, 0.45);
  transform: translateY(-1px);
}

.dark .baas-cat-chip.active {
  background: linear-gradient(135deg, #0066fe 0%, #2563eb 100%);
  border-color: #3b82f6;
  color: #ffffff !important;
  box-shadow: 0 6px 22px -2px rgba(37, 99, 235, 0.55);
}

.baas-cat-chip .baas-cat-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.25s ease;
  background: rgba(0, 0, 0, 0.05);
}

.dark .baas-cat-chip .baas-cat-icon {
  background: rgba(255, 255, 255, 0.08);
}

/* Distinct Category Icon Tints in Default State */
.baas-cat-chip[data-cat="electrical"] .baas-cat-icon { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.baas-cat-chip[data-cat="plumbing"] .baas-cat-icon { background: rgba(0, 102, 254, 0.15); color: #0066fe; }
.baas-cat-chip[data-cat="ac"] .baas-cat-icon { background: rgba(6, 182, 212, 0.15); color: #0891b2; }
.baas-cat-chip[data-cat="carpentry"] .baas-cat-icon { background: rgba(234, 88, 12, 0.15); color: #c2410c; }
.baas-cat-chip[data-cat="masonry"] .baas-cat-icon { background: rgba(180, 83, 9, 0.15); color: #9a3412; }
.baas-cat-chip[data-cat="painting"] .baas-cat-icon { background: rgba(168, 85, 247, 0.15); color: #9333ea; }
.baas-cat-chip[data-cat="vehicle"] .baas-cat-icon { background: rgba(244, 63, 94, 0.15); color: #e11d48; }
.baas-cat-chip[data-cat="cctv"] .baas-cat-icon { background: rgba(16, 185, 129, 0.15); color: #059669; }

.baas-cat-chip.active .baas-cat-icon {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  transform: scale(1.08);
}

.baas-cat-chip .baas-cat-count {
  font-size: 10px;
  font-weight: 800;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  transition: all 0.25s ease;
}

.dark .baas-cat-chip .baas-cat-count {
  background: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.baas-cat-chip.active .baas-cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Active Filter Badges with Remove 'x' */
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 102, 254, 0.08);
  border: 1px solid rgba(0, 102, 254, 0.25);
  color: #0066fe;
  animation: filterTagPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .active-filter-tag {
  background: rgba(0, 102, 254, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.active-filter-tag .tag-remove-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  background: rgba(0, 102, 254, 0.15);
  color: currentColor;
  transition: all 0.15s ease;
  margin-left: 2px;
  cursor: pointer;
}

.active-filter-tag .tag-remove-btn:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.15);
}

@keyframes filterTagPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Service Card Filter Fade In Animation */
.service-card {
  animation: serviceCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes serviceCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Filter Select Dropdowns & Optgroup Styling */
#services-category-select,
#services-district-select,
#services-town-select,
#hero-category-select,
#hero-district-select,
#hero-town-select {
  font-family: inherit;
  transition: all 0.2s ease;
}

#services-category-select optgroup,
#services-district-select optgroup,
#services-town-select optgroup,
#hero-category-select optgroup,
#hero-district-select optgroup,
#hero-town-select optgroup {
  font-weight: 800;
  color: #0f172a;
  background-color: #f1f5f9;
  padding: 4px 6px;
}

.dark #services-category-select optgroup,
.dark #services-district-select optgroup,
.dark #services-town-select optgroup,
.dark #hero-category-select optgroup,
.dark #hero-district-select optgroup,
.dark #hero-town-select optgroup {
  color: #f8fafc;
  background-color: #1e293b;
}

#services-category-select option,
#services-district-select option,
#services-town-select option,
#hero-category-select option,
#hero-district-select option,
#hero-town-select option {
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  padding: 6px 10px;
}

.dark #services-category-select option,
.dark #services-district-select option,
.dark #services-town-select option,
.dark #hero-category-select option,
.dark #hero-district-select option,
.dark #hero-town-select option {
  color: #e2e8f0;
  background-color: #0f172a;
}

/* ================================================================= */
/* 4D ADVANCED ANIMATIONS, HOLOGRAPHIC CHIPS & CURSOR SPOTLIGHT      */
/* ================================================================= */

/* Cursor Spotlight (4D Dynamic Light Source that illuminates glass borders) */
#cursor-ambient-spotlight {
  background: radial-gradient(
    650px circle at var(--cursor-x, 50vw) var(--cursor-y, 50vh),
    rgba(6, 182, 212, 0.14),
    rgba(245, 158, 11, 0.08) 32%,
    transparent 70%
  );
  transition: opacity 0.4s ease;
  will-change: background;
  pointer-events: none !important;
}

/* 4D Floating Tool Hologram Chips */
.floating-4d-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 24, 60, 0.88) 0%, rgba(3, 14, 38, 0.94) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 18px 40px -5px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.75),
    0 0 30px rgba(245, 158, 11, 0.22);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  pointer-events: auto;
  z-index: 30;
  transform-style: preserve-3d;
  transform: translateZ(55px);
  cursor: default;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.floating-4d-chip:hover {
  transform: translateZ(75px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 25px 50px -5px rgba(0, 0, 0, 0.7),
    inset 0 1.5px 3px rgba(255, 255, 255, 1),
    0 0 45px rgba(6, 182, 212, 0.45);
}

/* 4D Floating Keyframe Animations (Multi-axis Sine waves with depth) */
.chip-float-1 {
  animation: float4D_1 7s ease-in-out infinite alternate;
}
.chip-float-2 {
  animation: float4D_2 8.5s ease-in-out infinite alternate;
}
.chip-float-3 {
  animation: float4D_3 9s ease-in-out infinite alternate;
}
.chip-float-4 {
  animation: float4D_4 7.5s ease-in-out infinite alternate;
}

@keyframes float4D_1 {
  0% { transform: translate3d(0, 0, 50px) rotate(0deg); }
  50% { transform: translate3d(-10px, -14px, 68px) rotate(-2deg); }
  100% { transform: translate3d(8px, -22px, 52px) rotate(1.5deg); }
}

@keyframes float4D_2 {
  0% { transform: translate3d(0, 0, 50px) rotate(0deg); }
  50% { transform: translate3d(12px, 16px, 65px) rotate(2deg); }
  100% { transform: translate3d(-10px, 24px, 45px) rotate(-1.5deg); }
}

@keyframes float4D_3 {
  0% { transform: translate3d(0, 0, 55px) rotate(0deg); }
  50% { transform: translate3d(15px, -18px, 75px) rotate(2.5deg); }
  100% { transform: translate3d(-14px, -10px, 48px) rotate(-1.8deg); }
}

@keyframes float4D_4 {
  0% { transform: translate3d(0, 0, 50px) rotate(0deg); }
  50% { transform: translate3d(-14px, 15px, 70px) rotate(-2.2deg); }
  100% { transform: translate3d(12px, 20px, 46px) rotate(1.8deg); }
}

/* 3D Dynamic Card Tilt Transitions */
.js-tilt-glare {
  border-radius: inherit;
}

/* ================================================================= */
/* GOOGLE REGISTRATION BUTTON (.google-btn)                          */
/* ================================================================= */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.4rem;
  background-color: #ffffff;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.google-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.google-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dark .google-btn {
  background-color: #0f172a;
  color: #f8fafc;
  border-color: #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.dark .google-btn:hover {
  background-color: #1e293b;
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.2);
}

/* ================================================================= */
/* ULTRA-PRO CINEMATIC AUTH PORTAL TRANSITION OVERLAY               */
/* ================================================================= */
#pro-auth-portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, rgba(11, 25, 46, 0.95) 0%, rgba(3, 8, 18, 0.98) 100%);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

#pro-auth-portal-overlay.portal-active {
  display: flex;
  opacity: 1;
  pointer-events: auto !important;
}

.portal-backdrop-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(245, 158, 11, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.portal-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
  max-width: 480px;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#pro-auth-portal-overlay.portal-active .portal-content {
  transform: scale(1);
}

.portal-glow-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(0, 102, 254, 0.25) 50%, transparent 70%);
  border-radius: 9999px;
  filter: blur(40px);
  animation: portalPulse 2s infinite alternate;
  pointer-events: none;
}

@keyframes portalPulse {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.portal-badge-logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(245, 158, 11, 0.6);
  border-radius: 1.75rem;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  animation: logoFloat 2.5s ease-in-out infinite alternate;
  margin-bottom: 1.25rem;
}

@keyframes logoFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(2deg); }
}

.portal-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin-bottom: 0.75rem;
}

.portal-badge-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pingDot 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingDot {
  0% { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

.portal-badge-text {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fbbf24;
  text-transform: uppercase;
}

.portal-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.portal-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.portal-bar-track {
  width: 220px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.portal-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #0066fe, #f59e0b);
  background-size: 200% 100%;
  animation: portalLaser 1.2s linear infinite;
  border-radius: 9999px;
}

@keyframes portalLaser {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ================================================================= */
/* 21. AUTH ROLE CONDITIONAL VISIBILITY (BAAS LOGGED-IN STATE)       */
/* ================================================================= */
html.is-baas-logged-in #pro-baas-onboarding-section,
body.is-baas-logged-in #pro-baas-onboarding-section,
html.is-baas-logged-in #nav-pro-register-btn,
body.is-baas-logged-in #nav-pro-register-btn,
html.is-baas-logged-in #drawer-pro-register-btn,
body.is-baas-logged-in #drawer-pro-register-btn {
  display: none !important;
}

/* ================================================================= */
/* 22. HERO SEARCH MASTER CTA & AUTOCOMPLETE STYLES                  */
/* ================================================================= */
#btn-hero-search-submit {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  color: #020617;
  font-weight: 900;
  border: 1.5px solid rgba(254, 240, 138, 0.65);
  box-shadow: 
    0 10px 25px -3px rgba(245, 158, 11, 0.5),
    0 0 20px rgba(245, 158, 11, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#btn-hero-search-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.6s ease;
}

#btn-hero-search-submit:hover::before {
  left: 100%;
}

#btn-hero-search-submit:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 
    0 16px 36px -4px rgba(245, 158, 11, 0.7),
    0 0 35px rgba(245, 158, 11, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

#btn-hero-search-submit:active {
  transform: translateY(1px) scale(0.98);
}

#hero-autocomplete-dropdown {
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: heroDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ================================================================= */
/* 23. COMPREHENSIVE MOBILE PHONE RESPONSIVENESS & TOUCH ENGINE      */
/* ================================================================= */

/* Guarantee clean mobile header (Register Pro stays inside drawer on phones) */
@media (max-width: 1023px) {
  #nav-pro-register-btn {
    display: none !important;
  }
}

/* Prevent unwanted horizontal viewport shift */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Ensure mobile pages have bottom breathing room above the fixed navigation bar */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Prevent annoying iOS automatic zoom on focus while maintaining clean sizing */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Modern hidden scrollbar utility for horizontally scrollable pills & tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Touch & ergonomic screen adjustments for mobile phones */
@media (max-width: 640px) {
  .pro-master-hero-card {
    border-radius: 1.5rem !important;
  }

  .pro-glass-search-deck {
    border-radius: 1.5rem !important;
  }

  .pro-directory-bento {
    border-radius: 1.5rem !important;
  }

  .pro-review-card {
    border-radius: 1.25rem !important;
  }

  /* Fast responsive touch feedback */
  button, a {
    touch-action: manipulation;
  }

  /* Dropdown & select text truncation prevention */
  select {
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ================================================================= */
/* 24. GPU ACCELERATION & ULTRA-FAST RENDERING ENGINE               */
/* ================================================================= */
/* Promotes major animated cards onto GPU composite layers for 60-120fps scrolling */
.pro-master-hero-card,
.pro-glass-search-deck,
.pro-directory-bento,
.mobile-bottom-nav,
.pro-glass-badge {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Smooth font rendering */
body, button, input, select, textarea {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optimize image decoding & offscreen render */
img {
  content-visibility: auto;
}