
#glass-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, var(--bg-base, var(--loader-bg, #0b0f13)));
  opacity: 0;
  transition: opacity .38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
#glass-loader.in { opacity: 1; pointer-events: auto; }
#glass-loader .glass-shell {
  position: relative;
  width: min(30vw, 200px);
  height: min(30vw, 200px);
  border-radius: 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, 0, 0) scale(0.72);
  opacity: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 20px rgba(255, 255, 255, 0.3), inset 0 -2px 20px rgba(0, 0, 0, 0.1), 0 20px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease-out;
  z-index: 2;
  will-change: transform, opacity;
}
#glass-loader .glass-shell::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  opacity: 0.8;
  z-index: 1;
}
#glass-loader .glass-shell::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  top: -15%;
  left: -15%;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.9;
}
#glass-loader .glass-mark {
  position: relative;
  z-index: 4;
  width: 64%;
  height: 64%;
  opacity: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
  transition: opacity 0.4s ease-out;
}
#glass-loader.filled .glass-shell { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
#glass-loader.ascending .glass-shell { transition: none; }
#glass-loader.ascending .glass-shell.in-flight::after { opacity: 0.6; }
#glass-loader .airdrop-ring {
  position: absolute;
  width: min(30vw, 200px);
  height: min(30vw, 200px);
  border-radius: 34%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
  animation: airdrop-pulse 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 1;
}
@keyframes airdrop-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }
#glass-loader.filled .glass-mark { opacity: 1; }
