/* Elegance Hair Studio - Advanced Responsive Design Enhancements */

/* CSS Custom Properties (CSS Variables) for Responsive Design */
:root {
  /* Spacing System */
  --spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --spacing-sm: clamp(0.5rem, 1vw, 1rem);
  --spacing-md: clamp(1rem, 2vw, 1.5rem);
  --spacing-lg: clamp(1.5rem, 3vw, 2rem);
  --spacing-xl: clamp(2rem, 4vw, 3rem);
  --spacing-xxl: clamp(3rem, 6vw, 5rem);
  
  /* Fluid Typography */
  --font-size-xs: clamp(0.75rem, 0.9vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 1vw, 1rem);
  --font-size-base: clamp(1rem, 1.2vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1.5vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 2vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 3vw, 2rem);
  --font-size-3xl: clamp(2rem, 4vw, 2.5rem);
  --font-size-4xl: clamp(2.5rem, 5vw, 3.5rem);
  --font-size-5xl: clamp(3rem, 6vw, 4.5rem);
  
  /* Container Sizes */
  --container-xs: 20rem;    /* 320px */
  --container-sm: 36rem;    /* 576px */
  --container-md: 48rem;    /* 768px */
  --container-lg: 62rem;    /* 992px */
  --container-xl: 75rem;    /* 1200px */
  --container-2xl: 87.5rem; /* 1400px */
  
  /* Grid System */
  --grid-columns: 12;
  --grid-gutter: var(--spacing-md);
  
  /* Transition System */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Border Radius System */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-full: 50%;
  
  /* Shadow System */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Z-index System */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-offcanvas: 1050;
  --z-modal: 1060;
  --z-popover: 1070;
  --z-tooltip: 1080;
  --z-toast: 1090;
}

/* Enhanced Container System */
.container-fluid {
  width: 100%;
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-md);
  margin-right: auto;
  margin-left: auto;
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-2xl {
  width: 100%;
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-md);
  margin-right: auto;
  margin-left: auto;
}

/* Responsive Container Queries */
@container (min-width: 576px) {
  .container-sm { max-width: var(--container-sm); }
}

@container (min-width: 768px) {
  .container,
  .container-sm,
  .container-md { max-width: var(--container-md); }
}

@container (min-width: 992px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg { max-width: var(--container-lg); }
}

@container (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl { max-width: var(--container-xl); }
}

@container (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-2xl { max-width: var(--container-2xl); }
}

/* Enhanced Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--grid-gutter) / -2);
  margin-left: calc(var(--grid-gutter) / -2);
}

[class*="col"] {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--grid-gutter) / 2);
  padding-left: calc(var(--grid-gutter) / 2);
}

/* Auto-layout columns */
.col-auto { flex: 0 0 auto; width: auto; }
.col { flex: 1 0 0%; }

/* Specific column widths */
.col-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* Responsive Typography Enhancements */
.text-responsive {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

h1, .h1 { font-size: var(--font-size-5xl); line-height: 1.2; }
h2, .h2 { font-size: var(--font-size-4xl); line-height: 1.3; }
h3, .h3 { font-size: var(--font-size-3xl); line-height: 1.4; }
h4, .h4 { font-size: var(--font-size-2xl); line-height: 1.5; }
h5, .h5 { font-size: var(--font-size-xl); line-height: 1.5; }
h6, .h6 { font-size: var(--font-size-lg); line-height: 1.6; }

/* Enhanced Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-modal-backdrop);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 80vw);
  height: 100%;
  background: white;
  box-shadow: var(--shadow-xl);
  transition: right var(--transition-base);
  z-index: var(--z-offcanvas);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-menu a {
  display: block;
  padding: var(--spacing-md);
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-nav-menu a:hover {
  background: #f9fafb;
  color: #d4af37;
}

/* Touch-Friendly Interactive Elements */
.touch-friendly {
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.touch-friendly:hover,
.touch-friendly:focus {
  transform: scale(1.05);
}

.touch-friendly:active {
  transform: scale(0.98);
}

/* Enhanced Form Elements */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: none;
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #d4af37;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Responsive Images and Media */
.img-responsive {
  max-width: 100%;
  height: auto;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Aspect Ratio Utilities */
.aspect-ratio-16-9 { aspect-ratio: 16 / 9; }
.aspect-ratio-4-3 { aspect-ratio: 4 / 3; }
.aspect-ratio-1-1 { aspect-ratio: 1 / 1; }
.aspect-ratio-3-2 { aspect-ratio: 3 / 2; }

/* Modern Layout Utilities */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

/* Flexbox Utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.justify-content-evenly { justify-content: space-evenly; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-baseline { align-items: baseline; }
.align-items-stretch { align-items: stretch; }

/* CSS Grid Utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

/* Spacing Utilities */
.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-xs); }
.m-2 { margin: var(--spacing-sm); }
.m-3 { margin: var(--spacing-md); }
.m-4 { margin: var(--spacing-lg); }
.m-5 { margin: var(--spacing-xl); }
.m-auto { margin: auto; }

/* Text Utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }

/* Enhanced Responsive Breakpoints */

/* Extra Small (xs) */
@media (max-width: 575.98px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-2xl {
    max-width: 100%;
    padding-right: var(--spacing-sm);
    padding-left: var(--spacing-sm);
  }
  
  .d-xs-none { display: none; }
  .d-xs-block { display: block; }
  .d-xs-flex { display: flex; }
  .d-xs-grid { display: grid; }
  
  .text-xs-center { text-align: center; }
  .text-xs-left { text-align: left; }
  .text-xs-right { text-align: right; }
  
  .flex-xs-column { flex-direction: column; }
  .flex-xs-row { flex-direction: row; }
  
  .col-xs-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-xs-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-xs-3 { flex: 0 0 auto; width: 25%; }
  .col-xs-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xs-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-xs-6 { flex: 0 0 auto; width: 50%; }
  .col-xs-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-xs-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-xs-9 { flex: 0 0 auto; width: 75%; }
  .col-xs-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-xs-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-xs-12 { flex: 0 0 auto; width: 100%; }
  
  /* Enhanced mobile typography */
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
  }
}

/* Small (sm) */
@media (min-width: 576px) {
  .container-sm { max-width: var(--container-sm); }
  
  .d-sm-none { display: none; }
  .d-sm-block { display: block; }
  .d-sm-flex { display: flex; }
  .d-sm-grid { display: grid; }
  
  .text-sm-center { text-align: center; }
  .text-sm-left { text-align: left; }
  .text-sm-right { text-align: right; }
  
  .flex-sm-column { flex-direction: column; }
  .flex-sm-row { flex-direction: row; }
  
  .col-sm-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

/* Medium (md) */
@media (min-width: 768px) {
  .container,
  .container-sm,
  .container-md { max-width: var(--container-md); }
  
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
  .d-md-grid { display: grid; }
  
  .text-md-center { text-align: center; }
  .text-md-left { text-align: left; }
  .text-md-right { text-align: right; }
  
  .flex-md-column { flex-direction: column; }
  .flex-md-row { flex-direction: row; }
  
  .col-md-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* Large (lg) */
@media (min-width: 992px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg { max-width: var(--container-lg); }
  
  .d-lg-none { display: none; }
  .d-lg-block { display: block; }
  .d-lg-flex { display: flex; }
  .d-lg-grid { display: grid; }
  
  .text-lg-center { text-align: center; }
  .text-lg-left { text-align: left; }
  .text-lg-right { text-align: right; }
  
  .flex-lg-column { flex-direction: column; }
  .flex-lg-row { flex-direction: row; }
  
  .col-lg-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Extra Large (xl) */
@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl { max-width: var(--container-xl); }
  
  .d-xl-none { display: none; }
  .d-xl-block { display: block; }
  .d-xl-flex { display: flex; }
  .d-xl-grid { display: grid; }
  
  .col-xl-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-xl-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-xl-3 { flex: 0 0 auto; width: 25%; }
  .col-xl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-xl-6 { flex: 0 0 auto; width: 50%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-xl-9 { flex: 0 0 auto; width: 75%; }
  .col-xl-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-xl-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* Extra Extra Large (xxl) */
@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-2xl { max-width: var(--container-2xl); }
  
  .d-xxl-none { display: none; }
  .d-xxl-block { display: block; }
  .d-xxl-flex { display: flex; }
  .d-xxl-grid { display: grid; }
  
  .col-xxl-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-xxl-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-xxl-3 { flex: 0 0 auto; width: 25%; }
  .col-xxl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xxl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-xxl-6 { flex: 0 0 auto; width: 50%; }
  .col-xxl-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-xxl-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-xxl-9 { flex: 0 0 auto; width: 75%; }
  .col-xxl-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-xxl-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-xxl-12 { flex: 0 0 auto; width: 100%; }
}

/* Performance Optimizations */
.will-change-transform { will-change: transform; }
.will-change-opacity { will-change: opacity; }
.will-change-contents { will-change: contents; }

/* CSS Containment for Performance */
.contain-layout { contain: layout; }
.contain-style { contain: style; }
.contain-size { contain: size; }
.contain-paint { contain: paint; }

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn,
  .form-control,
  .card {
    border-width: 2px;
  }
}

/* Focus management for keyboard navigation */
.focus-trap {
  position: relative;
}

.focus-trap:focus-within {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  .navbar,
  .footer,
  .btn,
  .modal,
  .offcanvas {
    display: none !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
}

/* Modern viewport units for better mobile support */
@supports (height: 100dvh) {
  .min-h-screen { min-height: 100dvh; }
  .h-screen { height: 100dvh; }
}

@supports (height: 100svh) {
  .min-h-screen-small { min-height: 100svh; }
  .h-screen-small { height: 100svh; }
}

@supports (height: 100lvh) {
  .min-h-screen-large { min-height: 100lvh; }
  .h-screen-large { height: 100lvh; }
}

/* Modern scrollbar styling */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #b8941f;
}

/* Loading and skeleton states */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  border-top-color: #d4af37;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modern backdrop filters */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* Safe area inset support for mobile devices */
@supports (padding-top: env(safe-area-inset-top)) {
  .safe-area-inset-top { padding-top: env(safe-area-inset-top); }
  .safe-area-inset-right { padding-right: env(safe-area-inset-right); }
  .safe-area-inset-bottom { padding-bottom: env(safe-area-inset-bottom); }
  .safe-area-inset-left { padding-left: env(safe-area-inset-left); }
}