/* DarkPentra — shared splash & app FX (login, dashboard, landing) */

body.dp-splash-active {
  overflow: hidden;
}

body.dp-splash-active [data-splash-hide] {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--dp-ease, ease);
}

body.dp-ready [data-splash-hide] {
  opacity: 1;
  pointer-events: auto;
}

.dp-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: #020408;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s;
}

.dp-splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dp-splash__inner {
  text-align: center;
  padding: 24px;
  max-width: 380px;
}

.dp-splash__logo {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
}

.dp-splash__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--dp-cyan, #00e5ff);
  border-right-color: rgba(0, 229, 255, 0.35);
  animation: dpSplashSpin 1.1s linear infinite;
}

.dp-splash__icon {
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  background: var(--dp-gradient-btn, linear-gradient(135deg, #00e5ff, #0284c7));
  display: grid;
  place-items: center;
  box-shadow: 0 0 48px rgba(0, 229, 255, 0.22);
  animation: dpSplashPulse 2s ease-in-out infinite;
}

.dp-splash__icon svg {
  width: 32px;
  height: 32px;
  color: #020408;
}

@keyframes dpSplashSpin {
  to { transform: rotate(360deg); }
}

@keyframes dpSplashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); box-shadow: 0 0 64px rgba(0, 229, 255, 0.4); }
}

.dp-splash__title {
  font-family: var(--dp-font-display, system-ui);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dp-text, #f8fafc);
  margin-bottom: 6px;
}

.dp-splash__tag {
  font-size: 0.85rem;
  color: var(--dp-text-muted, #94a3b8);
  margin-bottom: 28px;
}

.dp-splash__bar-wrap {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.dp-splash__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--dp-cyan, #00e5ff), var(--dp-sky, #38bdf8));
  box-shadow: 0 0 12px var(--dp-cyan, #00e5ff);
  transition: width 0.35s ease;
}

.dp-splash__status {
  font-family: var(--dp-font-mono, monospace);
  font-size: 0.72rem;
  color: var(--dp-cyan, #00e5ff);
  letter-spacing: 0.04em;
  min-height: 1.2em;
}

.dp-splash__skip {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--dp-text-subtle, #64748b);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}

.dp-splash__skip:hover {
  color: var(--dp-cyan, #00e5ff);
}

.dp-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 99998;
  background: linear-gradient(90deg, var(--dp-cyan, #00e5ff), var(--dp-sky, #38bdf8));
  box-shadow: 0 0 12px var(--dp-cyan, #00e5ff);
}

.dp-cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.07), transparent 70%);
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .dp-splash__ring,
  .dp-splash__icon {
    animation: none;
  }

  .dp-splash {
    display: none;
  }

  body.dp-splash-active {
    overflow: auto;
  }

  body.dp-splash-active [data-splash-hide] {
    opacity: 1;
    pointer-events: auto;
  }
}
