/**
 * OGAH Radio Community Theme Styles
 * Dark, modern design system for community pages
 * Extends university theme with community-specific styles
 */

/* Define CSS variables for community pages */
:root {
  --dju-bg: #050509 !important;
  --dju-bg-alt: #0d0d14 !important;
  --dju-accent: #ff2f6d !important;
  --dju-accent-soft: rgba(255, 47, 109, 0.1) !important;
  --dju-accent-2: #3ae8ff !important;
  --dju-text-main: #f7f7ff !important;
  --dju-text-muted: #a0a0c0 !important;
  --dju-border-subtle: rgba(255, 255, 255, 0.08) !important;
  --dju-danger: #ff4f4f !important;
  --dju-warning: #ffc857 !important;
  --dju-radius-lg: 18px !important;
  --dju-radius-pill: 999px !important;
  --dju-shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
  --dju-shadow-glow: 0 0 20px rgba(255, 47, 109, 0.5) !important;
}

/* Community Background - same as university */
.community-bg {
  background: var(--page-background, radial-gradient(circle at top, #151527 0, #050509 50%, #000 100%)) !important;
  min-height: 100vh !important;
  color: var(--dju-text-main) !important;
}

/* Community Card Style - same as university */
.community-card {
  background: linear-gradient(145deg, rgba(13, 13, 20, 0.98), rgba(7, 7, 12, 0.98));
  border-radius: 32px;
  padding: 32px 26px;
  box-shadow: var(--dju-shadow-soft);
  border: 1px solid var(--dju-border-subtle);
  backdrop-filter: blur(16px);
}

@media (min-width: 768px) {
  .community-card {
    padding: 40px;
  }
}

/* Apply purple glow to community content containers */
.community-bg .max-w-7xl.mx-auto,
.community-bg .max-w-6xl.mx-auto,
.community-bg .max-w-4xl.mx-auto {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* Enhanced glow for community cards */
.community-card {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3), var(--dju-shadow-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Community Section - reuse university section styles */
.community-section {
  background: linear-gradient(145deg, rgba(13, 13, 20, 0.6), rgba(7, 7, 12, 0.6));
  border-radius: var(--dju-radius-lg);
  padding: 20px;
  border: 1px solid var(--dju-border-subtle);
  backdrop-filter: blur(8px);
}

.community-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.community-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--dju-text-main);
}

.community-section-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--dju-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--dju-text-muted);
  font-weight: 600;
}

/* Community Label - reuse university label */
.community-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--dju-text-muted);
  margin-bottom: 20px;
}

.community-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dju-accent);
  box-shadow: 0 0 12px rgba(255, 47, 109, 0.9);
}

/* Community Hero - reuse university hero */
.community-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 900px) {
  .community-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.community-hero-text {
  flex: 2;
}

.community-hero-title {
  font-size: clamp(2.2rem, 3.2vw + 1rem, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  color: var(--dju-text-main);
}

.community-hero-title .highlight {
  color: var(--dju-accent);
  text-shadow: var(--dju-shadow-glow);
}

.community-hero-title span.highlight {
  color: var(--dju-accent);
  text-shadow: var(--dju-shadow-glow);
}

.community-hero-subtitle {
  color: var(--dju-text-muted);
  font-size: 0.98rem;
  max-width: 550px;
}

.community-hero-subtitle strong {
  color: var(--dju-accent-2);
  font-weight: 600;
}

/* Community Badge Row */
.community-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.community-badge {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--dju-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--dju-text-muted);
  font-weight: 600;
}

.community-badge.accent {
  background: var(--dju-accent-soft);
  border-color: rgba(255, 47, 109, 0.3);
  color: var(--dju-accent);
}

/* Community Content Grid */
.community-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .community-content-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
  }
}

/* Community Text Colors - reuse university text colors */
.community-text-main {
  color: var(--dju-text-main) !important;
}

.community-text-muted {
  color: var(--dju-text-muted);
}

.community-text-accent {
  color: var(--dju-accent) !important;
}

.community-text-accent-2 {
  color: var(--dju-accent-2) !important;
}

/* Force role colors on chat usernames - override any Tailwind defaults */
.chat-username-color {
  color: var(--username-color, #c0c0c0) !important;
}

/* Community Genre Tags */
.community-genre-tag {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--dju-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 5, 9, 0.92);
  color: var(--dju-text-muted);
}

.community-genre-tag.hot {
  border-color: rgba(255, 47, 109, 0.7);
  color: #ffffff;
  background: var(--dju-accent-soft);
}

/* Community Footer Note */
.community-footer-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--dju-text-muted);
  text-align: center;
}

.community-footer-note strong {
  color: var(--dju-accent-2);
  font-weight: 600;
}

/* =====================================================
   AVATAR FLAME EFFECT - "Hot" Caddy Cafe Interaction
   ===================================================== */

/* Container for flame elements */
.avatar-flame-container {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  overflow: visible;
}

/* Individual flame element */
.avatar-flame {
  position: absolute;
  bottom: -2px;
  width: 12px;
  height: 24px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(to top, #ff6b35 0%, #ff9a3c 30%, #ffd93d 60%, transparent 100%);
  transform-origin: bottom center;
  animation: flame-flicker 0.8s ease-in-out infinite alternate;
  filter: blur(1px);
  opacity: 0.9;
}

/* Position each flame around the avatar */
.avatar-flame.flame-1 {
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
  height: 20px;
  width: 10px;
}

.avatar-flame.flame-2 {
  left: 25%;
  transform: translateX(-50%) rotate(-15deg);
  animation-delay: 0.1s;
  height: 16px;
  width: 8px;
}

.avatar-flame.flame-3 {
  left: 75%;
  transform: translateX(-50%) rotate(15deg);
  animation-delay: 0.2s;
  height: 16px;
  width: 8px;
}

.avatar-flame.flame-4 {
  left: 10%;
  transform: translateX(-50%) rotate(-25deg);
  animation-delay: 0.15s;
  height: 12px;
  width: 6px;
}

.avatar-flame.flame-5 {
  left: 90%;
  transform: translateX(-50%) rotate(25deg);
  animation-delay: 0.25s;
  height: 12px;
  width: 6px;
}

/* Flame flicker animation */
@keyframes flame-flicker {
  0% {
    height: 16px;
    opacity: 0.8;
    filter: blur(1px);
  }
  25% {
    height: 22px;
    opacity: 1;
    filter: blur(0.5px);
  }
  50% {
    height: 18px;
    opacity: 0.9;
    filter: blur(1.5px);
  }
  75% {
    height: 24px;
    opacity: 1;
    filter: blur(0.5px);
  }
  100% {
    height: 20px;
    opacity: 0.85;
    filter: blur(1px);
  }
}

/* Avatar on fire - adds glow effect */
.avatar-on-fire {
  box-shadow:
    0 0 10px rgba(255, 107, 53, 0.6),
    0 0 20px rgba(255, 107, 53, 0.4),
    0 0 30px rgba(255, 154, 60, 0.3);
  animation: fire-glow 1.5s ease-in-out infinite alternate;
}

@keyframes fire-glow {
  0% {
    box-shadow:
      0 0 8px rgba(255, 107, 53, 0.5),
      0 0 16px rgba(255, 107, 53, 0.3),
      0 0 24px rgba(255, 154, 60, 0.2);
  }
  100% {
    box-shadow:
      0 0 12px rgba(255, 107, 53, 0.7),
      0 0 24px rgba(255, 107, 53, 0.5),
      0 0 36px rgba(255, 154, 60, 0.4);
  }
}

/* =====================================================
   CAMS OFFLINE MESSAGE - Fire Text Effect
   ===================================================== */

.cams-offline-message {
  position: relative;
  padding: 20px;
}

/* Fire text effect - animated gradient text */
.fire-text {
  background: linear-gradient(
    180deg,
    #fff5cc 0%,
    #ffd700 15%,
    #ff9500 35%,
    #ff6b35 55%,
    #ff4500 75%,
    #dc143c 100%
  );
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fire-text-flicker 2s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6))
          drop-shadow(0 0 16px rgba(255, 69, 0, 0.4))
          drop-shadow(0 0 24px rgba(220, 20, 60, 0.3));
}

@keyframes fire-text-flicker {
  0%, 100% {
    background-position: 0% 0%;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6))
            drop-shadow(0 0 16px rgba(255, 69, 0, 0.4))
            drop-shadow(0 0 24px rgba(220, 20, 60, 0.3));
  }
  25% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.8))
            drop-shadow(0 0 20px rgba(255, 69, 0, 0.5))
            drop-shadow(0 0 30px rgba(220, 20, 60, 0.4));
  }
  50% {
    background-position: 0% 100%;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.5))
            drop-shadow(0 0 14px rgba(255, 69, 0, 0.35))
            drop-shadow(0 0 20px rgba(220, 20, 60, 0.25));
  }
  75% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.7))
            drop-shadow(0 0 18px rgba(255, 69, 0, 0.45))
            drop-shadow(0 0 28px rgba(220, 20, 60, 0.35));
  }
}

/* Add subtle flame particles around the offline message */
.cams-offline-message::before,
.cams-offline-message::after {
  content: '🔥';
  position: absolute;
  font-size: 1.5rem;
  animation: flame-float 3s ease-in-out infinite;
  opacity: 0.8;
}

.cams-offline-message::before {
  top: 0;
  left: 10px;
  animation-delay: 0s;
}

.cams-offline-message::after {
  top: 0;
  right: 10px;
  animation-delay: 1.5s;
}

@keyframes flame-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) scale(1.1);
    opacity: 1;
  }
}

/* Horizontal flame movement for DJ TUNE! stats */
@keyframes flameMove {
  0%, 100% {
    transform: translateX(-30%);
    opacity: 0.8;
  }
  50% {
    transform: translateX(30%);
    opacity: 1;
  }
}

/* Flame glow animation for top song */
@keyframes flameGlow {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.6;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.9;
  }
}

/* Flame flicker for individual flames */
@keyframes flameFlicker {
  0% {
    transform: scaleY(1) scaleX(1);
    opacity: 0.7;
  }
  25% {
    transform: scaleY(1.2) scaleX(0.9);
    opacity: 0.9;
  }
  50% {
    transform: scaleY(0.9) scaleX(1.1);
    opacity: 0.8;
  }
  75% {
    transform: scaleY(1.15) scaleX(0.95);
    opacity: 1;
  }
  100% {
    transform: scaleY(1.05) scaleX(1.05);
    opacity: 0.75;
  }
}

/* Fire emoji bounce animation */
@keyframes fireEmoji {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.9;
  }
  25% {
    transform: translateY(-55%) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translateY(-45%) scale(0.95);
    opacity: 0.85;
  }
  75% {
    transform: translateY(-52%) scale(1.05);
    opacity: 1;
  }
}

/* =====================================================
   DJ TUNE! STATS - Orange Themed Scrollbar
   ===================================================== */

.tune-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.tune-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 107, 53, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.tune-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b35 0%, #ff4500 50%, #dc2626 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 165, 0, 0.3);
  box-shadow: 0 0 6px rgba(255, 107, 53, 0.4);
}

.tune-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8c5a 0%, #ff6b35 50%, #ff4500 100%);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

/* Firefox scrollbar */
.tune-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #ff6b35 rgba(255, 107, 53, 0.1);
}

/* =====================================================
   BACKSTAGE PASS AVATAR BACKDROP
   Premium feature for backstage pass holders
   ===================================================== */

/* Container for the entire backdrop + children */
.avatar-backdrop-container {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* Backdrop image container - maintains 820:1200 aspect ratio */
.avatar-backdrop {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Aspect ratio: 820x1200 = 0.683 (width/height) */
  aspect-ratio: 820 / 1200;
  border-radius: 12px;
  overflow: visible;
}

/* Size variants for backdrop container */
.avatar-backdrop--sm {
  width: 75px;
}

.avatar-backdrop--md {
  width: 125px;
}

.avatar-backdrop--lg {
  width: 150px;
}

/* Avatar wrapper for gear frame effects - positioned at 50% x, 45% y within backdrop */
.avatar-backdrop__avatar-wrapper {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  /* Diameter is 64% of backdrop width */
  width: 64%;
  aspect-ratio: 1;
  z-index: 2;
  border-radius: 50%;
}

/* Avatar positioned inside wrapper (or at 50% x, 45% y when no wrapper) */
.avatar-backdrop__avatar {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  /* Diameter is 64% of backdrop width */
  width: 64%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

/* When avatar is inside wrapper, fill the wrapper instead of absolute positioning */
.avatar-backdrop__avatar-wrapper .avatar-backdrop__avatar {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  height: 100%;
}

/* Name positioned at 50% x, 81% y */
.avatar-backdrop__name {
  position: absolute;
  left: 50%;
  top: 81%;
  transform: translateX(-50%);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85%;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.7);
  z-index: 2;
  letter-spacing: 0.02em;
}

/* Purple glow effect for backstage pass holders */
.avatar-backdrop--active {
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5))
          drop-shadow(0 0 16px rgba(139, 92, 246, 0.3));
  animation: backstage-glow 3s ease-in-out infinite;
}

@keyframes backstage-glow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4))
            drop-shadow(0 0 12px rgba(139, 92, 246, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6))
            drop-shadow(0 0 24px rgba(139, 92, 246, 0.4));
  }
}

/* Hover effect for clickable backdrops */
.avatar-backdrop-container:hover .avatar-backdrop--active {
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.7))
          drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
}

/* Flame container positioning for backdrop mode */
.avatar-backdrop .avatar-flame-container {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 1;
}

/* =====================================================
   CAMS CONTAINER - Pulsing Purple Glow at 128 BPM
   128 BPM = 469ms per beat, 4/4 time = 1.875s full cycle
   ===================================================== */

.cams-glow-pulse {
  animation: cams-glow-128bpm 0.469s ease-in-out infinite;
}

@keyframes cams-glow-128bpm {
  0%, 100% {
    box-shadow:
      0 0 30px color-mix(in srgb, var(--cams-glow-color, rgb(139, 92, 246)) 50%, transparent),
      0 0 60px color-mix(in srgb, var(--cams-glow-color, rgb(139, 92, 246)) 25%, transparent),
      inset 0 0 20px color-mix(in srgb, var(--cams-glow-color, rgb(139, 92, 246)) 5%, transparent);
    border-color: color-mix(in srgb, var(--cams-glow-color, rgb(139, 92, 246)) 40%, transparent);
  }
  50% {
    box-shadow:
      0 0 50px color-mix(in srgb, var(--cams-glow-color, rgb(139, 92, 246)) 80%, transparent),
      0 0 100px color-mix(in srgb, var(--cams-glow-color, rgb(139, 92, 246)) 50%, transparent),
      0 0 150px color-mix(in srgb, var(--cams-glow-color, rgb(139, 92, 246)) 25%, transparent),
      inset 0 0 30px color-mix(in srgb, var(--cams-glow-color, rgb(139, 92, 246)) 10%, transparent);
    border-color: color-mix(in srgb, var(--cams-glow-color, rgb(139, 92, 246)) 70%, transparent);
  }
}

/* Reduced motion preference - disable pulsing animation */
@media (prefers-reduced-motion: reduce) {
  .cams-glow-pulse {
    animation: none;
    box-shadow:
      0 0 40px rgba(139, 92, 246, 0.6),
      0 0 80px rgba(139, 92, 246, 0.3);
  }
}

/* Battery saver mode - disable pulsing animation */
body.battery-saver .cams-glow-pulse {
  animation: none !important;
  box-shadow:
    0 0 20px rgba(139, 92, 246, 0.4),
    0 0 40px rgba(139, 92, 246, 0.2) !important;
}

/* Battery saver mode - disable other community animations */
body.battery-saver .flame-text {
  animation: none !important;
  text-shadow: none !important;
}

body.battery-saver .backstage-section {
  animation: none !important;
}

body.battery-saver .on-air-gradient {
  animation: none !important;
}

body.battery-saver .tune-boost-effect {
  animation: none !important;
}

body.battery-saver .potPulse,
body.battery-saver .timerPulse,
body.battery-saver .jackpot-pulse {
  animation: none !important;
}

/* =====================================================
   COMMUNITY HOMEPAGE STYLES
   Main landing page for /community
   ===================================================== */

/* Hero On-Air Section */
.homepage-on-air {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(255, 47, 109, 0.1));
  border-radius: var(--dju-radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.homepage-on-air::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dju-accent), var(--dju-accent-2), var(--dju-accent));
  background-size: 200% 100%;
  animation: on-air-gradient 3s linear infinite;
}

@keyframes on-air-gradient {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (min-width: 768px) {
  .homepage-on-air {
    flex-direction: row;
    align-items: center;
  }
}

.homepage-on-air-info {
  flex: 1;
}

.homepage-on-air-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dju-accent);
  margin-bottom: 8px;
}

.homepage-on-air-live .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dju-accent);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 4px var(--dju-accent), 0 0 8px var(--dju-accent);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 12px var(--dju-accent), 0 0 24px var(--dju-accent);
    opacity: 0.7;
  }
}

.homepage-on-air-dj {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dju-text-main);
  margin-bottom: 4px;
}

.homepage-on-air-show {
  font-size: 0.9rem;
  color: var(--dju-text-muted);
}

.homepage-on-air-track {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dju-accent-2);
  margin-top: 8px;
}

.homepage-on-air-track .icon {
  font-size: 1rem;
}

/* Action Buttons */
.homepage-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--dju-radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.homepage-action-btn.primary {
  background: linear-gradient(135deg, var(--dju-accent), #ff6090);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 47, 109, 0.4);
}

.homepage-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 47, 109, 0.6);
}

.homepage-action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dju-text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.homepage-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--dju-accent-2);
  color: var(--dju-accent-2);
}

.homepage-action-btn.stocks {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.homepage-action-btn.stocks:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.2));
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

/* Stats Bar */
.homepage-stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(13, 13, 20, 0.8), rgba(7, 7, 12, 0.8));
  border-radius: var(--dju-radius-lg);
  border: 1px solid var(--dju-border-subtle);
}

@media (min-width: 768px) {
  .homepage-stats-bar {
    grid-template-columns: repeat(5, 1fr);
    padding: 20px 24px;
  }
}

.homepage-stat {
  text-align: center;
  padding: 12px 8px;
}

.homepage-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dju-text-main);
  line-height: 1;
}

.homepage-stat-value.accent {
  color: var(--dju-accent);
}

.homepage-stat-value.accent-2 {
  color: var(--dju-accent-2);
}

.homepage-stat-value.gold {
  color: #ffd700;
}

.homepage-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dju-text-muted);
  margin-top: 4px;
}

/* Main Grid Layout */
.homepage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .homepage-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.homepage-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section Containers */
.homepage-section {
  background: linear-gradient(145deg, rgba(13, 13, 20, 0.6), rgba(7, 7, 12, 0.6));
  border-radius: var(--dju-radius-lg);
  border: 1px solid var(--dju-border-subtle);
  overflow: hidden;
}

.homepage-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dju-border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.homepage-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dju-text-main);
}

.homepage-section-title .icon {
  font-size: 1.1rem;
}

.homepage-section-link {
  font-size: 0.75rem;
  color: var(--dju-accent-2);
  text-decoration: none;
  transition: color 0.2s;
}

.homepage-section-link:hover {
  color: var(--dju-accent);
}

.homepage-section-content {
  padding: 16px 20px;
}

/* Hot Bets Cards */
.homepage-bet-card {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.homepage-bet-card:last-child {
  margin-bottom: 0;
}

.homepage-bet-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--dju-accent);
  transform: translateX(4px);
}

.homepage-bet-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dju-text-main);
  margin-bottom: 8px;
}

.homepage-bet-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.homepage-bet-card-pot {
  color: #ffd700;
  font-weight: 600;
}

.homepage-bet-card-players {
  color: var(--dju-text-muted);
}

.homepage-bet-card-time {
  color: var(--dju-accent);
  font-size: 0.75rem;
}

/* Leaderboard Rows */
.homepage-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.2s;
  margin-bottom: 8px;
}

.homepage-leaderboard-row:last-child {
  margin-bottom: 0;
}

.homepage-leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.homepage-leaderboard-rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dju-text-muted);
}

.homepage-leaderboard-rank.gold {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #1a1a1a;
}

.homepage-leaderboard-rank.silver {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: #1a1a1a;
}

.homepage-leaderboard-rank.bronze {
  background: linear-gradient(135deg, #cd7f32, #b8692d);
  color: #1a1a1a;
}

.homepage-leaderboard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.homepage-leaderboard-info {
  flex: 1;
  min-width: 0;
}

.homepage-leaderboard-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dju-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.homepage-leaderboard-stats {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
}

.homepage-leaderboard-value {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.homepage-leaderboard-value.profit {
  color: #4ade80;
}

.homepage-leaderboard-value.loss {
  color: #f87171;
}

/* Member Rows */
.homepage-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s;
  margin-bottom: 6px;
}

.homepage-member-row:last-child {
  margin-bottom: 0;
}

.homepage-member-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.homepage-member-rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dju-text-muted);
  width: 20px;
}

.homepage-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.homepage-member-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dju-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.homepage-member-points {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dju-accent-2);
}

.homepage-member-backstage {
  font-size: 0.7rem;
}

/* Winner Rows */
.homepage-winner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(74, 222, 128, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  margin-bottom: 8px;
}

.homepage-winner-row:last-child {
  margin-bottom: 0;
}

.homepage-winner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(74, 222, 128, 0.3);
}

.homepage-winner-info {
  flex: 1;
  min-width: 0;
}

.homepage-winner-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dju-text-main);
}

.homepage-winner-bet {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.homepage-winner-payout {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4ade80;
}

/* Tune Giver Rows */
.homepage-tune-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s;
  margin-bottom: 6px;
}

.homepage-tune-row:last-child {
  margin-bottom: 0;
}

.homepage-tune-row:hover {
  background: rgba(255, 107, 53, 0.05);
}

.homepage-tune-rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dju-text-muted);
  width: 20px;
}

.homepage-tune-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.homepage-tune-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dju-text-main);
}

.homepage-tune-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff6b35;
}

/* Welcome User Section */
.homepage-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(255, 47, 109, 0.05));
  border-radius: var(--dju-radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.homepage-welcome-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.4);
}

.homepage-welcome-info {
  flex: 1;
}

.homepage-welcome-greeting {
  font-size: 0.8rem;
  color: var(--dju-text-muted);
}

.homepage-welcome-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dju-text-main);
}

.homepage-welcome-stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
}

.homepage-welcome-stat {
  color: var(--dju-text-muted);
}

.homepage-welcome-stat span {
  color: var(--dju-accent-2);
  font-weight: 600;
}

/* Empty State */
.homepage-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--dju-text-muted);
}

.homepage-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.homepage-empty-text {
  font-size: 0.85rem;
}

/* Loading Skeleton */
.homepage-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Additional Homepage Styles */
.homepage-on-air-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dju-accent);
  margin-bottom: 8px;
}

.on-air-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dju-accent);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.homepage-dj-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dju-text-main);
  margin-bottom: 4px;
}

.homepage-dj-status {
  font-size: 0.85rem;
  color: var(--dju-text-muted);
  margin-bottom: 12px;
}

.homepage-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--dju-accent);
  color: white;
  border-radius: var(--dju-radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.homepage-listen-btn:hover {
  background: #ff4080;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 47, 109, 0.4);
}

/* Bet Card Additional Styles */
.homepage-bet-type {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
}

.homepage-bet-time {
  font-size: 0.75rem;
  color: var(--dju-accent);
}

.homepage-bet-pot {
  font-size: 0.95rem;
  font-weight: 700;
}

.homepage-bet-pot.credits {
  color: #ffd700;
}

.homepage-bet-pot.points {
  color: var(--dju-accent-2);
}

.homepage-bet-participants {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
  margin-top: 4px;
}

/* Rank Badge Styles */
.homepage-rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dju-text-muted);
  flex-shrink: 0;
}

.homepage-rank.rank-1 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 170, 0, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.homepage-rank.rank-2 {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(160, 160, 160, 0.2));
  border: 1px solid rgba(192, 192, 192, 0.3);
}

.homepage-rank.rank-3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(184, 105, 45, 0.2));
  border: 1px solid rgba(205, 127, 50, 0.3);
}

/* Leaderboard Profit Display */
.homepage-leaderboard-profit {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.homepage-leaderboard-profit.positive {
  color: #4ade80;
}

.homepage-leaderboard-profit.negative {
  color: #f87171;
}

/* =====================================================
   TUNE! LEADERBOARD STYLES
   ===================================================== */

.tune-leaderboard-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.tune-badge {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
  color: white !important;
  font-weight: 600;
}

.tune-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.2s ease;
}

.tune-leaderboard-row:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

.tune-leaderboard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
}

.tune-leaderboard-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.tune-leaderboard-name {
  font-weight: 600;
  color: var(--dju-text-main);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tune-leaderboard-fans {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
  margin-top: 2px;
}

.tune-leaderboard-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.tune-count-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: #a78bfa;
  line-height: 1;
}

.tune-count-label {
  font-size: 0.65rem;
  color: #8b5cf6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Top 3 special styling */
.tune-leaderboard-row:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(139, 92, 246, 0.1));
  border-color: rgba(255, 215, 0, 0.3);
}

.tune-leaderboard-row:nth-child(1) .tune-leaderboard-avatar {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.tune-leaderboard-row:nth-child(2) {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(139, 92, 246, 0.08));
  border-color: rgba(192, 192, 192, 0.2);
}

.tune-leaderboard-row:nth-child(3) {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(139, 92, 246, 0.08));
  border-color: rgba(205, 127, 50, 0.2);
}

/* User Welcome Section */
.homepage-user-welcome {
  margin-top: 24px;
}

/* Action Button Variants */
.homepage-action-btn.outline {
  background: transparent;
  color: var(--dju-text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.homepage-action-btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--dju-accent);
  color: var(--dju-accent);
}

.homepage-action-btn.small {
  padding: 8px 16px;
  font-size: 0.75rem;
}

/* Stat Highlight */
.homepage-stat.highlight {
  background: rgba(255, 47, 109, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 47, 109, 0.2);
}

.homepage-stat.highlight .homepage-stat-value {
  color: var(--dju-accent);
}

/* =====================================================
   BATTLE CARD STYLES (Homepage)
   ===================================================== */

.battle-section {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 149, 0, 0.05));
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--dju-radius-lg);
  overflow: hidden;
}

.battle-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #ff9500 0%, #ff5722 50%, #e91e63 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fire-emoji {
  -webkit-text-fill-color: initial;
  animation: fire-flicker 0.5s infinite alternate;
}

@keyframes fire-flicker {
  from { opacity: 0.8; transform: scale(1); }
  to { opacity: 1; transform: scale(1.1); }
}

.homepage-battle-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(20, 20, 20, 0.8);
  border-radius: var(--dju-radius-md);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.homepage-battle-card.active {
  border: 1px solid rgba(255, 107, 53, 0.5);
  animation: battle-pulse 2s infinite;
}

@keyframes battle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
  50% { box-shadow: 0 0 20px 5px rgba(255, 107, 53, 0.2); }
}

.homepage-battle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 53, 0.8);
}

.battle-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  width: fit-content;
}

.battle-status-badge.live {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.5);
  color: #ff4444;
}

.battle-status-badge.ready {
  background: rgba(0, 200, 83, 0.2);
  border: 1px solid rgba(0, 200, 83, 0.5);
  color: #00c853;
}

.battle-status-badge.waiting {
  background: rgba(255, 149, 0, 0.2);
  border: 1px solid rgba(255, 149, 0, 0.5);
  color: #ff9500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.battle-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.battle-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.battle-card-date .fire-text {
  font-size: 0.8rem;
  font-weight: 600;
}

.battle-challengers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
}

.battle-challenger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex: 1;
}

.battle-challenger.empty {
  opacity: 0.5;
}

.battle-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 53, 0.5);
}

.battle-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b35, #ff9500);
  color: #fff;
  font-weight: bold;
  font-size: 1.25rem;
}

.battle-dj-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.battle-dj-name.waiting {
  color: #ff9500;
  font-style: italic;
}

.battle-tune-count {
  font-size: 0.75rem;
  color: #ff9500;
  font-weight: 600;
}

.battle-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ff6b35;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.battle-card-pot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--dju-radius-sm);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.pot-amount {
  font-size: 1.25rem;
  font-weight: 700;
}

.pot-amount.credits {
  color: #00d4ff;
}

.pot-amount.points {
  color: #ffd700;
}

.pot-label {
  font-size: 0.7rem;
  color: var(--dju-text-muted);
  text-transform: uppercase;
}

/* Battle Bettors */
.battle-bettors {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--dju-radius-sm);
  margin-top: 0.5rem;
}

.bettors-label {
  font-size: 0.7rem;
  color: var(--dju-text-muted);
  white-space: nowrap;
}

.bettors-avatars {
  display: flex;
  align-items: center;
}

.bettor-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--dju-surface);
  margin-left: -8px;
  transition: transform 0.2s, z-index 0.2s;
}

.bettor-avatar:first-child {
  margin-left: 0;
}

.bettor-avatar:hover {
  transform: scale(1.2);
  z-index: 10;
}

.bettors-more {
  font-size: 0.7rem;
  color: var(--dju-text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  margin-left: 0.25rem;
}

/* Past Battles on Homepage */
.homepage-battle-past {
  padding: 1rem;
}

.battle-past-label {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.battle-past-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.battle-past-item:last-of-type {
  border-bottom: none;
}

.battle-past-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.5);
}

.battle-past-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b35, #ff9500);
  color: #fff;
  font-weight: bold;
  font-size: 0.875rem;
}

.battle-past-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.battle-past-winner {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffd700;
}

.battle-past-title {
  font-size: 0.7rem;
  color: var(--dju-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.battle-past-pot {
  font-size: 0.8rem;
  font-weight: 600;
}

.battle-past-pot.credits {
  color: #00d4ff;
}

.battle-past-pot.points {
  color: #ffd700;
}

.battle-view-all {
  display: block;
  text-align: center;
  padding: 0.75rem;
  margin-top: 0.5rem;
  color: #ff6b35;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: var(--dju-radius-sm);
  transition: background 0.2s;
}

.battle-view-all:hover {
  background: rgba(255, 107, 53, 0.1);
}

/* =====================================================
   REP BOARD Styles
   ===================================================== */

/* Gold accent color for REP BOARD */
:root {
  --rep-gold: #ffd700;
  --rep-gold-light: #ffe44d;
  --rep-gold-dark: #c9a800;
  --rep-gold-glow: rgba(255, 215, 0, 0.4);
}

.rep-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 480px) {
  .rep-board-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.rep-board-item {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(255, 47, 109, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 16px 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rep-board-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rep-gold), var(--dju-accent), var(--rep-gold));
  opacity: 0.6;
}

.rep-board-item:hover {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(255, 47, 109, 0.1));
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.rep-board-item:hover::before {
  opacity: 1;
}

.rep-board-category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.rep-badge-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.rep-category-name {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rep-gold);
  text-shadow: 0 0 10px var(--rep-gold-glow);
}

.rep-winner-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rep-winner-display.empty {
  opacity: 0.5;
}

.rep-winner-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rep-gold);
  box-shadow: 0 0 16px var(--rep-gold-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.rep-board-item:hover .rep-winner-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--rep-gold-glow), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.rep-winner-avatar.placeholder {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 47, 109, 0.1));
  color: var(--rep-gold);
  font-weight: bold;
  font-size: 1.5rem;
  border: 3px dashed rgba(255, 215, 0, 0.4);
  box-shadow: none;
}

.rep-winner-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dju-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.rep-winner-name.text-muted {
  color: var(--dju-text-muted);
  font-style: italic;
  font-weight: 400;
}

.rep-winner-score {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--rep-gold);
  background: rgba(255, 215, 0, 0.15);
  padding: 2px 10px;
  border-radius: 12px;
  text-shadow: 0 0 8px var(--rep-gold-glow);
}

/* REP BOARD Leaderboard Page */
.rep-leaderboard-page {
  max-width: 1200px;
  margin: 0 auto;
}

.rep-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.rep-category-tab {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--dju-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rep-category-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dju-text-main);
}

.rep-category-tab.active {
  background: var(--dju-accent);
  border-color: var(--dju-accent);
  color: #fff;
}

.rep-period-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.rep-period-btn {
  padding: 6px 14px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--dju-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.rep-period-btn:hover {
  border-color: var(--dju-accent);
  color: var(--dju-accent);
}

.rep-period-btn.active {
  background: rgba(255, 47, 109, 0.2);
  border-color: var(--dju-accent);
  color: var(--dju-accent);
}

.rep-champion-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 47, 109, 0.1));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.rep-champion-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd700;
  margin-bottom: 1rem;
}

.rep-champion-avatar-wrapper {
  margin-bottom: 1rem;
}

.rep-champion-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 215, 0, 0.5);
  margin: 0 auto;
}

.rep-champion-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dju-text-main);
  margin-bottom: 0.25rem;
}

.rep-champion-stats {
  font-size: 0.9rem;
  color: var(--dju-text-muted);
}

.rep-champion-stats strong {
  color: var(--dju-accent);
}

.rep-leaderboard-list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.rep-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.rep-leaderboard-row:last-child {
  border-bottom: none;
}

.rep-leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rep-leaderboard-rank {
  width: 32px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dju-text-muted);
  text-align: center;
}

.rep-leaderboard-rank.rank-1 {
  color: #ffd700;
}

.rep-leaderboard-rank.rank-2 {
  color: #c0c0c0;
}

.rep-leaderboard-rank.rank-3 {
  color: #cd7f32;
}

.rep-leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rep-leaderboard-info {
  flex: 1;
  min-width: 0;
}

.rep-leaderboard-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dju-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rep-leaderboard-meta {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
}

.rep-leaderboard-stats {
  text-align: right;
  flex-shrink: 0;
}

.rep-leaderboard-wins {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dju-accent);
}

.rep-leaderboard-score {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
}

/* =====================================================
   EXPLOSION FEATURE STYLES
   Immersive theme transformation when explosion is active
   ===================================================== */

/* Explosion active container - applies theme colors */
.explosion-active {
  position: relative;
  transition: background 0.5s ease-in-out;
}

/* =====================================================
   EXPLOSION FLASH EFFECT
   Full-screen flash when explosion starts
   ===================================================== */

/* Flash overlay that covers the entire screen */
.explosion-flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, var(--explosion-accent, #ff4500) 0%, transparent 70%);
  animation: explosion-flash 1.2s ease-out forwards;
}

@keyframes explosion-flash {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  10% {
    opacity: 1;
    transform: scale(1.2);
  }
  30% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Screen shake effect */
.explosion-shake {
  animation: explosion-screen-shake 0.6s ease-out;
}

@keyframes explosion-screen-shake {
  0%, 100% { transform: translateX(0) translateY(0); }
  10% { transform: translateX(-8px) translateY(-4px); }
  20% { transform: translateX(8px) translateY(4px); }
  30% { transform: translateX(-6px) translateY(-3px); }
  40% { transform: translateX(6px) translateY(3px); }
  50% { transform: translateX(-4px) translateY(-2px); }
  60% { transform: translateX(4px) translateY(2px); }
  70% { transform: translateX(-2px) translateY(-1px); }
  80% { transform: translateX(2px) translateY(1px); }
  90% { transform: translateX(-1px) translateY(0); }
}

/* Border pulse that ripples outward */
.explosion-border-pulse::before {
  content: '';
  position: fixed;
  inset: 0;
  border: 4px solid var(--explosion-accent, #ff4500);
  border-radius: 0;
  opacity: 0;
  animation: explosion-border-pulse 1.5s ease-out forwards;
  pointer-events: none;
  z-index: 99998;
}

@keyframes explosion-border-pulse {
  0% {
    opacity: 1;
    inset: 50%;
    border-width: 20px;
  }
  50% {
    opacity: 0.6;
    inset: 0;
    border-width: 8px;
  }
  100% {
    opacity: 0;
    inset: -20px;
    border-width: 2px;
  }
}

/* Reduced motion - disable shake and flash animations */
@media (prefers-reduced-motion: reduce) {
  .explosion-flash-overlay,
  .explosion-shake,
  .explosion-border-pulse::before {
    animation: none !important;
  }
  .explosion-flash-overlay {
    opacity: 0.5;
    animation: simple-fade 0.5s ease-out forwards !important;
  }
  @keyframes simple-fade {
    0% { opacity: 0.5; }
    100% { opacity: 0; }
  }
}

/* Override background when explosion is active */
.explosion-active.community-bg {
  background: var(--explosion-bg, radial-gradient(circle at top, #151527 0, #050509 50%, #000 100%)) !important;
}

/* Explosion particles overlay - full-screen effect */
.explosion-particles-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
  opacity: 0.7;
}

.explosion-background-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Explosion multiplier badge - fixed at top right */
.explosion-multiplier-badge {
  position: fixed;
  top: 80px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--explosion-accent, #ff4500), var(--explosion-secondary, #ff8c00));
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 1000;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 20px var(--explosion-glow, rgba(255, 69, 0, 0.6)),
    0 0 40px var(--explosion-glow, rgba(255, 69, 0, 0.4)),
    0 4px 15px rgba(0, 0, 0, 0.3);
  animation: explosionBadgePulse 2s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.explosion-emoji {
  font-size: 1.2rem;
  animation: explosionEmojiPulse 1s ease-in-out infinite;
}

.explosion-multiplier {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.explosion-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.explosion-timer {
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-family: monospace;
}

@keyframes explosionBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 20px var(--explosion-glow, rgba(255, 69, 0, 0.6)),
      0 0 40px var(--explosion-glow, rgba(255, 69, 0, 0.4)),
      0 4px 15px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 0 30px var(--explosion-glow, rgba(255, 69, 0, 0.8)),
      0 0 60px var(--explosion-glow, rgba(255, 69, 0, 0.5)),
      0 0 100px var(--explosion-glow, rgba(255, 69, 0, 0.3)),
      0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

@keyframes explosionEmojiPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Full-screen explosion celebration notification - initial appearance */
.explosion-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  animation: explosionAppear 0.5s ease-out;
  text-align: center;
  padding: 40px 60px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 24px;
  border: 3px solid var(--explosion-accent, #ff4500);
  box-shadow:
    0 0 60px var(--explosion-glow, rgba(255, 69, 0, 0.6)),
    0 0 120px var(--explosion-glow, rgba(255, 69, 0, 0.3));
}

@keyframes explosionAppear {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.explosion-notification-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(180deg, var(--explosion-accent, #ff4500), var(--explosion-secondary, #ff8c00));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.explosion-notification-subtitle {
  font-size: 1.2rem;
  color: var(--dju-text-main);
  margin-bottom: 8px;
}

.explosion-notification-multiplier {
  font-size: 3rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  animation: explosionMultiplierGlow 1s ease-in-out infinite alternate;
}

@keyframes explosionMultiplierGlow {
  0% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
  100% {
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.6);
  }
}

/* Theme-specific accent colors during explosion */
.explosion-active .community-section {
  border-color: var(--explosion-accent, rgba(139, 92, 246, 0.3)) !important;
  box-shadow: 0 0 20px var(--explosion-glow, rgba(139, 92, 246, 0.3)) !important;
}

.explosion-active .community-card {
  border-color: var(--explosion-accent, rgba(139, 92, 246, 0.3)) !important;
  box-shadow: 0 0 25px var(--explosion-glow, rgba(139, 92, 246, 0.4)) !important;
}

/* Reduced motion preference - disable pulsing animations */
@media (prefers-reduced-motion: reduce) {
  .explosion-multiplier-badge,
  .explosion-emoji,
  .explosion-notification,
  .explosion-notification-multiplier {
    animation: none;
  }

  .explosion-particles-overlay {
    display: none;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .explosion-multiplier-badge {
    top: 70px;
    right: 10px;
    padding: 8px 14px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .explosion-emoji {
    font-size: 1rem;
  }

  .explosion-multiplier {
    font-size: 1.1rem;
  }

  .explosion-label {
    font-size: 0.6rem;
  }

  .explosion-timer {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .explosion-notification {
    padding: 24px 30px;
    margin: 0 16px;
    max-width: calc(100% - 32px);
  }

  .explosion-notification-title {
    font-size: 1.8rem;
  }

  .explosion-notification-multiplier {
    font-size: 2rem;
  }
}

/* =====================================================
   SPECIAL ENTRY RAIN EFFECT
   User-specific rain effects when special users enter
   ===================================================== */

.special-entry-rain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9998;
}

.special-entry-banner {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.9));
  color: white;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
  animation: special-entry-banner-pop 0.5s ease-out, special-entry-banner-pulse 2s ease-in-out infinite 0.5s;
  z-index: 10000;
  white-space: nowrap;
}

@keyframes special-entry-banner-pop {
  0% {
    transform: translateX(-50%) scale(0);
    opacity: 0;
  }
  70% {
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

@keyframes special-entry-banner-pulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
  }
  50% {
    box-shadow: 0 8px 48px rgba(236, 72, 153, 0.7);
  }
}

.special-entry-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.special-entry-particle {
  position: absolute;
  top: -50px;
  animation: special-entry-fall linear forwards;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes special-entry-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.9;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .special-entry-rain-overlay {
    display: none;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .special-entry-banner {
    top: 60px;
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 90vw;
    white-space: normal;
  }
}

/* =====================================================
   DJ TIP JAR MODAL - Mobile Optimized
   ===================================================== */

.dj-tip-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999999;
  /* Prevent iOS scroll issues */
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

.dj-tip-modal {
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 255, 0, 0.3);
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.15), 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: tipModalSlideIn 0.3s ease-out;
}

@keyframes tipModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dj-tip-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.15);
  flex-shrink: 0;
}

.dj-tip-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #00ff00;
  margin: 0;
}

.dj-tip-modal-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #888;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  /* Mobile touch improvements */
  -webkit-tap-highlight-color: rgba(255, 100, 100, 0.3);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.dj-tip-modal-close:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6666;
}

.dj-tip-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.dj-tip-info-box {
  background: rgba(0, 200, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.dj-tip-info-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 4px 0;
}

.dj-tip-info-highlight {
  font-weight: 700;
  color: #00ff00;
}

.dj-tip-info-house {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
}

.dj-tip-info-subtext {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.dj-tip-section {
  margin-bottom: 16px;
}

.dj-tip-label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.dj-tip-amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.dj-tip-amount-btn {
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s;
  /* Mobile touch improvements */
  -webkit-tap-highlight-color: rgba(0, 255, 0, 0.3);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.dj-tip-amount-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 0, 0.3);
}

.dj-tip-amount-btn:active {
  transform: scale(0.95);
  background: rgba(0, 255, 0, 0.3);
}

.dj-tip-amount-btn.active {
  background: #00ff00;
  color: #000;
  border-color: #00ff00;
}

.dj-tip-amount-btn.active:active {
  transform: scale(0.95);
  background: #00cc00;
}

.dj-tip-custom-amount {
  position: relative;
}

.dj-tip-currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1rem;
}

.dj-tip-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  padding-left: 32px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.dj-tip-input:focus {
  border-color: rgba(0, 255, 0, 0.5);
}

.dj-tip-input::placeholder {
  color: #666;
}

.dj-tip-section .dj-tip-input:not([type="number"]) {
  padding-left: 14px;
  text-align: left;
}

.dj-tip-error {
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: #ff8888;
  font-size: 0.85rem;
}

.dj-tip-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 16px;
  color: #00ff00;
}

.dj-tip-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: #00ff00;
  border-radius: 50%;
  animation: tipSpinner 0.8s linear infinite;
}

.dj-tip-spinner.gray {
  border-top-color: #888;
}

@keyframes tipSpinner {
  to {
    transform: rotate(360deg);
  }
}

.dj-tip-paypal {
  margin-bottom: 12px;
  min-height: 50px;
}

.dj-tip-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: #888;
}

.dj-tip-footer {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  margin: 0;
}

/* ============================================
   Tip Modal — Tab Navigation (PayPal / Credits / Prizes)
   ============================================ */
.dj-tip-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dj-tip-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #aaa;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: rgba(0, 255, 0, 0.25);
  touch-action: manipulation;
}

.dj-tip-tab .dj-tip-tab-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.dj-tip-tab:hover {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.05);
}

.dj-tip-tab.active {
  background: rgba(0, 200, 0, 0.18);
  border-color: rgba(0, 255, 0, 0.45);
  color: #00ff00;
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.15);
}

/* Currency toggle (Credits vs O-NOTES) */
.dj-tip-currency-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.dj-tip-currency-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #bbb;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.dj-tip-currency-pill.active {
  background: linear-gradient(135deg, rgba(0, 200, 0, 0.25), rgba(0, 255, 100, 0.15));
  border-color: rgba(0, 255, 0, 0.5);
  color: #00ff7a;
}

/* Balance line */
.dj-tip-balance-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 6px;
}

.dj-tip-balance-line .dj-tip-balance-value {
  font-weight: 700;
  color: #00ff7a;
}

.dj-tip-balance-line .dj-tip-balance-value.low {
  color: #ff8a8a;
}

/* CTA: Tip the DJ for virtual methods */
.dj-tip-virtual-cta {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 0, 0.5);
  background: linear-gradient(135deg, #00b32d, #008f24);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(0, 255, 0, 0.18);
  -webkit-tap-highlight-color: rgba(0, 255, 0, 0.3);
  touch-action: manipulation;
}

.dj-tip-virtual-cta:hover:not(:disabled) {
  background: linear-gradient(135deg, #00c233, #00a128);
  transform: translateY(-1px);
}

.dj-tip-virtual-cta:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: #777;
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  box-shadow: none;
}

.dj-tip-virtual-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #888;
  margin: 8px 0 0;
}

.dj-tip-virtual-hint.error {
  color: #ff8a8a;
}

/* Prize grid */
.dj-tip-prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-overflow-scrolling: touch;
}

.dj-tip-prize-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: rgba(0, 255, 0, 0.3);
}

.dj-tip-prize-card:hover:not(.disabled) {
  border-color: rgba(0, 255, 0, 0.4);
  background: rgba(0, 255, 0, 0.06);
}

.dj-tip-prize-card.selected {
  border-color: #00ff00;
  background: rgba(0, 255, 0, 0.12);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.25);
}

.dj-tip-prize-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dj-tip-prize-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.4);
}

.dj-tip-prize-name {
  font-size: 0.7rem;
  line-height: 1.1;
  color: #ddd;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.dj-tip-prize-cost {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffd86b;
  display: flex;
  align-items: center;
  gap: 2px;
}

.dj-tip-prize-cost.insufficient {
  color: #ff8a8a;
}

.dj-tip-prize-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 8px;
  color: #888;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .dj-tip-tab { font-size: 0.72rem; padding: 7px 2px; }
  .dj-tip-tab .dj-tip-tab-icon { font-size: 1rem; }
  .dj-tip-prize-grid { max-height: 200px; }
  .dj-tip-prize-thumb { width: 48px; height: 48px; }
}

/* ============================================
   DJ Tip Toast — club-wide celebration toast
   ============================================ */
.dj-tip-toast-stack {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.dj-tip-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15,23,42,0.97), rgba(10,15,30,0.97));
  border: 1px solid rgba(0, 255, 0, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 255, 100, 0.15);
  pointer-events: auto;
  animation: dj-tip-toast-in 0.4s cubic-bezier(0.22, 1, 0.36, 1),
             dj-tip-toast-out 0.45s ease-in 5.55s forwards;
}

@keyframes dj-tip-toast-in {
  from {
    opacity: 0;
    transform: translateX(110%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes dj-tip-toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(110%); }
}

.dj-tip-toast-credits { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 26px rgba(56, 189, 248, 0.25); }
.dj-tip-toast-onotes  { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 26px rgba(168, 85, 247, 0.25); }
.dj-tip-toast-prize   { border-color: rgba(251, 191, 36, 0.55); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 26px rgba(251, 191, 36, 0.28); }

.dj-tip-toast-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dj-tip-toast-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.dj-tip-toast-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.dj-tip-toast-body {
  flex: 1;
  min-width: 0;
}

.dj-tip-toast-headline {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.2;
  margin-bottom: 2px;
}

.dj-tip-toast-tipper {
  color: #f8fafc;
  font-weight: 700;
}

.dj-tip-toast-arrow {
  color: #94a3b8;
}

.dj-tip-toast-dj {
  color: #00ff7a;
  font-weight: 700;
}

.dj-tip-toast-detail {
  font-size: 0.95rem;
  color: #fbbf24;
  font-weight: 600;
  line-height: 1.2;
}

.dj-tip-toast-credits .dj-tip-toast-detail { color: #7dd3fc; }
.dj-tip-toast-onotes  .dj-tip-toast-detail { color: #d8b4fe; }

@media (max-width: 480px) {
  .dj-tip-toast-stack { top: 64px; right: 8px; left: 8px; max-width: none; }
  .dj-tip-toast { min-width: 0; max-width: none; width: 100%; padding: 10px 12px; }
  .dj-tip-toast-icon { width: 40px; height: 40px; }
}
/* Mobile-specific optimizations */
@media (max-width: 480px) {
  .dj-tip-modal-overlay {
    padding: 12px;
    align-items: flex-start;
    padding-top: 5vh;
  }

  .dj-tip-modal {
    max-height: 85vh;
    border-radius: 16px;
  }

  .dj-tip-modal-header {
    padding: 14px 16px;
  }

  .dj-tip-modal-title {
    font-size: 1.1rem;
  }

  .dj-tip-modal-content {
    padding: 14px 16px 18px;
  }

  .dj-tip-amount-buttons {
    gap: 6px;
  }

  .dj-tip-amount-btn {
    padding: 10px 6px;
    font-size: 0.9rem;
  }

  .dj-tip-input {
    padding: 10px 12px;
    padding-left: 28px;
    font-size: 0.95rem;
  }

  .dj-tip-section .dj-tip-input:not([type="number"]) {
    padding-left: 12px;
  }
}

/* Landscape mobile - make modal more compact */
@media (max-height: 500px) and (orientation: landscape) {
  .dj-tip-modal-overlay {
    padding: 8px;
    align-items: flex-start;
  }

  .dj-tip-modal {
    max-height: calc(100vh - 16px);
    max-width: 360px;
  }

  .dj-tip-modal-header {
    padding: 10px 16px;
  }

  .dj-tip-modal-content {
    padding: 10px 16px 14px;
  }

  .dj-tip-section {
    margin-bottom: 10px;
  }

  .dj-tip-info-box {
    padding: 8px 12px;
    margin-bottom: 10px;
  }

  .dj-tip-amount-buttons {
    gap: 4px;
  }

  .dj-tip-amount-btn {
    padding: 8px 4px;
    font-size: 0.85rem;
  }

  .dj-tip-input {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

/* Portrait mode on mobile - give it more space */
@media (max-width: 480px) and (orientation: portrait) {
  .dj-tip-modal {
    max-height: 80vh;
  }
}

/* ==============================================
   GEAR System Animations
   Used for profile badges, name styles, etc.
   ============================================== */

@keyframes gear-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes gear-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes gear-glow {
  0%, 100% {
    box-shadow: 0 0 15px var(--glow-color, rgba(52, 211, 153, 0.6));
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 25px var(--glow-color, rgba(52, 211, 153, 0.8)), 0 0 40px var(--glow-color, rgba(52, 211, 153, 0.4));
    filter: brightness(1.1);
  }
}

@keyframes gear-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gear-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===================================
   BATTERY OPTIMIZATION - PAUSE ANIMATIONS
   Pauses all CSS animations when tab is hidden
   =================================== */
body.page-hidden *,
body.page-hidden *::before,
body.page-hidden *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

/* ===================================
   ARCADE HOMEPAGE STYLES
   =================================== */

/* Arcade button in hero actions */
.homepage-action-btn.arcade {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
  border-color: rgba(255, 193, 7, 0.4);
  color: #ffc107;
}

.homepage-action-btn.arcade:hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 152, 0, 0.2));
  border-color: rgba(255, 193, 7, 0.6);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

/* Arcade section card */
.arcade-section {
  background: linear-gradient(145deg, rgba(255, 193, 7, 0.08), rgba(255, 152, 0, 0.04));
  border-color: rgba(255, 193, 7, 0.2);
}

/* Jackpot display */
.arcade-jackpot-display {
  background: linear-gradient(145deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.08));
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.arcade-jackpot-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dju-text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.arcade-jackpot-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffc107;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
  animation: jackpot-pulse 2s ease-in-out infinite;
}

.arcade-jackpot-coins {
  font-size: 1rem;
  color: #ffeb3b;
  margin-top: 4px;
  opacity: 0.9;
}

@keyframes jackpot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

/* Arcade leaderboard row */
.arcade-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: background 0.2s;
}

.arcade-leaderboard-row:hover {
  background: rgba(255, 193, 7, 0.08);
}

.arcade-leaderboard-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 193, 7, 0.3);
}

.arcade-leaderboard-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dju-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arcade-leaderboard-tickets {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffc107;
  white-space: nowrap;
}

/* Biggest Win Display */
.arcade-biggest-win {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
}

.arcade-biggest-win-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dju-text-muted);
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}

.arcade-biggest-win-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arcade-biggest-win-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.5);
  flex-shrink: 0;
}

.arcade-biggest-win-info {
  flex: 1;
  min-width: 0;
}

.arcade-biggest-win-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dju-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arcade-biggest-win-game {
  font-size: 0.7rem;
  color: var(--dju-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arcade-biggest-win-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  white-space: nowrap;
}

/* =====================================================
   DJ BOOTH TUNE BOOST EFFECT
   Cyan glow + electric effect when someone TUNEs (1 minute)
   ===================================================== */

.dj-booth-container {
  position: relative;
  overflow: visible;
}

.dj-booth-container.tune-boost-active {
  animation: tuneBoostPulse 2s ease-in-out infinite;
}

.dj-booth-container.tune-boost-active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.4),
    rgba(58, 232, 255, 0.6),
    rgba(0, 255, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  border-radius: inherit;
  z-index: -1;
  animation: tuneBoostSweep 1.5s linear infinite;
}

.dj-booth-container.tune-boost-active::after {
  content: '⚡';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: tuneBoostElectric 0.3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #00ffff);
}

@keyframes tuneBoostPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), inset 0 0 15px rgba(0, 255, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.7), inset 0 0 25px rgba(0, 255, 255, 0.1);
  }
}

@keyframes tuneBoostSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes tuneBoostElectric {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  25% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.1) rotate(-5deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(0.95);
  }
  75% {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.05) rotate(5deg);
  }
}

/* =====================================================
   COMPACT HOMEPAGE REDESIGN - March 2026
   ===================================================== */

/* CSS Variables for Compact Mode */
:root {
  --compact-padding: 12px;
  --compact-gap: 12px;
  --compact-radius: 12px;
  --compact-avatar-sm: 28px;
  --compact-avatar-md: 32px;
  --compact-font-title: 0.75rem;
  --compact-font-body: 0.8rem;
}

/* Compact Hero - Single Row */
.compact-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(13, 13, 20, 0.98), rgba(7, 7, 12, 0.98));
  border-radius: var(--compact-radius);
  border: 1px solid var(--dju-border-subtle);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.compact-hero-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compact-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dju-text-main);
  margin: 0;
}

.compact-hero-title .highlight {
  color: var(--dju-accent);
  text-shadow: var(--dju-shadow-glow);
}

.compact-hero-subtitle {
  font-size: 0.8rem;
  color: var(--dju-text-muted);
}

.compact-hero-subtitle strong {
  color: var(--dju-accent-2);
}

/* Compact Action Buttons */
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.compact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--dju-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dju-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.compact-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dju-text-main);
  transform: translateY(-1px);
}

.compact-action-btn.primary {
  background: var(--dju-accent);
  border-color: var(--dju-accent);
  color: white;
}

.compact-action-btn.primary:hover {
  background: #ff4580;
  box-shadow: 0 0 12px rgba(255, 47, 109, 0.5);
}

.compact-action-btn span {
  font-size: 0.9rem;
}

/* Compact On Air Badge */
.compact-on-air {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 47, 109, 0.1);
  border: 1px solid rgba(255, 47, 109, 0.3);
  border-radius: var(--dju-radius-pill);
}

.compact-on-air-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.8);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.compact-on-air-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dju-text-main);
}

.compact-on-air-dj {
  font-size: 0.7rem;
  color: var(--dju-text-muted);
}

/* Compact Stats Strip */
.compact-stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(13, 13, 20, 0.6);
  border-radius: var(--compact-radius);
  border: 1px solid var(--dju-border-subtle);
  margin-bottom: 12px;
  overflow-x: auto;
}

.compact-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.compact-stat-icon {
  font-size: 0.9rem;
}

.compact-stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dju-text-main);
}

.compact-stat-value.cyan {
  color: #3ae8ff;
}

.compact-stat-value.yellow {
  color: #ffd93d;
}

.compact-stat-value.pink {
  color: #ff2f6d;
}

.compact-stat-value.green {
  color: #4ade80;
}

.compact-stat-label {
  font-size: 0.65rem;
  color: var(--dju-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compact-stat-divider {
  width: 1px;
  height: 20px;
  background: var(--dju-border-subtle);
  margin: 0 4px;
}

/* 3-Column Masonry Grid */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--compact-gap);
}

@media (max-width: 1199px) {
  .compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .compact-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .compact-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .compact-stats-strip {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Compact Section Cards */
.compact-section {
  background: linear-gradient(145deg, rgba(13, 13, 20, 0.6), rgba(7, 7, 12, 0.6));
  border-radius: var(--compact-radius);
  padding: var(--compact-padding);
  border: 1px solid var(--dju-border-subtle);
  backdrop-filter: blur(8px);
}

.compact-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.compact-section-link {
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: var(--dju-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--dju-text-main);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.compact-section-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateX(2px);
}

/* Compact Row Items */
.compact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.compact-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.compact-row + .compact-row {
  margin-top: 4px;
}

.compact-rank {
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  text-align: center;
  color: var(--dju-text-muted);
}

.compact-rank.gold { color: #ffd700; }
.compact-rank.silver { color: #c0c0c0; }
.compact-rank.bronze { color: #cd7f32; }

.compact-avatar {
  width: var(--compact-avatar-sm);
  height: var(--compact-avatar-sm);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.compact-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--dju-text-muted);
}

.compact-name {
  flex: 1;
  font-size: var(--compact-font-body);
  font-weight: 500;
  color: var(--dju-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dju-text-muted);
}

.compact-value.highlight {
  color: var(--dju-accent-2);
}

.compact-value.gold {
  color: #ffd700;
}

/* Compact Battle Card */
.compact-battle {
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.08), rgba(255, 47, 109, 0.05));
  border-color: rgba(255, 107, 53, 0.3);
}

.compact-battle-challengers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.compact-challenger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.compact-challenger-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 53, 0.5);
}

.compact-challenger-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dju-text-main);
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-vs {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--dju-accent);
  text-shadow: 0 0 10px rgba(255, 47, 109, 0.5);
}

.compact-battle-pot {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dju-accent-2);
  margin-top: 4px;
}

/* Compact Bet Card */
.compact-bet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.2s ease;
}

.compact-bet-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.compact-bet-card + .compact-bet-card {
  margin-top: 6px;
}

.compact-bet-title {
  font-size: var(--compact-font-body);
  font-weight: 600;
  color: var(--dju-text-main);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.compact-bet-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-bet-pot {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.compact-bet-pot.credits {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
}

.compact-bet-pot.points {
  background: rgba(58, 232, 255, 0.1);
  color: #3ae8ff;
}

.compact-bet-time {
  font-size: 0.65rem;
  color: var(--dju-text-muted);
}

/* Compact REP BOARD */
.compact-rep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.compact-rep-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.2s ease;
}

.compact-rep-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.compact-rep-category {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dju-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.compact-rep-winner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.compact-rep-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.compact-rep-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--dju-text-main);
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Special Achievements - Small Badges */
.compact-achievements {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.compact-achievement {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--dju-radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.2s ease;
}

.compact-achievement:hover {
  background: rgba(255, 255, 255, 0.06);
}

.compact-achievement.goat {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}

.compact-achievement.party {
  border-color: rgba(255, 105, 180, 0.3);
  background: rgba(255, 105, 180, 0.05);
}

.compact-achievement.fluffer {
  border-color: rgba(0, 255, 255, 0.3);
  background: rgba(0, 255, 255, 0.05);
}

.compact-achievement-icon {
  font-size: 0.8rem;
}

.compact-achievement-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.compact-achievement-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--dju-text-main);
  max-width: 50px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Arcade */
.compact-arcade {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(58, 232, 255, 0.05));
  border-color: rgba(139, 92, 246, 0.2);
}

.compact-jackpot {
  text-align: center;
  padding: 8px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.compact-jackpot-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dju-text-muted);
  margin-bottom: 2px;
}

.compact-jackpot-value {
  font-size: 1rem;
  font-weight: 800;
  color: #ffd700;
}

/* Compact Chronicles */
.compact-chronicle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.2s ease;
}

.compact-chronicle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.compact-chronicle-cover {
  width: 50px;
  height: 65px;
  border-radius: 6px;
  object-fit: cover;
  background: linear-gradient(135deg, #9333ea, #3b82f6);
}

.compact-chronicle-info {
  flex: 1;
}

.compact-chronicle-title {
  font-size: var(--compact-font-body);
  font-weight: 600;
  color: var(--dju-text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-chronicle-meta {
  font-size: 0.65rem;
  color: var(--dju-text-muted);
  margin-top: 4px;
}

/* Compact User Welcome */
.compact-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(145deg, rgba(58, 232, 255, 0.08), rgba(139, 92, 246, 0.05));
  border-radius: var(--compact-radius);
  border: 1px solid rgba(58, 232, 255, 0.2);
  margin-bottom: 12px;
}

.compact-welcome-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compact-welcome-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(58, 232, 255, 0.3);
}

.compact-welcome-greeting {
  font-size: 0.8rem;
  color: var(--dju-text-main);
}

.compact-welcome-greeting strong {
  color: var(--dju-accent-2);
}

.compact-welcome-stats {
  display: flex;
  gap: 12px;
}

.compact-welcome-stat {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
}

.compact-welcome-stat span {
  font-weight: 700;
}

.compact-welcome-stat span.points {
  color: #3ae8ff;
}

.compact-welcome-stat span.credits {
  color: #ffd700;
}

.compact-welcome-right {
  display: flex;
  gap: 8px;
}

/* Show More Link */
.compact-show-more {
  display: block;
  text-align: center;
  font-size: 0.65rem;
  padding: 6px;
  margin-top: 6px;
  color: var(--dju-text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.compact-show-more:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--dju-text-main);
}

/* Empty State */
.compact-empty {
  text-align: center;
  padding: 16px 8px;
  color: var(--dju-text-muted);
}

.compact-empty-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  opacity: 0.5;
}

.compact-empty-text {
  font-size: 0.7rem;
}

/* Responsive Adjustments for Compact Mode */
@media (max-width: 1199px) {
  .compact-hero-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .compact-stats-strip {
    padding: 8px 12px;
    gap: 6px;
  }

  .compact-stat-divider {
    display: none;
  }

  .compact-on-air {
    width: 100%;
    justify-content: center;
  }

  .compact-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .compact-welcome-right {
    width: 100%;
    justify-content: flex-start;
  }
}

/* =====================================================
   HIGHLIGHT SECTIONS - Visual Flare
   ===================================================== */

/* === DJ ON AIR HIGHLIGHT === */
.compact-on-air.highlight-on-air {
  position: relative;
  padding: 12px 20px;
  font-size: 1.1em;
  background: linear-gradient(145deg, rgba(255, 47, 109, 0.15), rgba(58, 232, 255, 0.08));
  border: 2px solid transparent;
  background-clip: padding-box;
  animation: onAirPulse 2s ease-in-out infinite;
  overflow: visible;
}

.compact-on-air.highlight-on-air::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #ff2f6d, #3ae8ff, #ff2f6d);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  z-index: -1;
  border-radius: var(--dju-radius-pill);
}

.compact-on-air.highlight-on-air .compact-on-air-dot {
  width: 12px;
  height: 12px;
  animation: liveBeacon 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.9), 0 0 24px rgba(255, 68, 68, 0.5);
}

.compact-on-air.highlight-on-air .compact-on-air-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 47, 109, 0.5);
}

.compact-on-air.highlight-on-air .compact-on-air-dj {
  font-size: 0.8rem;
  color: var(--dju-text-main);
}

@keyframes onAirPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 47, 109, 0.3), 0 0 40px rgba(255, 47, 109, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 47, 109, 0.5), 0 0 60px rgba(255, 47, 109, 0.2);
  }
}

@keyframes liveBeacon {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* === TUNE! LEADERBOARD HIGHLIGHT === */
.compact-section.highlight-tune {
  grid-column: span 2;
  position: relative;
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.04));
  border: 3px solid rgba(255, 215, 0, 0.4);
  box-shadow:
    0 0 20px rgba(255, 215, 0, 0.15),
    inset 0 0 30px rgba(255, 215, 0, 0.03);
  backdrop-filter: blur(12px);
}

.compact-section.highlight-tune::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 215, 0, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: shimmer 4s ease infinite;
  pointer-events: none;
}

.compact-section.highlight-tune .compact-section-title {
  font-size: 0.85rem;
  background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s linear infinite;
}

.compact-section.highlight-tune .compact-row {
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.compact-section.highlight-tune .compact-row:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateX(4px);
  box-shadow: -4px 0 12px rgba(255, 215, 0, 0.2);
}

@keyframes shimmer {
  0% { background-position: -200% -200%; }
  100% { background-position: 200% 200%; }
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}


/* === REP BOARD HIGHLIGHT === */
.compact-section.highlight-rep {
  grid-column: span 2;
  position: relative;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(255, 47, 109, 0.05));
  border: 3px solid transparent;
  overflow: visible;
}

.compact-section.highlight-rep::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  background: linear-gradient(
    90deg,
    #ff2f6d,
    #3ae8ff,
    #ffd700,
    #ff2f6d
  );
  background-size: 300% 100%;
  animation: borderGlow 8s linear infinite;
  z-index: -1;
}

.compact-section.highlight-rep::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(13, 13, 20, 0.95), rgba(7, 7, 12, 0.98));
  z-index: -1;
}

.compact-section.highlight-rep .compact-section-title {
  font-size: 0.85rem;
  text-shadow: 0 0 12px rgba(255, 47, 109, 0.4);
}

/* Enhanced Achievement Badges */
.compact-section.highlight-rep .compact-achievement {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.compact-section.highlight-rep .compact-achievement:hover {
  transform: scale(1.1);
}

.compact-section.highlight-rep .compact-achievement.goat {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  animation: achievementGlow 2s ease-in-out infinite;
}

.compact-section.highlight-rep .compact-achievement.party {
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
  animation: achievementGlow 2s ease-in-out infinite 0.3s;
}

.compact-section.highlight-rep .compact-achievement.fluffer {
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  animation: achievementGlow 2s ease-in-out infinite 0.6s;
}

/* Enhanced Rep Grid */
.compact-section.highlight-rep .compact-rep-grid {
  gap: 10px;
}

.compact-section.highlight-rep .compact-rep-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.compact-section.highlight-rep .compact-rep-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes achievementGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}


/* === SUBTLE HOVER FOR OTHER SECTIONS === */
.compact-section:not(.highlight-tune):not(.highlight-rep) {
  transition: all 0.3s ease;
}

.compact-section:not(.highlight-tune):not(.highlight-rep):hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}


/* === RESPONSIVE: Highlighted sections go single column on mobile === */
@media (max-width: 767px) {
  .compact-section.highlight-tune,
  .compact-section.highlight-rep {
    grid-column: span 1;
  }

  .compact-on-air.highlight-on-air {
    padding: 10px 16px;
  }
}


/* =====================================================
   HIGHLIGHT + ORIGINAL INTERIOR COMPATIBILITY
   Keep highlight borders, use original interior styling
   ===================================================== */

/* Highlight containers with original interior - increase padding */
.compact-section.highlight-tune,
.compact-section.highlight-rep {
  padding: 16px;
}

/* TUNE! Leaderboard inside highlight - use original styling */
.compact-section.highlight-tune .tune-leaderboard-row {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.compact-section.highlight-tune .tune-leaderboard-row:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateX(4px);
  box-shadow: -4px 0 12px rgba(255, 215, 0, 0.2);
}

.compact-section.highlight-tune .tune-leaderboard-avatar {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.compact-section.highlight-tune .tune-leaderboard-name {
  font-size: 0.95rem;
}

.compact-section.highlight-tune .tune-count-value {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* REP BOARD inside highlight - enhanced styling */
.compact-section.highlight-rep .rep-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.compact-section.highlight-rep .rep-board-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.3s ease;
}

.compact-section.highlight-rep .rep-board-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.compact-section.highlight-rep .rep-board-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.compact-section.highlight-rep .rep-board-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.compact-section.highlight-rep .rep-board-category-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dju-text-muted);
}

.compact-section.highlight-rep .rep-board-winner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compact-section.highlight-rep .rep-board-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.compact-section.highlight-rep .rep-board-winner-info {
  flex: 1;
  min-width: 0;
}

.compact-section.highlight-rep .rep-board-winner-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dju-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-section.highlight-rep .rep-board-winner-score {
  font-size: 0.7rem;
  color: var(--dju-accent-2);
}

.compact-section.highlight-rep .rep-board-no-winner {
  font-size: 0.75rem;
  color: var(--dju-text-muted);
  font-style: italic;
}

/* Override compact-section-header for highlight sections using original classes */
.compact-section.highlight-tune .community-section-header,
.compact-section.highlight-rep .community-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compact-section.highlight-tune .community-section-title,
.compact-section.highlight-rep .community-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Gold shimmer for TUNE! title */
.compact-section.highlight-tune .community-section-title {
  background: linear-gradient(90deg, #ffd700, #fff3a0, #ffd700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

/* Pink glow for REP BOARD title */
.compact-section.highlight-rep .community-section-title {
  color: #ff6b9d;
  text-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
}

/* Section tags inside highlight */
.compact-section.highlight-tune .community-section-tag,
.compact-section.highlight-rep .community-section-tag {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--dju-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--dju-text-main);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.compact-section.highlight-tune .tune-badge {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}


/* =====================================================
   DJ SCHEDULE CARD - Cyan Theme
   ===================================================== */

.compact-section.highlight-dj-schedule {
  position: relative;
  background: linear-gradient(145deg, rgba(58, 232, 255, 0.08), rgba(0, 200, 255, 0.04));
  border: 3px solid rgba(58, 232, 255, 0.4);
  box-shadow:
    0 0 25px rgba(58, 232, 255, 0.15),
    inset 0 0 40px rgba(58, 232, 255, 0.03);
  backdrop-filter: blur(12px);
  padding: 16px;
}

.compact-section.highlight-dj-schedule::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(58, 232, 255, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: cyanShimmer 5s ease infinite;
  pointer-events: none;
}

@keyframes cyanShimmer {
  0% { background-position: -200% -200%; }
  100% { background-position: 200% 200%; }
}

.compact-section.highlight-dj-schedule .community-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(58, 232, 255, 0.25);
}

.compact-section.highlight-dj-schedule .community-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #3ae8ff, #80f0ff, #3ae8ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cyanTextShimmer 3s linear infinite;
  filter: drop-shadow(0 0 8px rgba(58, 232, 255, 0.5));
}

@keyframes cyanTextShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.compact-section.highlight-dj-schedule .community-section-tag {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--dju-radius-pill);
  background: rgba(58, 232, 255, 0.12);
  border: 1px solid rgba(58, 232, 255, 0.35);
  color: #3ae8ff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.compact-section.highlight-dj-schedule .community-section-tag:hover {
  background: rgba(58, 232, 255, 0.2);
  border-color: rgba(58, 232, 255, 0.5);
}

/* DJ Schedule Content */
.dj-schedule-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dj-schedule-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dj-schedule-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dju-text-muted);
}

.dj-schedule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dj-schedule-dot.live {
  background: #3ae8ff;
  box-shadow: 0 0 10px rgba(58, 232, 255, 0.8);
  animation: liveDotPulse 1.5s ease-in-out infinite;
}

.dj-schedule-dot.upcoming {
  background: rgba(58, 232, 255, 0.4);
  border: 1px solid rgba(58, 232, 255, 0.6);
}

@keyframes liveDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.dj-schedule-slot.current .dj-schedule-label {
  color: #3ae8ff;
}

.dj-schedule-dj {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(58, 232, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(58, 232, 255, 0.15);
  transition: all 0.3s ease;
}

.dj-schedule-slot.current .dj-schedule-dj {
  background: rgba(58, 232, 255, 0.1);
  border-color: rgba(58, 232, 255, 0.3);
}

.dj-schedule-dj:hover {
  background: rgba(58, 232, 255, 0.12);
  border-color: rgba(58, 232, 255, 0.4);
  transform: translateX(4px);
}

.dj-schedule-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(58, 232, 255, 0.4);
  box-shadow: 0 0 15px rgba(58, 232, 255, 0.2);
  flex-shrink: 0;
}

.dj-schedule-slot.current .dj-schedule-avatar {
  border-color: rgba(58, 232, 255, 0.6);
  box-shadow: 0 0 20px rgba(58, 232, 255, 0.4);
}

.dj-schedule-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(58, 232, 255, 0.2), rgba(0, 150, 200, 0.3));
  font-size: 1.2rem;
  font-weight: 700;
  color: #3ae8ff;
}

.dj-schedule-info {
  flex: 1;
  min-width: 0;
}

.dj-schedule-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dju-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dj-schedule-slot.current .dj-schedule-name {
  color: #3ae8ff;
  text-shadow: 0 0 10px rgba(58, 232, 255, 0.3);
}

.dj-schedule-genre {
  font-size: 0.8rem;
  color: var(--dju-text-muted);
  margin-top: 2px;
}

.dj-schedule-show {
  font-size: 0.75rem;
  color: rgba(58, 232, 255, 0.7);
  margin-top: 4px;
  font-style: italic;
}

.dj-schedule-time {
  font-size: 0.75rem;
  color: rgba(58, 232, 255, 0.8);
  margin-top: 4px;
  font-weight: 600;
}

.dj-schedule-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 232, 255, 0.3), transparent);
  margin: 4px 0;
}

.dj-schedule-empty {
  padding: 12px;
  text-align: center;
  color: var(--dju-text-muted);
  font-size: 0.85rem;
  font-style: italic;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px dashed rgba(58, 232, 255, 0.2);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .dj-schedule-avatar {
    width: 48px;
    height: 48px;
  }

  .dj-schedule-name {
    font-size: 0.9rem;
  }

  .dj-schedule-genre {
    font-size: 0.75rem;
  }
}

/* Hide scrollbar for horizontal scroll areas */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================================================
 * User Dashboard (Welcome back area on /community)
 * Markup was added April 23 (commit d242202a) but the matching CSS was never
 * written — the area rendered with browser defaults for ~a month. These rules
 * match the community-card glass-purple aesthetic used elsewhere on the page.
 * ============================================================================ */

.user-dashboard {
  margin-bottom: 16px;
  padding: 18px 20px;
  background: linear-gradient(145deg, rgba(13, 13, 20, 0.85), rgba(7, 7, 12, 0.85));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--dju-radius-lg, 18px);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(12px);
}

.user-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.user-dashboard-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--dju-text-main, #fff);
}

.user-dashboard-greeting strong {
  color: #c4b5fd;
}

.user-dashboard-wave {
  font-size: 1.2rem;
  animation: wave 2.2s ease-in-out infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.user-dashboard-profile-link {
  font-size: 0.8rem;
  color: #a78bfa;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: var(--dju-radius-pill, 999px);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  transition: all 0.15s;
  white-space: nowrap;
}

.user-dashboard-profile-link:hover {
  background: rgba(139, 92, 246, 0.22);
  color: #ddd6fe;
}

/* Card grid */
.user-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.user-dashboard-card {
  display: block;
  padding: 14px;
  background: rgba(13, 13, 20, 0.55);
  border: 1px solid var(--dju-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--dju-radius-lg, 14px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

a.user-dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.18);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dju-border-subtle, rgba(255, 255, 255, 0.06));
}

.dashboard-card-icon {
  font-size: 1.05rem;
}

.dashboard-card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--dju-text-muted, #94a3b8);
}

/* Per-card accents */
.level-card    { border-left: 3px solid #38bdf8; }
.crew-card     { border-left: 3px solid #3ae8ff; }
.stats-card    { border-left: 3px solid #fbbf24; }
.stock-card    { border-left: 3px solid #4ade80; }
.arcade-card   { border-left: 3px solid #ec4899; }
.loyalty-card  { border-left: 3px solid #c4b5fd; }

/* --- Level card --- */
.level-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.level-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.level-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.level-badge-placeholder {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
}

.level-details {
  min-width: 0;
}

.level-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dju-text-main, #fff);
  line-height: 1.2;
}

.level-tier {
  font-size: 0.7rem;
  color: var(--dju-text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-progress-bar,
.challenge-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.challenge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3ae8ff, #a78bfa);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.level-progress-text,
.challenge-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--dju-text-muted, #94a3b8);
}

.level-next { color: #a78bfa; }
.challenge-time { color: #fbbf24; }

.level-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.level-requirements-label {
  font-size: 0.7rem;
  color: var(--dju-text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-req-chip {
  font-size: 0.7rem;
  padding: 1px 7px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  color: #bae6fd;
}

.level-max {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.1em;
  padding: 6px 0;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(236, 72, 153, 0.12));
  border-radius: 6px;
}

/* --- Crew card --- */
.crew-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.crew-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: #0a0a0f;
}
.crew-name { font-weight: 600; color: var(--dju-text-main, #fff); }
.crew-meta { font-size: 0.72rem; color: var(--dju-text-muted, #94a3b8); width: 100%; }
.crew-role { color: #a78bfa; }
.crew-members { margin-left: 4px; }

.crew-challenge {
  margin-top: 8px;
  padding: 8px;
  background: rgba(58, 232, 255, 0.06);
  border-radius: 6px;
}

.challenge-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dju-text-main, #fff);
}

.challenge-reward {
  margin-top: 4px;
  font-size: 0.7rem;
  color: #fbbf24;
}

.crew-no-challenge {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--dju-text-muted, #64748b);
  text-align: center;
  font-style: italic;
}

/* --- Stats card --- */
.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.user-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.user-stat-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.user-stat-value.points { color: #fbbf24; }
.user-stat-value.credits { color: #4ade80; }
.user-stat-value.level { color: #38bdf8; }

.user-stat-label {
  font-size: 0.62rem;
  color: var(--dju-text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-actions {
  display: flex;
  gap: 6px;
}

.user-action-btn {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  padding: 6px 4px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 6px;
  color: #ddd6fe;
  text-decoration: none;
  transition: all 0.15s;
}

.user-action-btn:hover {
  background: rgba(139, 92, 246, 0.2);
}

/* --- Stocks card --- */
.stock-portfolio-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.stock-value-amount { font-size: 1.1rem; font-weight: 700; color: var(--dju-text-main, #fff); }
.stock-value-label { font-size: 0.62rem; color: var(--dju-text-muted, #94a3b8); text-transform: uppercase; letter-spacing: 0.05em; display: block; }
.stock-profit-loss { font-size: 0.85rem; font-weight: 700; }
.stock-profit-loss.positive { color: #4ade80; }
.stock-profit-loss.negative { color: #f87171; }
.stock-pl-percent { font-size: 0.7rem; opacity: 0.85; margin-left: 4px; }

.stock-holdings-preview { display: flex; flex-direction: column; gap: 4px; }
.stock-holding-mini { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; }
.stock-holding-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.stock-holding-avatar.placeholder {
  background: rgba(139, 92, 246, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700;
}
.stock-holding-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dju-text-main, #fff); }
.stock-holding-change.positive { color: #4ade80; }
.stock-holding-change.negative { color: #f87171; }
.stock-more { font-size: 0.7rem; color: var(--dju-text-muted, #94a3b8); text-align: center; margin-top: 2px; }
.stock-dividends { margin-top: 6px; font-size: 0.7rem; color: #fbbf24; text-align: center; }

/* --- Arcade card --- */
.arcade-balance-row { display: flex; justify-content: space-around; margin-bottom: 8px; }
.arcade-balance-item { display: flex; flex-direction: column; align-items: center; }
.arcade-balance-icon { font-size: 1.05rem; }
.arcade-balance-value { font-size: 0.9rem; font-weight: 700; color: var(--dju-text-main, #fff); }
.arcade-balance-label { font-size: 0.6rem; color: var(--dju-text-muted, #94a3b8); text-transform: uppercase; letter-spacing: 0.05em; }

.arcade-favorite-game { font-size: 0.72rem; margin-bottom: 6px; color: var(--dju-text-muted, #94a3b8); }
.arcade-fav-label { margin-right: 4px; }
.arcade-fav-icon { margin-right: 2px; }
.arcade-fav-name { color: var(--dju-text-main, #fff); font-weight: 600; }
.arcade-fav-spins { margin-left: 4px; opacity: 0.7; }

.arcade-stats-mini { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--dju-text-muted, #94a3b8); }

/* --- Loyalty card --- */
.loyalty-stats-row { display: flex; justify-content: space-around; margin-bottom: 8px; }
.loyalty-stat-item { display: flex; flex-direction: column; align-items: center; }
.loyalty-stat-value { font-size: 0.95rem; font-weight: 700; color: #c4b5fd; }
.loyalty-stat-label { font-size: 0.6rem; color: var(--dju-text-muted, #94a3b8); text-transform: uppercase; letter-spacing: 0.05em; }

.loyalty-top-dj { padding-top: 6px; border-top: 1px solid var(--dju-border-subtle, rgba(255, 255, 255, 0.06)); }
.loyalty-top-label { font-size: 0.7rem; color: var(--dju-text-muted, #94a3b8); display: block; margin-bottom: 4px; }
.loyalty-top-dj-info { display: flex; align-items: center; gap: 6px; }
.loyalty-dj-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.loyalty-dj-avatar.placeholder {
  background: rgba(196, 181, 253, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #c4b5fd;
}

/* Mobile: one column */
@media (max-width: 640px) {
  .user-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .user-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
