/* Moderator Rank - Purple Authority */
.mod-rank {
  color: #a855f7;
  text-shadow:
    0 0 4px rgba(168, 85, 247, 0.5),
    0 0 8px rgba(168, 85, 247, 0.3);
  animation: mod-sparkle 2.5s ease-in-out infinite;
  font-weight: 700;
}

@keyframes mod-sparkle {
  0%, 100% {
    text-shadow:
      0 0 4px rgba(168, 85, 247, 0.5),
      0 0 8px rgba(168, 85, 247, 0.3);
    filter: brightness(1);
  }
  25% {
    text-shadow:
      0 0 6px rgba(168, 85, 247, 0.7),
      0 0 12px rgba(168, 85, 247, 0.4),
      0 0 16px rgba(168, 85, 247, 0.2);
    filter: brightness(1.1);
  }
  50% {
    text-shadow:
      0 0 8px rgba(168, 85, 247, 0.8),
      0 0 16px rgba(168, 85, 247, 0.5),
      0 0 24px rgba(168, 85, 247, 0.3);
    filter: brightness(1.2);
  }
  75% {
    text-shadow:
      0 0 6px rgba(168, 85, 247, 0.7),
      0 0 12px rgba(168, 85, 247, 0.4);
    filter: brightness(1.1);
  }
}

/* Administrator Rank - Emerald Power */
.admin-rank {
  color: #10b981;
  text-shadow:
    0 0 4px rgba(16, 185, 129, 0.5),
    0 0 8px rgba(16, 185, 129, 0.3);
  animation: admin-glow 3s ease-in-out infinite;
  font-weight: 700;
}

@keyframes admin-glow {
  0%, 100% {
    text-shadow:
      0 0 4px rgba(16, 185, 129, 0.5),
      0 0 8px rgba(16, 185, 129, 0.3);
    filter: brightness(1) saturate(1);
  }
  33% {
    text-shadow:
      0 0 6px rgba(16, 185, 129, 0.7),
      0 0 12px rgba(16, 185, 129, 0.4),
      0 0 18px rgba(16, 185, 129, 0.2);
    filter: brightness(1.15) saturate(1.2);
  }
  66% {
    text-shadow:
      0 0 8px rgba(16, 185, 129, 0.8),
      0 0 16px rgba(16, 185, 129, 0.5),
      0 0 24px rgba(16, 185, 129, 0.3);
    filter: brightness(1.3) saturate(1.4);
  }
}

/* Verified User Rank - Electric Blue */
.verified-rank {
  color: #3b82f6;
  text-shadow:
    0 0 4px rgba(59, 130, 246, 0.5),
    0 0 8px rgba(59, 130, 246, 0.3);
  animation: verified-sparkle 2s ease-in-out infinite;
  font-weight: 700;
}

@keyframes verified-sparkle {
  0%, 100% {
    text-shadow:
      0 0 4px rgba(59, 130, 246, 0.5),
      0 0 8px rgba(59, 130, 246, 0.3);
    filter: brightness(1);
  }
  20% {
    text-shadow:
      0 0 6px rgba(59, 130, 246, 0.7),
      0 0 12px rgba(59, 130, 246, 0.4),
      0 0 18px rgba(59, 130, 246, 0.2);
    filter: brightness(1.2);
  }
  40% {
    text-shadow:
      0 0 3px rgba(59, 130, 246, 0.4),
      0 0 6px rgba(59, 130, 246, 0.2);
    filter: brightness(0.9);
  }
  60% {
    text-shadow:
      0 0 8px rgba(59, 130, 246, 0.8),
      0 0 16px rgba(59, 130, 246, 0.5),
      0 0 24px rgba(59, 130, 246, 0.3);
    filter: brightness(1.3);
  }
  80% {
    text-shadow:
      0 0 5px rgba(59, 130, 246, 0.6),
      0 0 10px rgba(59, 130, 246, 0.3);
    filter: brightness(1.1);
  }
}

/* Content Creator Rank - Crimson Fire */
.creator-red-rank {
  color: #dc2626;
  text-shadow:
    0 0 4px rgba(220, 38, 38, 0.5),
    0 0 8px rgba(220, 38, 38, 0.3);
  animation: creator-red-flicker 1.8s ease-in-out infinite;
  font-weight: 700;
}

@keyframes creator-red-flicker {
  0%, 100% {
    text-shadow:
      0 0 4px rgba(220, 38, 38, 0.5),
      0 0 8px rgba(220, 38, 38, 0.3);
    filter: brightness(1) hue-rotate(0deg);
  }
  30% {
    text-shadow:
      0 0 6px rgba(220, 38, 38, 0.7),
      0 0 12px rgba(220, 38, 38, 0.4),
      0 0 18px rgba(220, 38, 38, 0.2);
    filter: brightness(1.2) hue-rotate(5deg);
  }
  60% {
    text-shadow:
      0 0 3px rgba(220, 38, 38, 0.4),
      0 0 6px rgba(220, 38, 38, 0.2);
    filter: brightness(0.8) hue-rotate(-5deg);
  }
  90% {
    text-shadow:
      0 0 8px rgba(220, 38, 38, 0.8),
      0 0 16px rgba(220, 38, 38, 0.5);
    filter: brightness(1.3) hue-rotate(3deg);
  }
}

/* Content Creator Rank - Golden Alternative */
.creator-gold-rank {
  color: #f59e0b;
  text-shadow:
    0 0 4px rgba(245, 158, 11, 0.5),
    0 0 8px rgba(245, 158, 11, 0.3);
  animation: creator-gold-shimmer 2.5s ease-in-out infinite;
  font-weight: 700;
  background: linear-gradient(45deg, #f59e0b, #fbbf24, #f59e0b);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes creator-gold-shimmer {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.3)) brightness(1);
  }
  25% {
    background-position: 25% 25%;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5)) brightness(1.1);
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7)) brightness(1.2);
  }
  75% {
    background-position: 75% 75%;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5)) brightness(1.1);
  }
}

/* Client Developer Rank - Tech Gray */
.dev-rank {
  color: #6b7280;
  text-shadow:
    0 0 4px rgba(107, 114, 128, 0.5),
    0 0 8px rgba(107, 114, 128, 0.3);
  animation: dev-shimmer 2.2s ease-in-out infinite;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  background: linear-gradient(90deg, #6b7280, #9ca3af, #d1d5db, #9ca3af, #6b7280);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes dev-shimmer {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 4px rgba(107, 114, 128, 0.3)) brightness(1) contrast(1);
  }
  25% {
    background-position: 25% 50%;
    filter: drop-shadow(0 0 6px rgba(107, 114, 128, 0.5)) brightness(1.1) contrast(1.1);
  }
  25% {
    text-shadow:
      0 0 6px rgba(107, 114, 128, 0.7),
      0 0 12px rgba(107, 114, 128, 0.4);
    filter: brightness(1.1) contrast(1.1);
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 8px rgba(107, 114, 128, 0.7)) brightness(1.2) contrast(1.2);
  }
  75% {
    background-position: 75% 50%;
    filter: drop-shadow(0 0 5px rgba(107, 114, 128, 0.4)) brightness(1.05) contrast(1.05);
  }
  75% {
    text-shadow:
      0 0 5px rgba(107, 114, 128, 0.6),
      0 0 10px rgba(107, 114, 128, 0.3);
    filter: brightness(1.05) contrast(1.05);
  }
}

/* NEW: Cool Kids Rank - Lime Light Green */
.cool-kids-rank {
  color: #84cc16;
  text-shadow:
    0 0 4px rgba(132, 204, 22, 0.5),
    0 0 8px rgba(132, 204, 22, 0.3);
  animation: cool-kids-glimmer 2s ease-in-out infinite;
  font-weight: 700;
}

@keyframes cool-kids-glimmer {
  0%, 100% {
    text-shadow:
      0 0 4px rgba(132, 204, 22, 0.5),
      0 0 8px rgba(132, 204, 22, 0.3);
    filter: brightness(1) saturate(1);
  }
  20% {
    text-shadow:
      0 0 6px rgba(132, 204, 22, 0.7),
      0 0 12px rgba(132, 204, 22, 0.4),
      0 0 18px rgba(132, 204, 22, 0.2);
    filter: brightness(1.15) saturate(1.2);
  }
  40% {
    text-shadow:
      0 0 8px rgba(132, 204, 22, 0.8),
      0 0 16px rgba(132, 204, 22, 0.5),
      0 0 24px rgba(132, 204, 22, 0.3);
    filter: brightness(1.3) saturate(1.4);
  }
  60% {
    text-shadow:
      0 0 5px rgba(132, 204, 22, 0.6),
      0 0 10px rgba(132, 204, 22, 0.3);
    filter: brightness(1.1) saturate(1.1);
  }
  80% {
    text-shadow:
      0 0 7px rgba(132, 204, 22, 0.7),
      0 0 14px rgba(132, 204, 22, 0.4);
    filter: brightness(1.2) saturate(1.3);
  }
}

/* NEW: YouTube Members Rank - Vibrant Red */
.youtube-member-rank {
  color: #f97316;
  text-shadow:
    0 0 4px rgba(249, 115, 22, 0.5),
    0 0 8px rgba(249, 115, 22, 0.3);
  animation: youtube-member-sparkle 2.8s ease-in-out infinite;
  font-weight: 700;
  background: linear-gradient(45deg, #f97316, #fb923c, #f97316);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes youtube-member-sparkle {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.3)) brightness(1);
  }
  15% {
    background-position: 20% 30%;
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.5)) brightness(1.1);
  }
  30% {
    background-position: 50% 25%;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.7)) brightness(1.2);
  }
  45% {
    background-position: 70% 60%;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4)) brightness(0.9);
  }
  60% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8)) brightness(1.3);
  }
  75% {
    background-position: 80% 75%;
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.5)) brightness(1.1);
  }
  90% {
    background-position: 30% 80%;
    filter: drop-shadow(0 0 7px rgba(255, 0, 0, 0.6)) brightness(1.15);
  }
}

/* NEW: Premium Yellow Rank - For Future Use */
.premium-yellow-rank {
  color: #eab308;
  text-shadow:
    0 0 4px rgba(234, 179, 8, 0.5),
    0 0 8px rgba(234, 179, 8, 0.3);
  animation: premium-yellow-glitter 3.2s ease-in-out infinite;
  font-weight: 700;
  background: linear-gradient(90deg, #eab308, #fbbf24, #f59e0b, #eab308);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes premium-yellow-glitter {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 4px rgba(234, 179, 8, 0.3)) brightness(1);
  }
  12% {
    background-position: 15% 25%;
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.5)) brightness(1.1);
  }
  25% {
    background-position: 33% 33%;
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.7)) brightness(1.2);
  }
  37% {
    background-position: 50% 60%;
    filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.4)) brightness(0.95);
  }
  50% {
    background-position: 66% 25%;
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.8)) brightness(1.3);
  }
  62% {
    background-position: 80% 75%;
    filter: drop-shadow(0 0 7px rgba(234, 179, 8, 0.6)) brightness(1.15);
  }
  75% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 9px rgba(234, 179, 8, 0.7)) brightness(1.25);
  }
  87% {
    background-position: 85% 80%;
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.5)) brightness(1.1);
  }
}

/* Hover effects for enhanced interactivity */
.mod-rank:hover { animation-duration: 1.2s; }
.admin-rank:hover { animation-duration: 1.5s; }
.verified-rank:hover { animation-duration: 1s; }
.creator-red-rank:hover { animation-duration: 0.9s; }
.creator-gold-rank:hover { animation-duration: 1.2s; }
.dev-rank:hover { animation-duration: 1.1s; }
.cool-kids-rank:hover { animation-duration: 1s; }
.youtube-member-rank:hover { animation-duration: 1.4s; }
.premium-yellow-rank:hover { animation-duration: 1.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .mod-rank,
  .admin-rank,
  .verified-rank,
  .creator-red-rank,
  .creator-gold-rank,
  .dev-rank,
  .cool-kids-rank,
  .youtube-member-rank,
  .premium-yellow-rank {
    font-size: 0.9em;
  }
}

/* Focus states for accessibility */
.mod-rank:focus,
.admin-rank:focus,
.verified-rank:focus,
.creator-red-rank:focus,
.creator-gold-rank:focus,
.dev-rank:focus,
.cool-kids-rank:focus,
.youtube-member-rank:focus,
.premium-yellow-rank:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}