/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* -------------------------------------------------------------------------- */
/* CATEGORY 1: BUTTON ANIMATIONS                                             */
/* -------------------------------------------------------------------------- */

/* Liquid Wave Fill Button */
.btn-liquid-wave {
  position: relative;
  padding: 12px 30px;
  color: #6366f1;
  border: 2px solid #6366f1;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  z-index: 1;
  background: transparent;
  cursor: pointer;
  transition: color 0.4s ease;
}
.btn-liquid-wave::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 160%;
  height: 160%;
  background: #6366f1;
  border-radius: 40%;
  transform: translateX(-50%);
  transition: all 0.6s ease;
  z-index: -1;
}
.btn-liquid-wave:hover {
  color: #ffffff;
}
.btn-liquid-wave:hover::before {
  top: -20%;
  animation: rotate-wave 3s linear infinite;
}
@keyframes rotate-wave {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

/* Cyberpunk Glitch Button */
.btn-cyber-glitch {
  position: relative;
  background: linear-gradient(45deg, #ff0055, #00f0ff);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  transition: all 0.2s ease;
}
.btn-cyber-glitch:hover {
  animation: glitch-anim 0.3s infinite;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}
@keyframes glitch-anim {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

/* 3D Push Depth Button */
.btn-3d-push {
  background: #2563eb;
  color: white;
  font-weight: bold;
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 0 #1d4ed8, 0 12px 18px rgba(0,0,0,0.4);
  transition: all 0.1s ease;
}
.btn-3d-push:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #1d4ed8, 0 4px 8px rgba(0,0,0,0.4);
}

/* Glowing Neon Border Button */
.btn-neon-glow {
  position: relative;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  color: #00f0ff;
  background: #090d16;
  border: 1px solid #00f0ff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-neon-glow:hover {
  background: #00f0ff;
  color: #090d16;
  box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
}

/* Particle Ripple Trigger Button */
.btn-particle-trigger {
  position: relative;
  background: #10b981;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
}
.btn-particle-trigger::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 2px solid #10b981;
  opacity: 0;
  transition: all 0.4s ease;
}
.btn-particle-trigger:hover::after {
  opacity: 1;
  inset: -10px;
  border-color: transparent;
  box-shadow: 0 0 20px #10b981;
}

/* Magnetic Hover Sheen Button */
.btn-magnetic {
  position: relative;
  padding: 12px 28px;
  background: #1e1b4b;
  color: #818cf8;
  border: 1px solid #4338ca;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-magnetic:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
  color: #fff;
}

/* Shimmering Gradient Button */
.btn-shimmer {
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6, #ec4899);
  background-size: 300% 100%;
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  animation: shimmer-bg 4s infinite linear;
}
@keyframes shimmer-bg {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Metallic Pulse Button */
.btn-metallic {
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #64748b;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}
.btn-metallic:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* -------------------------------------------------------------------------- */
/* CATEGORY 2: SWITCHES & TOGGLES                                             */
/* -------------------------------------------------------------------------- */

/* Day / Night Toggle */
.toggle-daynight {
  width: 60px;
  height: 30px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  padding: 3px;
  transition: background 0.4s ease;
}
.toggle-daynight-thumb {
  width: 22px;
  height: 22px;
  background: #f59e0b;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background 0.4s;
  box-shadow: 0 0 10px #f59e0b;
}
.toggle-daynight.active {
  background: #0284c7;
  border-color: #38bdf8;
}
.toggle-daynight.active .toggle-daynight-thumb {
  transform: translateX(30px);
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

/* Cyberpunk Rocker Switch */
.switch-rocker {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 32px;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 6px;
  cursor: pointer;
}
.switch-rocker-state {
  position: absolute;
  inset: 2px;
  background: #ef4444;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.switch-rocker.on .switch-rocker-state {
  background: #22c55e;
  transform: scaleX(-1);
}

/* Neumorphic 3D Toggle */
.toggle-neumorphic {
  width: 60px;
  height: 30px;
  background: #1e293b;
  border-radius: 20px;
  box-shadow: inset 3px 3px 6px #0f172a, inset -3px -3px 6px #334155;
  padding: 3px;
  cursor: pointer;
  position: relative;
}
.toggle-neumorphic-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 2px 2px 5px #0f172a;
  transition: transform 0.3s ease;
}
.toggle-neumorphic.active .toggle-neumorphic-thumb {
  transform: translateX(30px);
  background: #818cf8;
}

/* Glowing Power Switch */
.toggle-power {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #334155;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.toggle-power.active {
  border-color: #22c55e;
  color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* -------------------------------------------------------------------------- */
/* CATEGORY 3: TOOLTIPS & BADGES                                              */
/* -------------------------------------------------------------------------- */

/* Directional Glassmorphic Tooltip Container */
.tooltip-container {
  position: relative;
  display: inline-block;
}
.tooltip-box {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.tooltip-container:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Animated Pulse Badge */
.badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 11px;
  font-weight: 600;
}
.badge-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 1.6s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Holographic Tag */
.badge-holo {
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(0, 240, 255, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* CATEGORY 4: FORMS & INPUTS                                                */
/* -------------------------------------------------------------------------- */

/* Border Beam Neon Input */
.input-border-beam {
  position: relative;
  width: 100%;
  max-width: 260px;
}
.input-border-beam input {
  width: 100%;
  padding: 10px 14px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  outline: none;
  transition: border-color 0.3s;
}
.input-border-beam input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

/* Focus Underline Wave Input */
.input-underline-wave {
  position: relative;
  width: 100%;
  max-width: 260px;
}
.input-underline-wave input {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid #334155;
  color: #fff;
  font-size: 12px;
  outline: none;
}
.input-underline-wave-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #00f0ff;
  transition: width 0.4s ease;
}
.input-underline-wave input:focus ~ .input-underline-wave-bar {
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/* CATEGORY 5: CARDS & CONTAINERS                                             */
/* -------------------------------------------------------------------------- */

/* Holographic 3D Tilt Card */
.card-holo {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-holo::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(115deg, transparent, rgba(0,240,255,0.15), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}
.card-holo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 240, 255, 0.1);
}
.card-holo:hover::before {
  inset: 100%;
}

/* Skeleton Shimmer Card Loader */
.card-skeleton {
  width: 100%;
  padding: 16px;
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid #1e293b;
  
}
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeleton-shimmer 1.5s infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* -------------------------------------------------------------------------- */
/* CATEGORY 6: LOADERS & SPINNERS                                             */
/* -------------------------------------------------------------------------- */

/* Dual Orbital Rings Loader */
.loader-dual-orbit {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid transparent;
  border-top-color: #6366f1;
  animation: spin-orbit 1s linear infinite;
}
.loader-dual-orbit::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #00f0ff;
  animation: spin-orbit-reverse 0.5s linear infinite;
}
@keyframes spin-orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes spin-orbit-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* DNA Strand Bouncing Loader */
.loader-dna {
  display: flex;
  align-items: center;
  gap: 6px;
}
.loader-dna-dot {
  width: 10px;
  height: 10px;
  background: #38bdf8;
  border-radius: 50%;
  animation: dna-bounce 1.2s ease-in-out infinite;
}
.loader-dna-dot:nth-child(2) { animation-delay: 0.2s; background: #818cf8; }
.loader-dna-dot:nth-child(3) { animation-delay: 0.4s; background: #c084fc; }
.loader-dna-dot:nth-child(4) { animation-delay: 0.6s; background: #f472b6; }
@keyframes dna-bounce {
  0%, 100% { transform: translateY(-8px) scale(0.8); }
  50% { transform: translateY(8px) scale(1.2); }
}

/* Pulsing Energy Core */
.loader-energy-core {
  width: 36px;
  height: 36px;
  background: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 15px #00f0ff;
  animation: core-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes core-pulse {
  from { transform: scale(0.7); opacity: 0.5; }
  to { transform: scale(1.2); opacity: 1; box-shadow: 0 0 30px #00f0ff; }
}

/* -------------------------------------------------------------------------- */
/* CATEGORY 7: CHECKBOXES & RADIOS                                            */
/* -------------------------------------------------------------------------- */

/* Animated Checkmark Draw */
.checkbox-draw {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 12px;
}
.checkbox-draw input {
  display: none;
}
.checkbox-draw-box {
  width: 20px;
  height: 20px;
  border: 2px solid #475569;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.checkbox-draw input:checked + .checkbox-draw-box {
  background: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Ripple Radio Trigger */
.radio-ripple {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 12px;
}
.radio-ripple input {
  display: none;
}
.radio-ripple-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #475569;
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s;
}
.radio-ripple input:checked + .radio-ripple-circle {
  border-color: #00f0ff;
}
.radio-ripple-circle::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #00f0ff;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s ease;
}
.radio-ripple input:checked + .radio-ripple-circle::after {
  transform: scale(1);
}

/* -------------------------------------------------------------------------- */
/* CATEGORY 8: MICRO-INTERACTIONS                                             */
/* -------------------------------------------------------------------------- */

/* Interactive Wink Icon */
.icon-wink {
  font-size: 24px;
  color: #f59e0b;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.icon-wink:hover {
  transform: scale(1.3) rotate(10deg);
}

/* Dynamic Dodge Button */
.btn-dodge {
  padding: 10px 20px;
  background: #ef4444;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}