:root {
  --bg-base: #eef2f9;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.42);
  --border-glass: rgba(255, 255, 255, 0.65);
  --border-glass-soft: rgba(15, 23, 42, 0.06);
  --text-muted: #64748b;
  --shadow-glass: 0 18px 45px -22px rgba(15, 23, 42, 0.28), 0 4px 14px -6px rgba(15, 23, 42, 0.08);
  --shadow-glass-lg: 0 32px 70px -30px rgba(15, 23, 42, 0.42), 0 8px 20px -8px rgba(15, 23, 42, 0.12);
}

html.dark {
  --bg-base: #060a15;
  --surface: rgba(20, 28, 48, 0.55);
  --surface-strong: rgba(17, 24, 42, 0.85);
  --surface-soft: rgba(20, 28, 48, 0.35);
  --border-glass: rgba(148, 163, 184, 0.14);
  --border-glass-soft: rgba(148, 163, 184, 0.08);
  --text-muted: #94a3b8;
  --shadow-glass: 0 18px 45px -22px rgba(0, 0, 0, 0.6), 0 4px 14px -6px rgba(0, 0, 0, 0.45);
  --shadow-glass-lg: 0 32px 70px -30px rgba(0, 0, 0, 0.75), 0 8px 20px -8px rgba(0, 0, 0, 0.55);
}

* { -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg-base); }
body { min-height: 100dvh; }

.glass {
  background: var(--surface);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}
.glass-strong {
  background: var(--surface-strong);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass-lg);
}
.glass-soft {
  background: var(--surface-soft);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  border: 1px solid var(--border-glass);
}

.bg-mesh {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 620px 620px at 0% 0%,   rgba(59,130,246,0.28), transparent 65%),
    radial-gradient(ellipse 560px 560px at 100% 25%, rgba(168,85,247,0.22), transparent 65%),
    radial-gradient(ellipse 520px 520px at 25% 100%, rgba(6,182,212,0.20),  transparent 65%);
}
html.dark .bg-mesh {
  background:
    radial-gradient(ellipse 620px 620px at 0% 0%,   rgba(59,130,246,0.16), transparent 65%),
    radial-gradient(ellipse 560px 560px at 100% 25%, rgba(168,85,247,0.14), transparent 65%),
    radial-gradient(ellipse 520px 520px at 25% 100%, rgba(6,182,212,0.12),  transparent 65%);
}

.bg-mesh__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
html.dark .bg-mesh__grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.45); background-clip: padding-box; }

.skeleton {
  background: linear-gradient(90deg,
    rgba(148,163,184,0.12) 0%,
    rgba(148,163,184,0.22) 50%,
    rgba(148,163,184,0.12) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.6s ease-in-out infinite;
}
html.dark .skeleton {
  background: linear-gradient(90deg,
    rgba(148,163,184,0.08) 0%,
    rgba(148,163,184,0.18) 50%,
    rgba(148,163,184,0.08) 100%);
  background-size: 200% 100%;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.premium-loader {
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.premium-loader--on { opacity: 1; pointer-events: auto; }

.premium-loader__backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%,
      rgba(11,87,208,0.35) 0%,
      rgba(6,10,21,0.82) 55%,
      rgba(6,10,21,0.94) 100%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.premium-loader__inner {
  position: relative; z-index: 1;
  height: 100%; width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 26px; padding: 24px;
  animation: loaderIn 500ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
@keyframes loaderIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.premium-loader__stage {
  position: relative;
  width: 170px; height: 170px;
  display: flex; align-items: center; justify-content: center;
}

.premium-loader__halo {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(96, 165, 250, 0.55);
  animation: haloPulse 2.6s ease-out infinite;
}
.premium-loader__halo--delay { animation-delay: 1.3s; }
@keyframes haloPulse {
  0%   { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(1.75); opacity: 0; }
}

.premium-loader__orb {
  position: relative; z-index: 2;
  width: 78px; height: 78px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  background: linear-gradient(135deg, #0b57d0 0%, #6366f1 55%, #a855f7 100%);
  box-shadow:
    0 24px 60px -14px rgba(11,87,208,0.75),
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 0 40px -8px rgba(168,85,247,0.6);
  animation: orbFloat 3.2s ease-in-out infinite;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-6px) rotate(-1.5deg); }
}

.premium-loader__ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  animation: ringRotate 2.6s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.premium-loader__track {
  fill: none;
  stroke: rgba(148, 197, 255, 0.16);
  stroke-width: 2;
}
.premium-loader__arc {
  fill: none;
  stroke: #93c5fd;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-dasharray: 92 245;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.95));
}

.premium-loader__caption {
  color: #e2e8f0;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center; min-height: 20px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.premium-loader__dots { display: flex; gap: 7px; margin-top: -6px; }
.premium-loader__dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(191, 219, 254, 0.85);
  animation: dotBounce 1.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(147, 197, 253, 0.8);
}
.premium-loader__dots span:nth-child(2) { animation-delay: 0.15s; }
.premium-loader__dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.55); opacity: 0.35; }
  40%           { transform: scale(1);    opacity: 1; }
}

#splash {
  background: radial-gradient(ellipse at 50% 40%,
    rgba(11,87,208,0.30) 0%,
    rgba(6,10,21,0.92) 60%,
    #04070e 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up  { animation: fadeUp 500ms cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.anim-delay-1  { animation-delay: 60ms; }
.anim-delay-2  { animation-delay: 120ms; }
.anim-delay-3  { animation-delay: 180ms; }

.text-gradient {
  background: linear-gradient(135deg, #0b57d0, #6366f1 60%, #a855f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.dark .text-gradient {
  background: linear-gradient(135deg, #93c5fd, #c4b5fd 60%, #f0abfc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

#table-content table { border-collapse: separate; border-spacing: 0; }

#dd-menu {
  isolation: isolate;
  transform: none !important;
  animation: none !important;
}
#dd-menu.is-open {
  display: block;
  animation: ddIn 180ms cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
@keyframes ddIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

html.theme-plain .bg-mesh,
html.theme-plain .bg-mesh__grid { display: none; }

html.theme-plain .glass {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
html.theme-plain.dark .glass {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.theme-plain .glass-strong {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
html.theme-plain.dark .glass-strong {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

html.theme-plain .glass-soft {
  background: rgba(15, 23, 42, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
html.theme-plain.dark .glass-soft {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

html.theme-plain header .glass {
  background: #ffffff;
}
html.theme-plain.dark header .glass {
  background: #0f172a;
}
