﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿@import url('liquid-glass.css');

.glass3d {
  --filter-glass3d: blur(32px) brightness(0.85) saturate(2.5);
  --color-glass3d: hsl(208 82% 28% / 0.2);
  --noise-glass3d: url("https://www.transparenttextures.com/patterns/egg-shell.png");

  position: relative;
  z-index: 4;
  box-shadow:
    0 0 0.75px hsl(205 20% 10% / 0.2),
    0.7px 0.8px 1.2px -0.4px hsl(205 20% 10% / 0.1),
    1.3px 1.5px 2.2px -0.8px hsl(205 20% 10% / 0.1),
    2.3px 2.6px 3.9px -1.2px hsl(205 20% 10% / 0.1),
    3.9px 4.4px 6.6px -1.7px hsl(205 20% 10% / 0.1),
    6.5px 7.2px 10.9px -2.1px hsl(205 20% 10% / 0.1),
    8px 9px 14px -2.5px hsl(205 20% 10% / 0.2);
}

.glass3d::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  z-index: 3;

  -webkit-backdrop-filter: var(--filter-glass3d);
  backdrop-filter: var(--filter-glass3d);
  background-color: var(--color-glass3d);
  background-image: var(--noise-glass3d);
  background-size: 100px;
  background-repeat: repeat;
}

.glass3d::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  z-index: 5;

  box-shadow:
    inset 2px 2px 1px -3px hsl(205 20% 90% / 0.8),
    inset 4px 4px 2px -6px hsl(205 20% 90% / 0.3),
    inset 1.5px 1.5px 1.5px -0.75px hsl(205 20% 90% / 0.15),
    inset 1.5px 1.5px 0.25px hsl(205 20% 90% / 0.03),
    inset 0 0 0.25px 0.5px hsl(205 20% 90% / 0.03);
}

.glass3d > * {
  position: relative;
  z-index: 6;
}

.glass-card {
  position: relative;
  z-index: 4;
  background: var(--lg-card-bg, rgba(255, 255, 255, 0.1));
  border-radius: var(--lg-radius-lg, 20px);
  box-shadow: var(--lg-card-shadow, 0 4px 30px rgba(0, 0, 0, 0.08));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--lg-card-border, rgba(255, 255, 255, 0.18));
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: -1;
}

.glass-modal {
  position: relative;
  z-index: 4;
  background: var(--lg-modal-bg, rgba(255, 255, 255, 0.12));
  border-radius: var(--lg-radius-xl, 24px);
  box-shadow: var(--lg-modal-shadow, 0 15px 50px rgba(0, 0, 0, 0.12));
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--lg-modal-border, rgba(255, 255, 255, 0.2));
  overflow: hidden;
}

.glass-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
  z-index: -1;
}

.glass-button {
  position: relative;
  background: var(--lg-btn-primary-bg, rgba(0, 122, 255, 0.85));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lg-btn-primary-border, rgba(0, 122, 255, 0.4));
  border-radius: 12px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: var(--lg-transition, all 0.3s ease);
  overflow: hidden;
}

.glass-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  z-index: 0;
}

.glass-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--lg-btn-primary-shadow, 0 4px 15px rgba(0, 122, 255, 0.3));
}

.glass-button:active {
  transform: translateY(0);
}

.glass-button > * {
  position: relative;
  z-index: 1;
}

.glass-input {
  position: relative;
  background: var(--lg-input-bg, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--lg-input-border, rgba(255, 255, 255, 0.2));
  border-radius: var(--lg-radius-sm, 10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: var(--lg-transition-fast, all 0.2s ease);
  color: var(--lg-text-primary, #fff);
}

.glass-input:focus {
  outline: none;
  border-color: var(--lg-input-focus-border, rgba(0, 122, 255, 0.6));
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), var(--lg-glass-inner-highlight, inset 0 1px 0 rgba(255, 255, 255, 0.4));
}

.glass-nav {
  position: relative;
  background: var(--lg-header-bg, rgba(255, 255, 255, 0.08));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--lg-header-border, rgba(255, 255, 255, 0.1));
}

.glass-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.glass-badge {
  position: relative;
  background: var(--lg-badge-info-bg, rgba(255, 255, 255, 0.15));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--lg-badge-info-border, rgba(255, 255, 255, 0.2));
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}

.glass-badge-success {
  background: var(--lg-badge-success-bg, rgba(52, 199, 89, 0.2));
  border-color: rgba(52, 199, 89, 0.3);
  color: var(--lg-badge-success-color, #4cd964);
}

.glass-badge-warning {
  background: var(--lg-badge-warning-bg, rgba(255, 159, 10, 0.2));
  border-color: rgba(255, 159, 10, 0.3);
  color: var(--lg-badge-warning-color, #ffb340);
}

.glass-badge-danger {
  background: var(--lg-badge-danger-bg, rgba(255, 59, 48, 0.2));
  border-color: rgba(255, 59, 48, 0.3);
  color: var(--lg-badge-danger-color, #ff6961);
}

.glass-badge-info {
  background: var(--lg-badge-info-bg, rgba(0, 122, 255, 0.2));
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--lg-badge-info-color, #64a0ff);
}

.glass-alert {
  position: relative;
  background: var(--lg-glass-bg, rgba(255, 255, 255, 0.12));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--lg-glass-border, rgba(255, 255, 255, 0.2));
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.glass-alert-success {
  background: var(--lg-badge-success-bg, rgba(52, 199, 89, 0.15));
  border-color: rgba(52, 199, 89, 0.25);
  color: var(--lg-badge-success-color, #4cd964);
}

.glass-alert-warning {
  background: var(--lg-badge-warning-bg, rgba(255, 159, 10, 0.15));
  border-color: rgba(255, 159, 10, 0.25);
  color: var(--lg-badge-warning-color, #ffb340);
}

.glass-alert-danger {
  background: var(--lg-badge-danger-bg, rgba(255, 59, 48, 0.15));
  border-color: rgba(255, 59, 48, 0.25);
  color: var(--lg-badge-danger-color, #ff6961);
}

.glass-alert-info {
  background: var(--lg-badge-info-bg, rgba(0, 122, 255, 0.15));
  border-color: rgba(0, 122, 255, 0.25);
  color: var(--lg-badge-info-color, #64a0ff);
}

.glass-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--lg-overlay-bg, rgba(0, 0, 0, 0.5));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.glass-tooltip {
  position: relative;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  z-index: 9999;
}

.glass-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-glass-border, rgba(255, 255, 255, 0.3)), transparent);
  margin: 16px 0;
}

.glass-shadow {
  box-shadow: var(--lg-card-shadow, 0 4px 12px rgba(0, 0, 0, 0.1));
}

.glass-shadow-lg {
  box-shadow: var(--lg-card-shadow-hover, 0 8px 40px rgba(0, 0, 0, 0.15));
}

.glass-shadow-xl {
  box-shadow: var(--lg-modal-shadow, 0 15px 50px rgba(0, 0, 0, 0.2));
}

.glass-light-track {
  position: relative;
  overflow: hidden;
}

.glass-light-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.12),
    transparent 40%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-light-track:hover::before {
  opacity: 1;
}

.glass-rotating-highlight {
  position: relative;
  overflow: hidden;
}

.glass-rotating-highlight::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 255, 255, 0.03) 60deg,
    transparent 120deg
  );
  animation: glassLightRotate 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glassLightRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.glass-variable-blur {
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.glass-fade-enter {
  animation: glassFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.glass-fade-leave {
  animation: glassFadeOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes glassFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.glass-section {
  position: relative;
  background: var(--lg-section-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--lg-radius-lg);
  box-shadow: var(--lg-card-shadow);
  border: 1px solid var(--lg-section-border);
  overflow: visible;
  transition: var(--lg-transition);
}

.glass-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.glass-section > * {
  position: relative;
  z-index: 1;
}

.glass-section:hover {
  box-shadow: var(--lg-card-shadow-hover);
}

.glass-tab-bar {
  position: relative;
  background: var(--lg-glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--lg-glass-border);
  border-radius: var(--lg-radius-lg);
  padding: 6px;
  display: flex;
  gap: 4px;
}

.glass-tab-item {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--lg-text-secondary);
  border-radius: var(--lg-radius-sm);
  cursor: pointer;
  transition: var(--lg-transition-fast);
  border: none;
  background: none;
}

.glass-tab-item:hover {
  color: var(--lg-text-primary);
  background: var(--lg-item-hover);
}

.glass-tab-item.active {
  color: #fff;
  background: var(--lg-btn-primary-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lg-btn-primary-border);
  box-shadow: var(--lg-btn-primary-shadow);
}

.glass-search-box {
  position: relative;
  background: var(--lg-card-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--lg-radius-lg);
  box-shadow: var(--lg-card-shadow);
  border: 1px solid var(--lg-card-border);
  padding: 24px;
}

.glass-search-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.glass-result-box {
  position: relative;
  background: var(--lg-card-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--lg-radius-lg);
  box-shadow: var(--lg-card-shadow);
  border: 1px solid var(--lg-card-border);
  overflow: hidden;
}

.glass-result-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.glass-result-header {
  padding: 16px 24px;
  background: var(--lg-section-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lg-divider);
  font-weight: 600;
  color: var(--lg-text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.glass-result-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--lg-divider);
  transition: var(--lg-transition-fast);
}

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

.glass-result-item:hover {
  background: var(--lg-item-hover);
}

.glass-form-box {
  position: relative;
  background: var(--lg-card-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--lg-radius-lg);
  box-shadow: var(--lg-card-shadow);
  border: 1px solid var(--lg-card-border);
  padding: 32px;
}

.glass-form-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.glass-tips {
  position: relative;
  background: var(--lg-badge-warning-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 159, 10, 0.25);
  border-radius: var(--lg-radius-md);
  padding: 20px;
  margin-bottom: 24px;
  color: var(--lg-badge-warning-color);
}

.glass-tips h4 {
  margin-bottom: 10px;
  font-size: 15px;
}

.glass-tips ul {
  margin-left: 20px;
}

.glass-tips li {
  margin: 4px 0;
}

.glass-footer {
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--lg-text-primary);
}

.glass-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.glass-page-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.glass-page-bg-color {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--lg-bg-gradient-1), var(--lg-bg-gradient-2), var(--lg-bg-gradient-3), var(--lg-bg-gradient-4));
  background-size: 400% 400%;
  animation: lgGradientShift 15s ease infinite;
}

.glass-page-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

.glass-page-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.glass-emergency-card {
  background: var(--lg-glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lg-glass-border);
  border-radius: var(--lg-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.glass-emergency-card .card-header {
  background: var(--lg-section-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--lg-divider);
}

.glass-emergency-card .card-body {
  padding: 16px;
}

.glass-image-upload-card {
  background: var(--lg-glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--lg-glass-border);
  border-radius: var(--lg-radius-md);
  padding: 12px;
}

.glass-upload-area {
  cursor: pointer;
  border: 2px dashed var(--lg-input-border);
  border-radius: var(--lg-radius-sm);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--lg-transition-fast);
}

.glass-upload-area:hover {
  border-color: var(--lg-primary);
  background: rgba(0, 122, 255, 0.05);
}

.glass-ripple-container {
  position: relative;
  overflow: hidden;
}

.glass-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
  transform: scale(0);
  animation: glassRipple 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes glassRipple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.glass-entrance {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-entrance.glass-visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-entrance-delay-1 { transition-delay: 0.1s; }
.glass-entrance-delay-2 { transition-delay: 0.2s; }
.glass-entrance-delay-3 { transition-delay: 0.3s; }
.glass-entrance-delay-4 { transition-delay: 0.4s; }
.glass-entrance-delay-5 { transition-delay: 0.5s; }

.glass-page-transition {
  animation: glassPageIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes glassPageIn {
  0% {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.glass-stagger-1 { animation-delay: 0.05s; }
.glass-stagger-2 { animation-delay: 0.1s; }
.glass-stagger-3 { animation-delay: 0.15s; }
.glass-stagger-4 { animation-delay: 0.2s; }
.glass-stagger-5 { animation-delay: 0.25s; }
.glass-stagger-6 { animation-delay: 0.3s; }

.glass-float {
  animation: glassFloat 6s ease-in-out infinite;
}

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

.glass-pulse-glow {
  animation: glassPulseGlow 3s ease-in-out infinite;
}

@keyframes glassPulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 122, 255, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 122, 255, 0.3), 0 0 60px rgba(139, 92, 246, 0.15); }
}

@media (prefers-color-scheme: dark) {
    .glass-card {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .glass-modal {
        border-color: rgba(255, 255, 255, 0.12);
    }

    .glass-input {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .glass-button {
        background: rgba(76, 217, 100, 0.8);
        border-color: rgba(76, 217, 100, 0.4);
    }

    .glass-search-box,
    .glass-result-box,
    .glass-form-box {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .glass-tab-bar {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .glass-upload-area:hover {
        background: rgba(76, 217, 100, 0.05);
        border-color: var(--lg-primary);
    }
}

.glass-liquid {
    position: relative;
    border-radius: inherit;
    overflow: hidden;
}

.glass-liquid::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    -webkit-backdrop-filter: blur(28px) saturate(220%) brightness(1.08);
    backdrop-filter: blur(28px) saturate(220%) brightness(1.08);
    background: var(--lg-glass-bg);
    pointer-events: none;
    z-index: 0;
}

.glass-liquid::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    filter: url(#liquid-glass-subtle);
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.glass-liquid > * {
    position: relative;
    z-index: 2;
}

.glass-iridescent {
    position: relative;
    overflow: hidden;
}

.glass-iridescent::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        rgba(0, 122, 255, 0.04),
        rgba(139, 92, 246, 0.04),
        rgba(255, 255, 255, 0.08),
        transparent
    );
    animation: glassIridescent 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes glassIridescent {
    0% { left: -100%; }
    50% { left: 150%; }
    100% { left: -100%; }
}

.glass-inner-glow {
    position: relative;
}

.glass-inner-glow::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
    z-index: 5;
}

.glass-outer-glow {
    position: relative;
}

.glass-outer-glow::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(0, 122, 255, 0.15),
        rgba(139, 92, 246, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glass-outer-glow:hover::after {
    opacity: 1;
}

.glass-morph {
    animation: glassMorph 8s ease-in-out infinite;
}

@keyframes glassMorph {
    0%, 100% {
        border-radius: var(--lg-radius-lg);
    }
    25% {
        border-radius: calc(var(--lg-radius-lg) + 4px) calc(var(--lg-radius-lg) - 2px) calc(var(--lg-radius-lg) + 2px) calc(var(--lg-radius-lg) - 4px);
    }
    50% {
        border-radius: calc(var(--lg-radius-lg) - 2px) calc(var(--lg-radius-lg) + 4px) calc(var(--lg-radius-lg) - 4px) calc(var(--lg-radius-lg) + 2px);
    }
    75% {
        border-radius: calc(var(--lg-radius-lg) + 2px) calc(var(--lg-radius-lg) - 4px) calc(var(--lg-radius-lg) + 4px) calc(var(--lg-radius-lg) - 2px);
    }
}

.glass-shimmer {
    position: relative;
    overflow: hidden;
}

.glass-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 60%,
        transparent 100%
    );
    animation: glassShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes glassShimmer {
    0% { left: -100%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

.glass-noise {
    position: relative;
}

.glass-noise::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 4;
}

.glass-depth-card {
    position: relative;
    background: var(--lg-card-bg);
    border-radius: var(--lg-radius-lg);
    border: 1px solid var(--lg-card-border);
    -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
    backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 12px 24px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.glass-depth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), transparent);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.glass-depth-card:hover {
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 32px 64px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transform: translateY(-4px) scale(1.01);
}

.glass-depth-card > * {
    position: relative;
    z-index: 1;
}

.glass-login-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: var(--lg-card-bg);
    -webkit-backdrop-filter: blur(32px) saturate(220%) brightness(1.05);
    backdrop-filter: blur(32px) saturate(220%) brightness(1.05);
    border: 1px solid var(--lg-card-border);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 12px 24px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.06),
        0 40px 80px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    animation: glassPageIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.glass-login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
}

.glass-login-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(255, 255, 255, 0.04) 60deg,
        transparent 120deg
    );
    animation: glassLightRotate 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.glass-input-icon {
    position: relative;
}

.glass-input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lg-text-tertiary);
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 2;
}

.glass-input-icon input,
.glass-input-icon select {
    padding-left: 42px;
}

.glass-input-icon:focus-within i {
    color: var(--lg-primary);
}

.glass-input-icon:focus-within input,
.glass-input-icon:focus-within select {
    transform: translateY(-1px);
    border-color: var(--lg-input-focus-border);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), var(--lg-glass-inner-highlight);
}

.glass-btn-glow {
    position: relative;
    overflow: hidden;
}

.glass-btn-glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    border-radius: inherit;
    pointer-events: none;
}

.glass-btn-glow::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.4), rgba(139, 92, 246, 0.3));
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.glass-btn-glow:hover::after {
    opacity: 1;
}

.glass-header-gradient {
    position: relative;
    overflow: hidden;
}

.glass-header-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.6), rgba(139, 92, 246, 0.6));
    z-index: -1;
}

.glass-header-gradient::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .glass-depth-card {
        box-shadow:
            0 0 0 0.5px rgba(255, 255, 255, 0.06),
            0 1px 2px rgba(0, 0, 0, 0.2),
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 12px 24px rgba(0, 0, 0, 0.25),
            0 24px 48px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }

    .glass-depth-card:hover {
        box-shadow:
            0 0 0 0.5px rgba(255, 255, 255, 0.1),
            0 2px 4px rgba(0, 0, 0, 0.25),
            0 8px 16px rgba(0, 0, 0, 0.35),
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 32px 64px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }

    .glass-login-card {
        box-shadow:
            0 0 0 0.5px rgba(255, 255, 255, 0.08),
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 12px 24px rgba(0, 0, 0, 0.25),
            0 24px 48px rgba(0, 0, 0, 0.2),
            0 40px 80px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
}

.xp-liquid-v3 {
    --lg-bg: rgba(255, 255, 255, 0.1);
    --lg-border: rgba(255, 255, 255, 0.2);
    --lg-shadow: rgba(0, 0, 0, 0.18);
    --lg-highlight: rgba(255, 255, 255, 0.55);
    --lg-reflect: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 38%, transparent 58%);
    --lg-saturate: 210%;
    isolation: isolate;
}

.xp-liquid-v3.liquid-glass-container {
    overflow: hidden;
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.1),
        0 18px 50px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.xp-liquid-v3 .liquid-glass-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 0;
}

.xp-auth-stage {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    isolation: isolate;
}

.xp-auth-orb {
    position: fixed;
    width: 42vw;
    height: 42vw;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.42;
    pointer-events: none;
    z-index: 0;
}

.xp-auth-orb-one {
    top: -12vw;
    left: -10vw;
    background: rgba(0, 122, 255, 0.45);
}

.xp-auth-orb-two {
    right: -12vw;
    bottom: -14vw;
    background: rgba(255, 45, 146, 0.36);
}

.xp-liquid-panel {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(18, 18, 58, 0.58);
    -webkit-backdrop-filter: blur(34px) saturate(210%);
    backdrop-filter: blur(34px) saturate(210%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.xp-liquid-field {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--lg-text-primary);
}

.xp-liquid-field:focus {
    border-color: rgba(0, 212, 255, 0.62);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.xp-liquid-segment {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.glass-gradient-ripple,
.glass3d > .glass-gradient-ripple,
.xp-liquid-v3 > .glass-gradient-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    transform: scale(0);
    animation: lgGradientRipple 0.8s ease-out forwards;
}

.xp-liquid-v3 > .liquid-glass-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%) scale(0);
    animation: liquid-glass-ripple-animation 600ms ease-out forwards;
}

.xp-liquid-hero {
    --lg-blur: 46px;
    --lg-blur-cover: 5px;
    --lg-radius: 34px;
    --lg-bg: rgba(255, 255, 255, 0.08);
    min-height: 320px;
}

.xp-liquid-auth {
    --lg-blur: 42px;
    --lg-blur-cover: 4px;
    --lg-radius: 30px;
    --lg-bg: rgba(255, 255, 255, 0.12);
}

.xp-liquid-card {
    --lg-blur: 34px;
    --lg-blur-cover: 3px;
    --lg-radius: 22px;
    --lg-bg: rgba(255, 255, 255, 0.075);
}

.xp-liquid-cta {
    --lg-blur: 40px;
    --lg-blur-cover: 4px;
    --lg-radius: 30px;
    --lg-bg: rgba(255, 255, 255, 0.09);
}

.xp-liquid-nav {
    --lg-blur: 28px;
    --lg-blur-cover: 2px;
    --lg-radius: 0px;
    --lg-bg: rgba(30, 30, 92, 0.68);
}

.xp-liquid-v3::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.28), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(0, 212, 255, 0.12), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 46%);
    pointer-events: none;
    z-index: 2;
}

.xp-liquid-v3::after {
    content: "";
    position: absolute;
    inset: -35%;
    background: conic-gradient(from 18deg, transparent, rgba(255, 255, 255, 0.06), transparent, rgba(0, 122, 255, 0.05), transparent);
    pointer-events: none;
    z-index: 2;
}

.xp-liquid-v3:hover {
    transform: translateY(-2px);
}

.xp-liquid-auth:hover {
    transform: translateY(-3px) scale(1.005);
}

.xp-liquid-hero:hover,
.xp-liquid-card:hover,
.xp-liquid-cta:hover {
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.16),
        0 24px 70px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

@media (max-width: 768px) {
    .xp-liquid-v3 {
        --lg-blur: 24px;
        --lg-blur-cover: 2px;
    }

    .xp-liquid-v3::after {
        opacity: 0.55;
    }

    .xp-liquid-v3:hover,
    .xp-liquid-auth:hover,
    .xp-liquid-hero:hover,
    .xp-liquid-card:hover,
    .xp-liquid-cta:hover {
        transform: none;
    }
}
