/* Elite Tax splash screen — all classes prefixed etx- to avoid clashing with Tailwind/style.css */
html.etx-lock, html.etx-lock body { overflow: hidden; }
html.etx-skip #etx-splash { display: none !important; }

#etx-splash {
  --etx-blue: #4aa8fb;
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, #f3f9ff 0%, #ffffff 62%);
  font-family: 'Poppins', system-ui, sans-serif;
  opacity: 1; visibility: visible;
  transition: opacity .7s ease, visibility .7s ease;
}
#etx-splash.etx-hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* Icon stage */
.etx-stage { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.etx-icon {
  position: relative; z-index: 2; width: 120px; height: 120px; object-fit: contain;
  opacity: 0; transform: scale(.55);
  animation:
    etx-pop 1.1s cubic-bezier(.2,.9,.25,1.25) .2s forwards,
    etx-pulse 2.2s ease-in-out 1.3s infinite;
  transition: transform .7s cubic-bezier(.5,0,.2,1), filter .7s ease;
}
#etx-splash.etx-hide .etx-icon { animation: none; opacity: 1; transform: scale(1.25); filter: blur(4px); }

/* Ripple rings */
.etx-ring {
  position: absolute; inset: 6px; z-index: 1; border-radius: 38%;
  border: 2px solid var(--etx-blue); opacity: 0;
  animation: etx-ripple 2.8s cubic-bezier(.2,.6,.3,1) 1.3s infinite;
}
.etx-ring:nth-child(2) { animation-delay: 2.7s; }

/* Brand text */
.etx-name, .etx-tag { opacity: 0; transform: translateY(12px); text-align: center; }
.etx-name {
  margin-top: 34px; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; color: #0b0234;
  animation: etx-rise .9s ease .9s forwards;
}
.etx-tag {
  margin-top: 6px; font-size: .85rem; font-style: italic; color: var(--etx-blue);
  animation: etx-rise .9s ease 1.5s forwards;
}

/* Progress bar */
.etx-bar {
  position: relative; width: 150px; height: 3px; margin-top: 28px; overflow: hidden;
  border-radius: 3px; background: #e3effb; opacity: 0; animation: etx-rise .8s ease 2s forwards;
}
.etx-bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--etx-blue), transparent);
  animation: etx-slide 1.6s ease-in-out infinite;
}

@keyframes etx-pop    { to { opacity: 1; transform: scale(1); } }
@keyframes etx-pulse  {
  0%, 100% { transform: scale(1);    opacity: 1;   filter: drop-shadow(0 0 0 rgba(74,168,251,0)); }
  50%      { transform: scale(1.08); opacity: .6;  filter: drop-shadow(0 8px 22px rgba(74,168,251,.55)); }
}
@keyframes etx-ripple { 0% { opacity: .55; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes etx-rise   { to { opacity: 1; transform: translateY(0); } }
@keyframes etx-slide  { 0% { left: -45%; } 100% { left: 100%; } }

@media (max-width: 480px) {
  .etx-name { font-size: .95rem; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .etx-icon { animation: etx-pop .01s forwards; }
  .etx-ring, .etx-bar::after { animation: none; }
  .etx-name, .etx-tag, .etx-bar { animation-duration: .01s; animation-delay: 0s; }
  #etx-splash { transition-duration: .01s; }
}
