::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a1a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #818cf8, #a78bfa);
}

.glow-blue {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3), 0 0 45px rgba(99, 102, 241, 0.1);
  animation: rgbGlow 5s ease infinite;
}
.glow-blue-lg {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), 0 0 60px rgba(99, 102, 241, 0.15), 0 0 100px rgba(99, 102, 241, 0.05);
}
.glow-purple {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3), 0 0 45px rgba(139, 92, 246, 0.1);
}
.glow-purple-lg {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.15), 0 0 100px rgba(139, 92, 246, 0.05);
}

.text-glow {
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5), rgba(99, 102, 241, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes rgbShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes rgbGlow {
  0%   { box-shadow: 0 0 15px rgba(99, 102, 241, 0.5), 0 0 30px rgba(99, 102, 241, 0.2), 0 0 60px rgba(139, 92, 246, 0.1); }
  33%  { box-shadow: 0 0 15px rgba(139, 92, 246, 0.5), 0 0 30px rgba(236, 72, 153, 0.2), 0 0 60px rgba(59, 130, 246, 0.1); }
  66%  { box-shadow: 0 0 15px rgba(59, 130, 246, 0.5), 0 0 30px rgba(99, 102, 241, 0.2), 0 0 60px rgba(236, 72, 153, 0.1); }
  100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.5), 0 0 30px rgba(99, 102, 241, 0.2), 0 0 60px rgba(139, 92, 246, 0.1); }
}
@keyframes rgbBorder {
  0%   { border-color: rgba(99, 102, 241, 0.5); }
  33%  { border-color: rgba(139, 92, 246, 0.5); }
  66%  { border-color: rgba(59, 130, 246, 0.5); }
  100% { border-color: rgba(99, 102, 241, 0.5); }
}

.btn-gradient {
  background: linear-gradient(135deg, #00d4ff, #6366f1, #00d4ff, #8b5cf6, #00d4ff);
  background-size: 400% 400%;
  animation: rgbShift 3s ease infinite;
  transition: all 0.3s ease;
  box-shadow:
    0 0 15px rgba(0, 212, 255, 0.5),
    0 0 40px rgba(99, 102, 241, 0.3),
    0 0 80px rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.btn-gradient:hover {
  animation: rgbShift 1.5s ease infinite;
  box-shadow:
    0 0 25px rgba(0, 212, 255, 0.7),
    0 0 60px rgba(99, 102, 241, 0.5),
    0 0 120px rgba(0, 212, 255, 0.25),
    0 0 180px rgba(139, 92, 246, 0.1);
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.2);
  border-color: rgba(0, 212, 255, 0.6);
}

.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35), 0 0 50px rgba(139, 92, 246, 0.15), 0 0 80px rgba(236, 72, 153, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  animation: rgbGlow 3s ease infinite;
}

.tag-chip {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  transition: all 0.3s ease;
}
.tag-chip:hover, .tag-chip.active {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3), 0 0 20px rgba(139, 92, 246, 0.15);
  animation: rgbBorder 3s ease infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 15px rgba(99, 102, 241, 0.4), 0 0 45px rgba(99, 102, 241, 0.15), 0 0 80px rgba(99, 102, 241, 0.05); }
  25%  { box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 55px rgba(139, 92, 246, 0.2), 0 0 90px rgba(236, 72, 153, 0.08); }
  50%  { box-shadow: 0 0 25px rgba(236, 72, 153, 0.4), 0 0 60px rgba(236, 72, 153, 0.15), 0 0 100px rgba(59, 130, 246, 0.08); }
  75%  { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 55px rgba(59, 130, 246, 0.2), 0 0 90px rgba(99, 102, 241, 0.08); }
  100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.4), 0 0 45px rgba(99, 102, 241, 0.15), 0 0 80px rgba(99, 102, 241, 0.05); }
}
.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-orb-1 {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bg-orb-2 {
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-blur {
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.download-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
  animation: rgbBorder 4s ease infinite;
}

.card-disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.5);
}

.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.5s ease;
}
.img-zoom:hover img {
  transform: scale(1.1);
}

.btn-outline-rgb {
  position: relative;
  transition: all 0.3s ease;
}
.btn-outline-rgb:hover {
  border-color: transparent;
  animation: rgbBorder 2s ease infinite;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25), 0 0 30px rgba(139, 92, 246, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.logo-rgb:hover {
  animation: rgbGlow 2s ease infinite;
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  pointer-events: none;
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

.search-focus:focus-within {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.5);
}

/* ── Plugin Detail Modal ── */
.mod-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.mod-modal-overlay.visible {
  opacity: 1;
}
.mod-modal-overlay.hidden {
  display: none;
}
.mod-modal-container {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
}
.mod-modal {
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.mod-modal-overlay.visible .mod-modal {
  transform: translateY(0) scale(1);
}
.mod-modal-scroll {
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}
.mod-modal-scroll::-webkit-scrollbar {
  width: 5px;
}
.mod-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.mod-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 3px;
}
.mod-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.mod-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.mod-modal-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}
.mod-modal-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}
.mod-modal-feature::before {
  content: '•';
  color: #818cf8;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
