/* --- Elite Network Styles (Luxury Redesign) --- */

.glass-card-parent {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#eliteSection {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 20px;
  padding: 3px;
  /* Space for the animated border */
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.1);
  display: flex !important;
  flex-direction: column;
  flex: 1;
  /* Match height of companion card */
  min-height: 280px;
}

/* The Animated Gold Border Effect */
#eliteSection::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent,
      #ffd700,
      #ffac04,
      #ffd700,
      transparent 30%);
  animation: rotateGold 4s linear infinite;
  z-index: 0;
}

#eliteSection::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
  border-radius: 18px;
  z-index: 1;
}

@keyframes rotateGold {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.elite-members-container {
  display: none !important;
  /* Logic moved to eliteSection */
}

.elite-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ffd700, #ffac04);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.elite-badge svg {
  width: 18px;
  height: 18px;
}

.elite-label {
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(to right, #fff, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.inner-content-box#eliteAvatarBox {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-top: 0;
  position: relative;
  overflow: hidden;
  height: 100% !important;
  /* Full height of container */
  min-height: 280px;
}

/* Custom styles for floating avatars in Elite section */
.elite-float-canvas .elite-floating-avatar {
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important;
}

.elite-tooltip {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.elite-category-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  color: #ffd700;
  opacity: 0.8;
  margin-bottom: 15px;
}

/* User Card Styles (Legacy fallback) */
.elite-card,
.premium-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 14px;
  padding: 8px 14px 8px 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elite-card:hover,
.premium-card:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.elite-avatar,
.premium-avatar {
  border: 1.5px solid #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.elite-name {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}