body {
  font-family: Inter, "Noto Sans", sans-serif;
}

.search-container {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  border-top-width: 0;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Hero section background */
.hero-section {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.68) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 160px 160px;
  opacity: 0.6;
  transform: scale(1.05);
  filter: blur(1px);
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.22), transparent 52%),
              radial-gradient(circle at 70% 80%, rgba(129, 140, 248, 0.22), transparent 55%);
  opacity: 0.9;
  transform: translateZ(0);
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(160px, 20vw, 220px);
  height: clamp(160px, 20vw, 220px);
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.95), rgba(37, 99, 235, 0.95));
  box-shadow: 0 35px 60px -24px rgba(37, 99, 235, 0.65);
  border: 2px solid rgba(191, 219, 254, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-logo::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 70%);
  opacity: 0.8;
}

.hero-logo span {
  position: relative;
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.35em;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  color: #ffffff;
  box-shadow: 0 25px 45px -20px rgba(37, 99, 235, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 55px -18px rgba(37, 99, 235, 0.8);
}

.cta-secondary,
.cta-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cta-secondary:hover,
.cta-tertiary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 15px 25px -18px rgba(15, 23, 42, 0.35);
}

.cta-tertiary {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-compact {
  padding: 0.65rem 1.75rem;
  font-size: 0.875rem;
}

/* Add these styles to the end of your existing CSS file */

/* Mobile menu styles */
.mobile-menu {
  z-index: 15;
}

/* Improve tap target sizes on mobile */
@media (max-width: 640px) {
  .search-suggestions a,
  .mobile-menu a {
    padding: 0.75rem 1rem; /* Larger tap targets on mobile */
  }
  
  /* Improve readability on small screens */
  .hero-section h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
}

/* Fix aspect ratio issues for article images */
.aspect-h-9.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-h-9.aspect-w-16 > img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Ensure filter buttons have consistent height */
.search-suggestions button {
  line-height: 1.25rem;
}

/* ===== APPLE-STYLE 3D SCROLL EXPERIENCE ===== */

/* Base setup for smooth animations */
html {
  scroll-behavior: smooth;
}

.transform-gpu {
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

/* Apple-style scroll container */
.apple-scroll-container {
  position: relative;
}

.scroll-section {
  position: relative;
  width: 100%;
}

/* 3D Product Container */
.product-3d-container {
  position: relative;
  z-index: 10;
}

.product-3d {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Device Styling - Apple-inspired */
.device-frame {
  transform-style: preserve-3d;
}

.phone-body {
  transform-style: preserve-3d;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.screen {
  transform: translateZ(2px);
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.screen-content {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
}

.app-icon {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.app-icon:hover {
  transform: scale(1.1);
}

.camera-notch {
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.volume-buttons, .power-button {
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.shine-effect {
  opacity: 0.3;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 70%,
    transparent 100%
  );
  animation: shine 4s ease-in-out infinite;
}

/* Text animations */
.text-section {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-section h2 {
  font-weight: 100;
  letter-spacing: -0.02em;
}

/* Feature section animations */
.feature-item {
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.code-block {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

/* Hero title animation */
.hero-title {
  font-weight: 100;
  letter-spacing: -0.05em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

/* Keyframe animations */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes shine {
  0%, 100% {
    transform: translateX(-200%) translateY(-200%) rotate(45deg);
  }
  50% {
    transform: translateX(200%) translateY(200%) rotate(45deg);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .device-frame {
    width: 200px;
    height: 400px;
  }
  
  .hero-title {
    font-size: 3rem !important;
  }
  
  .text-section {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 2rem 0;
    text-align: center;
  }
  
  .text-section h2 {
    font-size: 2rem;
  }
  
  .text-section p {
    max-width: none !important;
  }
}

/* Apple-style button hover effects */
button {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 400;
  letter-spacing: -0.01em;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Smooth scrolling optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hardware acceleration for smooth animations */
.product-3d,
.text-section,
.feature-item,
.code-block {
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* ===== FIXED HEADER STYLES ===== */

/* Enhanced Apple-style liquid glass effect */
header {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle gradient overlay for depth */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.05) 100%
  ) !important;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* Ensure all header content is above the gradient */
header > * {
  position: relative;
  z-index: 2;
}

/* Apple-style hover effect on header - DISABLED when menu is expanded */
header:hover:not(:has(.mobile-menu-expandable.active)) {
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.18) !important;
}

/* Smooth transitions for header interactions */
header .search-container label > div {
  transition: all 0.2s ease;
  background: white;
}

header .search-container input {
  transition: all 0.2s ease;
  background: white;
}

header .search-container label:focus-within > div {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

/* Glass effect for buttons */
.hamburger-menu-btn {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 12px 0 rgba(31, 38, 135, 0.1);
}

.hamburger-menu-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 6px 16px 0 rgba(31, 38, 135, 0.15);
}

/* Glass effect for expanded menu - TESTING VERSION */
/* .mobile-menu-expandable.active {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
} */

.mobile-menu-expandable.active::before {
  background: none !important;
  display: none !important;
}

/* Mobile responsive adjustments for fixed header */
@media (max-width: 768px) {
  header {
    margin: 0.5rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  main.pt-24 {
    padding-top: 5rem !important; /* Adjust for smaller mobile header */
  }
}

/* Ensure search suggestions appear above other content */
.search-suggestions {
  z-index: 10000 !important;
}

/* Header animation on scroll */
@media (prefers-reduced-motion: no-preference) {
  header {
    animation: headerSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
}

@keyframes headerSlideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== AZENSUS EXPERIENCE MAP ===== */

.site-map-section {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.12) 0%, rgba(59, 130, 246, 0.08) 35%, rgba(14, 165, 233, 0.12) 100%);
}

.map-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  overflow: visible;
}

.map-wrapper {
  position: relative;
  width: 100%;
}

.map-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  filter: drop-shadow(0 24px 40px rgba(37, 99, 235, 0.12));
}

.map-node {
  --node-bg: rgba(255, 255, 255, 0.92);
  --node-border: rgba(148, 163, 184, 0.25);
  --node-color: #0f172a;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: clamp(75px, 12vw, 95px);
  height: clamp(75px, 12vw, 95px);
  border-radius: 9999px;
  background: var(--node-bg);
  border: 2px solid var(--node-border);
  color: var(--node-color);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 24px 32px -22px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.map-node:hover,
.map-node:focus-visible {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 32px 45px -20px rgba(37, 99, 235, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.map-node:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.55);
  outline-offset: 4px;
}

.map-node-title {
  font-size: 0.75rem;
}

.map-node-subtitle {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.6);
}

.map-node--home {
  top: 50%;
  left: 50%;
  width: clamp(105px, 16vw, 130px);
  height: clamp(105px, 16vw, 130px);
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.9), rgba(30, 64, 175, 0.95));
  border-color: rgba(191, 219, 254, 0.35);
  color: #ffffff;
  box-shadow: 0 35px 60px -20px rgba(37, 99, 235, 0.45);
}

.map-home-initials {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.map-home-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 600;
  opacity: 0.75;
}

.map-node[data-node="general"] {
  top: 12%;
  left: 50%;
  --node-bg: rgba(59, 130, 246, 0.14);
  --node-border: rgba(59, 130, 246, 0.25);
  --node-color: #1e3a8a;
}

.map-node[data-node="operations"] {
  top: 32%;
  left: 86%;
  --node-bg: rgba(99, 102, 241, 0.16);
  --node-border: rgba(99, 102, 241, 0.25);
  --node-color: #4338ca;
}

.map-node[data-node="about"] {
  top: 32%;
  left: 14%;
  --node-bg: rgba(14, 165, 233, 0.16);
  --node-border: rgba(14, 165, 233, 0.25);
  --node-color: #0e7490;
}

.map-node[data-node="support"] {
  top: 72%;
  left: 18%;
  --node-bg: rgba(2, 132, 199, 0.16);
  --node-border: rgba(2, 132, 199, 0.25);
  --node-color: #0369a1;
}

.map-node[data-node="contact"] {
  top: 88%;
  left: 50%;
  --node-bg: rgba(96, 165, 250, 0.16);
  --node-border: rgba(96, 165, 250, 0.25);
  --node-color: #1d4ed8;
}

.map-node[data-node="resources"] {
  top: 72%;
  left: 82%;
  --node-bg: rgba(34, 197, 94, 0.16);
  --node-border: rgba(34, 197, 94, 0.25);
  --node-color: #047857;
}

/* Sub-node styles (Tier 2 pages) */
.map-node--sub {
  width: clamp(60px, 8vw, 70px);
  height: clamp(60px, 8vw, 70px);
  --node-bg: rgba(255, 255, 255, 0.85);
  --node-border: rgba(148, 163, 184, 0.2);
  border-width: 1.5px;
  opacity: 0.92;
}

.map-node--sub .map-node-title {
  font-size: 0.625rem;
  font-weight: 600;
}

.map-node--sub .map-node-subtitle {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
}

.map-node--sub:hover,
.map-node--sub:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

/* Highlight style for important pages */
.map-node--highlight {
  --node-bg: rgba(99, 102, 241, 0.22);
  --node-border: rgba(99, 102, 241, 0.4);
  box-shadow: 0 24px 32px -22px rgba(99, 102, 241, 0.5);
}

.map-node--highlight:hover {
  box-shadow: 0 32px 45px -20px rgba(99, 102, 241, 0.45);
}

.map-dot {
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.map-dot--general {
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.map-dot--operations {
  background: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.map-dot--about {
  background: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.map-dot--resources {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.map-dot--support {
  background: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.map-dot--contact {
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

@media (max-width: 1024px) {
  .map-node {
    width: clamp(110px, 20vw, 140px);
    height: clamp(110px, 20vw, 140px);
  }
}

@media (max-width: 768px) {
  .map-card {
    min-height: 380px;
  }
  .map-node {
    width: 120px;
    height: 120px;
  }
  .map-node--home {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 640px) {
  .map-card {
    display: none;
  }
}

/* ===== EXPANDABLE HEADER MENU STYLES ===== */

/* Header with fixed main bar */
.header-main {
  /* Fixed height to prevent movement */
  min-height: 72px;
  position: relative;
  z-index: 2;
}

/* Hamburger menu button */
.hamburger-menu-btn {
  position: relative;
  z-index: 10001;
}

/* Hamburger icon lines */
.hamburger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #49454F; /* Dark gray from Figma design */
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

/* Hamburger animation when menu is open */
.hamburger-menu-btn.active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu-btn.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-menu-btn.active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Expandable mobile menu section */
.mobile-menu-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 0px solid rgba(226, 232, 240, 0.5);
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

/* Update the expandable menu animation - fix liquid glass - COMMENTED FOR TESTING */
/*
.mobile-menu-expandable.active {
  max-height: 650px;
  padding: 1rem 2rem 2rem 2rem;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
  position: relative;
}

@supports (backdrop-filter: blur(1px)) {
  .mobile-menu-expandable.active {
    background: rgba(255, 255, 255, 0.72) !important;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .mobile-menu-expandable.active {
    background: rgba(255, 255, 255, 0.9) !important;
  }
}
*/

/* Force backdrop-filter with vendor prefixes - COMMENTED FOR TESTING */
/* .mobile-menu-expandable.active {
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
} */

/* Same gradient overlay as main header */
.mobile-menu-expandable.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* Remove shimmer effect - keep it simple like main header */

/* Ensure all expanded menu content is above the gradient and has transparent backgrounds */
.mobile-menu-expandable.active > * {
  position: relative;
  z-index: 2;
}

/* Force transparent backgrounds for ALL elements inside the expanded menu */
.mobile-menu-expandable.active,
.mobile-menu-expandable.active *,
.mobile-menu-expandable.active *:before,
.mobile-menu-expandable.active *:after {
  background-color: transparent !important;
}

/* Only the main container should have the glass background */
.mobile-menu-expandable.active {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

.mobile-menu-content {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.1s;
  background: transparent !important;
}

.mobile-menu-expandable.active .mobile-menu-content {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mobile-menu-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0.75rem;
  border-left: 3px solid transparent;
}

.mobile-menu-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #2563eb;
  border-left-color: #2563eb;
}

.mobile-menu-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.3);
  background: transparent !important;
}

.mobile-menu-social a {
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
  background: transparent !important;
}

.mobile-menu-social a:hover {
  color: #2563eb;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Additional expandable menu content for smaller screens */
.mobile-menu-extra {
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.3);
  background: transparent !important;
}

.mobile-menu-section {
  margin-bottom: 1.5rem;
  background: transparent !important;
}

.mobile-menu-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent !important;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent !important;
}

.mobile-menu-link-small {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  border-left: 2px solid transparent;
  background: transparent !important;
}

.mobile-menu-link-small:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #2563eb;
  border-left-color: #2563eb;
}

/* Responsive adjustments for expandable menu */
@media (min-width: 769px) {
  /* .mobile-menu-expandable.active {
    max-height: 450px; 
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  } */
  
  .mobile-menu-extra {
    display: none; /* Hide extra content on desktop */
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  /* Adjust search container for mobile */
  .search-container {
    max-width: 180px;
  }
  
  .search-container input {
    font-size: 14px;
  }
  
  /* Adjust header padding for mobile */
  header {
    padding: 0.75rem 1rem !important;
  }
  
  /* Adjust main content top padding to accommodate larger header */
  main.pt-24 {
    padding-top: 5rem !important;
  }
}

/* ===== SEARCH RESULTS DROPDOWN ===== */

/* Search results container */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-height: 400px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.search-results.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Search result item */
.search-result-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  gap: 0.75rem;
}

.search-result-item:hover {
  background: #f8fafc;
  color: #2563eb;
}

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

/* Search result content */
.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #1e293b;
  line-height: 1.25;
}

.search-result-description {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-category {
  font-size: 0.6875rem;
  color: #2563eb;
  background: #dbeafe;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Search result arrow icon */
.search-result-item .material-icons {
  font-size: 1.125rem;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.search-result-item:hover .material-icons {
  color: #2563eb;
  transform: translateX(2px);
}

/* No results state */
.search-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
}

.search-no-results .material-icons {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.search-no-results p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Search results scrollbar */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .search-results {
    max-height: 300px;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .search-result-item {
    padding: 0.875rem 1rem;
  }
  
  .search-result-title {
    font-size: 0.8125rem;
  }
  
  .search-result-description {
    font-size: 0.6875rem;
  }
  
  .search-result-category {
    font-size: 0.625rem;
  }
}

/* Focus states for keyboard navigation */
.search-result-item:focus {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background: #f8fafc;
  color: #2563eb;
}

/* Enhanced search input styling when results are shown */
.search-container:has(.search-results.active) input {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 0 1px #e2e8f0;
}

/* Loading state (for future enhancement) */
.search-results.loading {
  opacity: 0.7;
}

.search-results.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .search-results {
    border: 2px solid #000;
    box-shadow: none;
  }
  
  .search-result-item {
    border-bottom: 1px solid #000;
  }
  
  .search-result-category {
    background: #000;
    color: #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .search-results {
    transition: opacity 0.1s ease;
  }
  
  .search-result-item {
    transition: background-color 0.1s ease;
  }
  
  .search-result-item .material-icons {
    transition: none;
  }
  
  .search-result-item:hover .material-icons {
    transform: none;
  }
}

/* ===== ANIMATED NAVIGATION TRANSITION ===== */

/* Logo container - fixed width with more spacing from menu button */
.logo-container {
  flex: 0 0 auto; /* Don't grow or shrink */
  min-width: 15rem; /* Fixed minimum space */
  width: 15rem; /* Fixed width */
  margin-right: 1rem;
  margin-left: 2rem; /* More space from hamburger menu button */
  z-index: 10;
  position: relative;
}

/* Nav items transition setup */
.nav-items {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  overflow: hidden;
  flex: 0 0 auto; /* Don't grow or shrink */
}

/* Universal Header Styles */
header {
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 5rem; /* Initial height */
    overflow: hidden;
}

header.active {
    max-height: 100vh; /* Full viewport height when active */
}

.mobile-menu-expandable {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-1rem);
    pointer-events: none;
}

header.active .mobile-menu-expandable {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide desktop nav items when mobile is active on smaller screens */
@media (max-width: 1023px) {
    header.active .nav-items {
        opacity: 0;
        pointer-events: none;
    }
}

/* Search bar styles */
.search-wrapper {
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* Default state for search on desktop */
.search-wrapper {
    flex: 0 1 20rem;
    margin: 0 1rem;
}

/* Expanded state for search on mobile menu */
.search-wrapper.expanded {
    flex: 1 1 auto !important;
    margin: 1rem 0 0 0 !important;
    opacity: 0;
    transition: opacity 0.3s ease-in-out 0.1s; /* Fade in after expand */
}

header.active .search-wrapper.expanded {
    opacity: 1;
}

.search-container {
    width: 100%;
}

/* Hamburger icon state change */
.hamburger-icon span {
    transition: all 0.3s ease-in-out;
}
#mobile-menu-button.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-button.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
#mobile-menu-button.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}



/* Responsive adjustments */
@media (max-width: 1200px) {
  .search-wrapper {
    flex: 0 1 18rem;
  }
}

@media (max-width: 768px) {
  .search-wrapper {
    flex: 0 1 16rem;
  }
}

/* Expanded navigation container with clean glass background */
.expanded-nav-container {
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 1.5rem;
  border: none;
  box-shadow: none;
}

.expanded-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.1s;
}

/* Show expanded nav when header is active */
header.active .expanded-nav {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

/* Simplified nav links - remove individual glass effects */
.expanded-nav-link {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.expanded-nav-link:hover {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(2px);
}

/* Simplified sub navigation - always visible */
.sub-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 1;
  max-height: none;
  overflow: visible;
  background: transparent;
  padding: 0.25rem 0 0.5rem 1rem;
  border: none;
}

.sub-nav-link {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.sub-nav-link:hover {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(4px);
}

/* Simplified nav wrapper */
.nav-item-wrapper {
  width: 100%;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
  padding: 0;
  border: none;
}

header.active .expanded-nav .nav-item-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Hide default mobile menu sections when expanded nav is active */
.mobile-menu-expandable.active .mobile-menu-section {
  display: none;
}

/* Bring expanded menu above the header */
.mobile-menu-expandable,
.mobile-menu-expandable.active {
  z-index: 10000 !important;
}

/* Glass effect for expanded menu */
.mobile-menu-expandable.active {
  max-height: 400px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
  border-radius: 0 0 1rem 1rem;
}

/* Make search input visible and functional when expanded */
.search-wrapper.expanded input,
.search-wrapper.expanded .flex {
  background: white !important;
  background-color: white !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 9999px !important;
  padding: 0.5rem 1rem !important;
}

.search-wrapper.expanded input:focus,
.search-wrapper.expanded input:hover,
.search-wrapper.expanded .flex:focus-within {
  background: white !important;
  background-color: white !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Stagger animation for nav items */
header.active .expanded-nav .nav-item-wrapper:nth-child(1) {
  transition-delay: 0.05s;
}

header.active .expanded-nav .nav-item-wrapper:nth-child(2) {
  transition-delay: 0.1s;
}

header.active .expanded-nav .nav-item-wrapper:nth-child(3) {
  transition-delay: 0.15s;
}

header.active .expanded-nav .nav-item-wrapper:nth-child(4) {
  transition-delay: 0.2s;
}

header.active .expanded-nav .nav-item-wrapper:nth-child(5) {
  transition-delay: 0.25s;
}

header.active .expanded-nav .nav-item-wrapper:nth-child(6) {
  transition-delay: 0.3s;
}

/* Auth Page Container */
.auth-page-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
}

/* Auth Background */
.auth-background {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
  z-index: 0;
}

.auth-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
}

.auth-background::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.15), transparent 50%);
  opacity: 0.8;
}

/* Auth Content Wrapper */
.auth-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Auth Header */
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.auth-back-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-4px);
}

.auth-back-link .material-icons {
  font-size: 1.25rem;
}

/* Auth Card */
.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 3rem 2.5rem;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
  opacity: 0.8;
}

/* Auth Card Header */
.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.auth-icon {
  font-size: 2rem;
  color: white;
}

.auth-card-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.auth-card-subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.form-label .material-icons {
  font-size: 1.125rem;
  color: #64748b;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 0.9375rem;
  color: #1e293b;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-help-text {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: -0.25rem;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #3b82f6;
}

.password-toggle .material-icons {
  font-size: 1.25rem;
}

/* Auth Form Options */
.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.5rem;
}

.remember-me-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.remember-me-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  accent-color: #3b82f6;
}

.forgot-password-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Terms Label */
.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
  line-height: 1.6;
}

.terms-checkbox {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #3b82f6;
}

.terms-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Messages */
.error-message {
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.error-message::before {
  content: '⚠';
  font-size: 1.125rem;
  flex-shrink: 0;
}

.success-message {
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #16a34a;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.success-message::before {
  content: '✓';
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  font-family: inherit;
  margin-top: 0.5rem;
}

.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spinner-rotate 0.6s linear infinite;
  margin-right: 0.5rem;
}

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

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
  color: #94a3b8;
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #cbd5e1, transparent);
}

/* Auth Alternative Action */
.auth-alt-action {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #64748b;
  flex-wrap: wrap;
}

.auth-alt-link {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-alt-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .auth-card-title {
    font-size: 1.5rem;
  }
  
  .auth-form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ===== FUTURISTIC LOGIN PAGE STYLES ===== */

/* Background System */
.futuristic-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1628 100%);
  overflow: hidden;
  z-index: 0;
}

/* Particle Canvas */
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Neural Grid Background */
.neural-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Gradient Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  bottom: -15%;
  right: -15%;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Scan Lines Effect */
.scan-lines {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(59, 130, 246, 0.02) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  animation: scanMove 8s linear infinite;
}

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

/* Main Login Container */
.login-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 2rem;
}

/* Brand Header */
.brand-header {
  text-align: center;
  animation: fadeInDown 0.8s ease-out;
}

.brand-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  border-radius: 24px;
  box-shadow: 
    0 0 40px rgba(59, 130, 246, 0.5),
    0 0 80px rgba(99, 102, 241, 0.3),
    inset 0 0 40px rgba(255, 255, 255, 0.1);
  animation: logoGlow 3s ease-in-out infinite;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.logo-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  opacity: 0;
  animation: pulseScan 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 80px rgba(99, 102, 241, 0.3), inset 0 0 40px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.7), 0 0 120px rgba(99, 102, 241, 0.5), inset 0 0 60px rgba(255, 255, 255, 0.2); }
}

@keyframes pulseScan {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.3);
  letter-spacing: 0.1em;
}

.brand-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.9);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* Login Card */
.login-card {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 3rem 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, #6366f1, #8b5cf6, transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

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

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

/* Biometric Indicator */
.biometric-indicator {
  text-align: center;
  margin-bottom: 2rem;
}

.fingerprint-scanner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.fingerprint-svg {
  width: 100%;
  height: 100%;
}

.fp-circle {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 2;
  opacity: 0.3;
  animation: fpPulse 2s ease-in-out infinite;
}

.fp-circle-1 { animation-delay: 0s; }
.fp-circle-2 { animation-delay: 0.2s; }
.fp-circle-3 { animation-delay: 0.4s; }
.fp-circle-4 { animation-delay: 0.6s; }

@keyframes fpPulse {
  0%, 100% { 
    opacity: 0.3;
    stroke-width: 2;
  }
  50% { 
    opacity: 0.8;
    stroke-width: 3;
  }
}

.scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  box-shadow: 0 0 10px #3b82f6;
  animation: beamScan 2s ease-in-out infinite;
}

@keyframes beamScan {
  0% { 
    top: 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.biometric-status {
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.9);
  font-weight: 500;
  transition: all 0.3s ease;
}

.biometric-status.status-active {
  color: #60a5fa;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.biometric-status.status-success {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.biometric-status.status-error {
  color: #f87171;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

/* Security Badges */
.security-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
}

.security-badge .material-icons-outlined {
  font-size: 1rem;
  color: #60a5fa;
}

/* Futuristic Form */
.futuristic-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  font-family: 'Inter', sans-serif;
}

.field-label .material-icons-outlined {
  font-size: 1.125rem;
  color: #60a5fa;
}

.input-wrapper {
  position: relative;
}

.futuristic-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  color: rgba(226, 232, 240, 0.95);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.futuristic-input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.futuristic-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.1),
    0 0 20px rgba(59, 130, 246, 0.2);
}

.input-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.futuristic-input:focus + .password-reveal + .input-glow,
.futuristic-input:focus + .input-glow {
  opacity: 1;
}

.password-reveal {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 2;
}

.password-reveal:hover {
  color: #60a5fa;
}

.password-reveal .material-icons-outlined {
  font-size: 1.25rem;
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.9);
}

.futuristic-checkbox {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  position: relative;
  transition: all 0.3s ease;
}

.futuristic-checkbox:checked + .checkbox-custom {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.futuristic-checkbox:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.link-accent {
  font-size: 0.875rem;
  font-weight: 500;
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-accent:hover {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Messages */
.message {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out;
}

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

.message-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.message-error::before {
  content: '⚠';
  font-size: 1.125rem;
}

.message-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.message-success::before {
  content: '✓';
  font-size: 1.125rem;
}

/* Futuristic Button */
.futuristic-button {
  position: relative;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 20px rgba(59, 130, 246, 0.4),
    0 0 40px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.futuristic-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 30px rgba(59, 130, 246, 0.6),
    0 0 60px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.futuristic-button:active:not(:disabled) {
  transform: translateY(0);
}

.futuristic-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.button-text .material-icons-outlined {
  font-size: 1.25rem;
}

.button-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #60a5fa, #818cf8, #a78bfa);
  opacity: 0;
  filter: blur(10px);
  border-radius: 16px;
  transition: opacity 0.3s ease;
}

.futuristic-button:hover:not(:disabled) .button-glow {
  opacity: 0.5;
  animation: buttonPulse 1.5s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.button-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.divider-text {
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.9);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.social-button:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.social-icon {
  width: 20px;
  height: 20px;
}

/* Register Prompt */
.register-prompt {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.link-bold {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.link-bold .material-icons-outlined {
  font-size: 1rem;
}

/* Login Footer */
.login-footer {
  text-align: center;
  margin-top: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.5);
}

/* Responsive */
@media (max-width: 640px) {
  .login-card {
    padding: 2rem 1.5rem;
  }
  
  .brand-name {
    font-size: 2rem;
  }
  
  .brand-logo {
    width: 80px;
    height: 80px;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .social-login {
    gap: 0.5rem;
  }
  
  .social-button {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
}
