/* ============================================ */
/* COMMUNITY HUB - GLASS THEME v4              */
/* Rainbow Accents + Custom Fonts + Fixes      */
/* ============================================ */

/* ============================================ */
/* FONTS (fallback if not loaded)              */
/* ============================================ */

:root {
  --font-display: 'Gandover', 'Inter', sans-serif;
  --font-heading: 'Urban Star Blues Demo', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rainbow Accent Colors */
  --rainbow-1: #ff38e4;
  --rainbow-2: #f39716;
  --rainbow-3: #e4ff1a;
  --rainbow-4: #20fe8b;
  --rainbow-5: #4cd6eb;
  --rainbow-6: #8c35e9;
  --rainbow-7: #ff38e4;

  /* Glass & Base */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --text-primary: #f0edf5;
  --text-secondary: #b8b0c8;
  --text-muted: #7a7288;
  --bg-primary: #0d0b15;
  --bg-secondary: #16132b;
  --shadow-glow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================ */
/* RESET & BASE                                */
/* ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  padding-top: 0;
}

/* ============================================ */
/* GRADIENT BACKGROUND - RAINBOW ANIMATION     */
/* ============================================ */

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background:
    radial-gradient(ellipse at 0% 20%, #ff38e4 0%, transparent 45%),
    radial-gradient(ellipse at 20% 80%, #f39716 0%, transparent 40%),
    radial-gradient(ellipse at 50% 0%, #e4ff1a 0%, transparent 35%),
    radial-gradient(ellipse at 80% 60%, #20fe8b 0%, transparent 40%),
    radial-gradient(ellipse at 100% 20%, #4cd6eb 0%, transparent 35%),
    radial-gradient(ellipse at 60% 100%, #8c35e9 0%, transparent 45%),
    radial-gradient(ellipse at 100% 80%, #ff38e4 0%, transparent 40%);
  background-size: 400% 400%;
  animation: rainbowGradient 30s ease-in-out infinite alternate;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes rainbowGradient {
  0% {
    background-position: 0% 0%;
    opacity: 0.2;
  }
  12.5% {
    background-position: 25% 50%;
    opacity: 0.3;
  }
  25% {
    background-position: 50% 0%;
    opacity: 0.25;
  }
  37.5% {
    background-position: 75% 50%;
    opacity: 0.35;
  }
  50% {
    background-position: 100% 100%;
    opacity: 0.2;
  }
  62.5% {
    background-position: 75% 50%;
    opacity: 0.3;
  }
  75% {
    background-position: 50% 0%;
    opacity: 0.25;
  }
  87.5% {
    background-position: 25% 50%;
    opacity: 0.35;
  }
  100% {
    background-position: 0% 0%;
    opacity: 0.3;
  }
}

/* Light Mode Gradient */
body.light-mode .gradient-bg {
  opacity: 0.12;
}

/* ============================================ */
/* PARTICLE OVERLAY - RAINBOW                  */
/* ============================================ */

.particle-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: floatParticle 25s infinite linear;
  opacity: 0;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 22s; background: #ff38e4; }
.particle:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 18s; background: #f39716; }
.particle:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 26s; background: #e4ff1a; }
.particle:nth-child(4) { left: 35%; animation-delay: 1s; animation-duration: 20s; background: #20fe8b; }
.particle:nth-child(5) { left: 45%; animation-delay: 3s; animation-duration: 24s; background: #4cd6eb; }
.particle:nth-child(6) { left: 55%; animation-delay: 5s; animation-duration: 19s; background: #8c35e9; }
.particle:nth-child(7) { left: 65%; animation-delay: 2s; animation-duration: 23s; background: #ff38e4; }
.particle:nth-child(8) { left: 75%; animation-delay: 4s; animation-duration: 21s; background: #f39716; }
.particle:nth-child(9) { left: 85%; animation-delay: 1s; animation-duration: 27s; background: #e4ff1a; }
.particle:nth-child(10) { left: 10%; animation-delay: 6s; animation-duration: 20s; background: #20fe8b; }
.particle:nth-child(11) { left: 40%; animation-delay: 3s; animation-duration: 25s; background: #4cd6eb; }
.particle:nth-child(12) { left: 70%; animation-delay: 5s; animation-duration: 22s; background: #8c35e9; }
.particle:nth-child(13) { left: 20%; animation-delay: 7s; animation-duration: 28s; background: #ff38e4; }
.particle:nth-child(14) { left: 50%; animation-delay: 4s; animation-duration: 19s; background: #f39716; }
.particle:nth-child(15) { left: 80%; animation-delay: 2s; animation-duration: 24s; background: #e4ff1a; }

@keyframes floatParticle {
  0% {
    top: -10%;
    opacity: 0;
    transform: translateX(0) scale(0);
  }
  10% {
    opacity: 0.7;
    transform: translateX(20px) scale(1.2);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-15px) scale(1);
  }
  90% {
    opacity: 0.7;
    transform: translateX(10px) scale(0.8);
  }
  100% {
    top: 110%;
    opacity: 0;
    transform: translateX(0) scale(0);
  }
}

body.light-mode .particle {
  opacity: 0.2;
}

/* ============================================ */
/* CONTAINER                                   */
/* ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ============================================ */
/* HERO SECTION - FULL VIEWPORT                */
/* ============================================ */

.hub-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* Layer 1 - Background */
.hero-layer-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-layer-1 #layer1Content {
  width: 100%;
  height: 100%;
}

.hero-layer-1 #layer1Content img,
.hero-layer-1 #layer1Content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layer 2 - Overlay */
.hero-layer-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-layer-2 #layer2Content {
  opacity: 0.5;
  animation: floatOverlay 6s ease-in-out infinite;
}

@keyframes floatOverlay {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

/* Layer 3 - Glass UI with Graffiti Text */
.hero-layer-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(13, 11, 21, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 40px;
  text-align: center;
}

.hero-graffiti-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 9rem);
  font-weight: 900;
  background: linear-gradient(
    135deg,
    #ff38e4,
    #f39716,
    #e4ff1a,
    #20fe8b,
    #4cd6eb,
    #8c35e9,
    #ff38e4
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowText 8s ease-in-out infinite;
  text-shadow: none;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 60px rgba(255, 56, 228, 0.15));
}

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

.hero-graffiti-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.15em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

/* Hero Controls - make sure they show */
.hero-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: none; /* Hidden by default */
  gap: 10px;
  background: rgba(13, 11, 21, 0.8);
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-controls.visible {
  display: flex !important; /* Show when admin */
}

/* Bulletin Admin - make sure it shows */
.bulletin-admin {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  display: none; /* Hidden by default */
}

.bulletin-admin.visible {
  display: block !important; /* Show when admin */
}

.upload-btn {
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ff38e4;
  color: white;
}

.upload-btn input {
  display: none;
}

/* ============================================ */
/* SECTION HEADERS                             */
/* ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 18px;
  background: rgba(255, 56, 228, 0.12);
  border: 1px solid rgba(255, 56, 228, 0.15);
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ff38e4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  background: linear-gradient(135deg, #ff38e4, #8c35e9, #4cd6eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================================ */
/* GLASS CARD - REUSABLE                       */
/* ============================================ */

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 56, 228, 0.15);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

/* ============================================ */
/* GLOWING ANIMATED BOX SHADOW                 */
/* ============================================ */

.glow-box {
  position: relative;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 56, 228, 0.1), 0 0 40px rgba(255, 56, 228, 0.05);
  }
  25% {
    box-shadow: 0 0 30px rgba(243, 151, 22, 0.15), 0 0 60px rgba(243, 151, 22, 0.08);
  }
  50% {
    box-shadow: 0 0 40px rgba(32, 254, 139, 0.2), 0 0 80px rgba(32, 254, 139, 0.1);
  }
  75% {
    box-shadow: 0 0 30px rgba(76, 214, 235, 0.15), 0 0 60px rgba(76, 214, 235, 0.08);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 56, 228, 0.1), 0 0 40px rgba(255, 56, 228, 0.05);
  }
}

/* ============================================ */
/* CHEERS EXPLANATION - WITH GLOW              */
/* ============================================ */

.cheers-explanation {
  text-align: center;
  padding: 30px 24px;
  margin: 24px 0 40px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: glowPulse 3s ease-in-out infinite;
  position: relative;
}

.cheers-icon {
  font-size: 2.8rem;
  margin-bottom: 6px;
  display: inline-block;
  animation: cheersBounce 2s ease-in-out infinite;
}

@keyframes cheersBounce {
  0%, 100% {
    transform: rotate(-5deg) scale(1);
  }
  50% {
    transform: rotate(5deg) scale(1.1);
  }
}

.cheers-explanation h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  background: linear-gradient(135deg, #ff38e4, #f39716);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.cheers-explanation p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 4px;
}

.prize-link {
  color: #ff38e4;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.prize-link:hover {
  color: #f39716;
}

.intuit-badge {
  background: linear-gradient(135deg, #ff38e4, #8c35e9);
  color: white;
  padding: 1px 12px;
  border-radius: 20px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.challenge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 40px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================ */
/* DAILY CHALLENGE SECTION - WITH GLOW         */
/* ============================================ */

.daily-challenge-section {
  margin-bottom: 48px;
}

.challenge-timer {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.challenge-timer strong {
  color: #ff38e4;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* Challenge Card - WITH GLOW */
.challenge-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  animation: glowPulse 4s ease-in-out infinite;
}

.challenge-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 56, 228, 0.15);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.challenge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 8px;
}

.challenge-card-header .challenge-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: rgba(255, 56, 228, 0.08);
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ff38e4;
  border: 1px solid rgba(255, 56, 228, 0.1);
}

.challenge-countdown {
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.challenge-card-body {
  padding: 24px;
}

.challenge-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.challenge-card-body > p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.challenge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.challenge-tag {
  padding: 2px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.challenge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-challenge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-challenge-primary {
  background: linear-gradient(135deg, #ff38e4, #8c35e9);
  color: white;
  box-shadow: 0 4px 24px rgba(255, 56, 228, 0.3);
}

.btn-challenge-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 56, 228, 0.45);
}

.btn-challenge-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.btn-challenge-outline:hover {
  border-color: #ff38e4;
  color: #ff38e4;
  background: rgba(255, 56, 228, 0.04);
}

.btn-challenge-daily {
  background: rgba(76, 214, 235, 0.1);
  border-color: rgba(76, 214, 235, 0.2);
  color: #4cd6eb;
}

.btn-challenge-daily:hover {
  background: rgba(76, 214, 235, 0.2);
  transform: translateY(-2px);
}

.challenge-stats {
  display: flex;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.challenge-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  background: linear-gradient(135deg, #ff38e4, #f39716);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ============================================ */
/* COMMUNITY FEATURES - 3x2 GRID               */
/* ============================================ */

.community-features {
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

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

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 56, 228, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:active {
  transform: scale(0.97);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.feature-badge {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 600;
  margin-top: 10px;
}

.feature-badge.active {
  background: rgba(32, 254, 139, 0.15);
  color: #20fe8b;
  border: 1px solid rgba(32, 254, 139, 0.2);
}

.feature-badge.count {
  background: rgba(76, 214, 235, 0.1);
  color: #4cd6eb;
  border: 1px solid rgba(76, 214, 235, 0.15);
}

.feature-badge.soon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.feature-badge.new {
  background: rgba(255, 56, 228, 0.1);
  color: #ff38e4;
  border: 1px solid rgba(255, 56, 228, 0.15);
}

/* ============================================ */
/* QUICK STATS CARDS                           */
/* ============================================ */

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.quick-stat-card {
  text-align: center;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.quick-stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8a19e1, #d487f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quick-stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================ */
/* WEEKLY, MONTHLY, YEARLY CHALLENGES          */
/* ============================================ */

.weekly-challenge-section,
.monthly-challenge-section,
.yearly-challenge-section {
  margin-bottom: 48px;
}

.purpose-paragraph {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #ff38e4;
  padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.purpose-paragraph i {
  color: #ff38e4;
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.purpose-paragraph p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.challenge-card.weekly {
  border-color: rgba(243, 151, 22, 0.15);
  animation: glowPulseWeekly 4s ease-in-out infinite;
}

@keyframes glowPulseWeekly {
  0%, 100% { box-shadow: 0 0 20px rgba(243, 151, 22, 0.08); }
  50% { box-shadow: 0 0 40px rgba(243, 151, 22, 0.15); }
}

.challenge-card.weekly .challenge-badge {
  color: #f39716;
  background: rgba(243, 151, 22, 0.08);
  border-color: rgba(243, 151, 22, 0.1);
}

.challenge-card.monthly {
  border-color: rgba(32, 254, 139, 0.15);
  animation: glowPulseMonthly 4s ease-in-out infinite;
}

@keyframes glowPulseMonthly {
  0%, 100% { box-shadow: 0 0 20px rgba(32, 254, 139, 0.08); }
  50% { box-shadow: 0 0 40px rgba(32, 254, 139, 0.15); }
}

.challenge-card.monthly .challenge-badge {
  color: #20fe8b;
  background: rgba(32, 254, 139, 0.08);
  border-color: rgba(32, 254, 139, 0.1);
}

.challenge-card.yearly {
  border-color: rgba(140, 53, 233, 0.15);
  animation: glowPulseYearly 4s ease-in-out infinite;
}

@keyframes glowPulseYearly {
  0%, 100% { box-shadow: 0 0 20px rgba(140, 53, 233, 0.08); }
  50% { box-shadow: 0 0 40px rgba(140, 53, 233, 0.15); }
}

.challenge-card.yearly .challenge-badge {
  color: #8c35e9;
  background: rgba(140, 53, 233, 0.08);
  border-color: rgba(140, 53, 233, 0.1);
}

.challenge-days-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.challenge-prize {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 56, 228, 0.04);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.challenge-prize i {
  color: #f39716;
}

/* ============================================ */
/* BULLETIN BOARD                              */
/* ============================================ */

.bulletin-board {
  margin-bottom: 48px;
}

.bulletin-admin-toggle {
  text-align: center;
  margin-bottom: 12px;
}

.btn-admin-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 20px;
  border-radius: 40px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.btn-admin-toggle:hover {
  border-color: #ff38e4;
  color: #ff38e4;
}

.bulletin-admin {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  display: none;
}

.bulletin-admin.visible {
  display: block;
}

.bulletin-admin input,
.bulletin-admin textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.bulletin-admin input:focus,
.bulletin-admin textarea:focus {
  outline: none;
  border-color: #ff38e4;
  box-shadow: 0 0 20px rgba(255, 56, 228, 0.06);
}

.bulletin-admin textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit-post {
  padding: 8px 24px;
  background: linear-gradient(135deg, #ff38e4, #8c35e9);
  border: none;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.btn-submit-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 56, 228, 0.3);
}

.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.bulletin-post {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}

.bulletin-post:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 56, 228, 0.1);
}

.post-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.post-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #ff38e4;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-link:hover {
  color: #f39716;
  gap: 10px;
}

/* ============================================ */
/* BULLETIN BOARD - EXPANDABLE POSTS           */
/* ============================================ */

.bulletin-post {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}

.bulletin-post:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 56, 228, 0.1);
}

.post-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.post-content-wrapper {
  position: relative;
}

.post-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.post-excerpt-full {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 8px 0;
}

.post-excerpt-full p {
  margin-bottom: 8px;
}

.post-expand-btn {
  background: none;
  border: none;
  color: #ff38e4;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.post-expand-btn:hover {
  color: #f39716;
  gap: 10px;
}

.post-expand-btn i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.post-expand-btn.expanded i {
  transform: rotate(180deg);
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #4cd6eb;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 12px;
  background: rgba(76, 214, 235, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(76, 214, 235, 0.1);
}

.post-link:hover {
  color: #ff38e4;
  background: rgba(255, 56, 228, 0.08);
  border-color: rgba(255, 56, 228, 0.15);
  gap: 10px;
}

/* Light mode overrides */
body.light-mode .bulletin-post {
  background: rgba(255, 255, 255, 0.6);
}

body.light-mode .post-title {
  color: #1a1528;
}

body.light-mode .post-excerpt,
body.light-mode .post-excerpt-full {
  color: #5a5070;
}

body.light-mode .post-expand-btn {
  color: #8c35e9;
}

body.light-mode .post-expand-btn:hover {
  color: #ff38e4;
}

body.light-mode .post-link {
  background: rgba(76, 214, 235, 0.08);
  color: #4cd6eb;
}

body.light-mode .post-link:hover {
  background: rgba(255, 56, 228, 0.08);
  color: #ff38e4;
}

/* ============================================ */
/* RECENT ACTIVITY                             */
/* ============================================ */

.recent-activity {
  margin-bottom: 48px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.activity-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.activity-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 56, 228, 0.1);
}

.activity-image {
  height: 140px;
  background: rgba(255, 255, 255, 0.02);
}

.activity-content {
  padding: 14px 16px;
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.activity-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff38e4, #8c35e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: white;
}

.activity-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
}

.activity-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================ */
/* FEATURED ARTWORKS                           */
/* ============================================ */

.featured-artworks {
  margin-bottom: 48px;
}

.artworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.artwork-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.artwork-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 56, 228, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.artwork-image {
  height: 180px;
  background: rgba(255, 255, 255, 0.02);
}

.artwork-info {
  padding: 12px 14px;
}

.artwork-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artwork-artist {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.artwork-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.artwork-stats i {
  margin-right: 3px;
}

/* ============================================ */
/* FEATURED ARTISTS - LARGER CARDS             */
/* ============================================ */

.featured-artists-section {
  margin-bottom: 48px;
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.artist-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.artist-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 56, 228, 0.12);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.artist-cover {
  height: 130px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.artist-avatar-overlay {
  position: absolute;
  bottom: -28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff38e4, #8c35e9);
  border: 3px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  overflow: hidden;
}

.artist-avatar-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-info {
  padding: 34px 14px 16px;
}

.artist-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
}

.artist-specialty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.artist-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.artist-stats .stat {
  text-align: center;
}

.artist-stats .number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: #ff38e4;
}

.artist-stats .label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ============================================ */
/* WINNERS CAROUSEL - ORIGINAL FUNCTIONALITY    */
/* ============================================ */

.winners-section {
  margin-bottom: 48px;
  position: relative;
  padding: 20px 0;
  overflow: hidden;
}

.winners-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.winners-carousel {
  position: relative;
  width: 200px;
  height: 300px;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(-5deg);
  animation: carouselSpin 30s linear infinite;
}

.winners-carousel .winner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(calc(var(--position) * 36deg)) translateZ(480px);
  backface-visibility: visible;
  transition: all 0.5s ease;
}

.winners-carousel .winner-item .winner-card {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13, 11, 21, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid rgba(138, 25, 225, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.winners-carousel .winner-item .winner-card:hover {
  transform: scale(1.05);
  border-color: rgba(212, 135, 240, 0.3);
}

@keyframes carouselSpin {
  from { transform: perspective(1000px) rotateX(-5deg) rotateY(0deg); }
  to { transform: perspective(1000px) rotateX(-5deg) rotateY(360deg); }
}

.winners-carousel-container:hover .winners-carousel {
  animation-play-state: paused;
}

/* Winner card content */
.winner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(183, 178, 178, 0.85) 0%, transparent 100%);
}

.winner-rank {
  font-size: 0.7rem;
  font-weight: 700;
  color: #f39716;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.winner-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: white;
}

.winner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}

.placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 4px;
}

.placeholder-rank {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.placeholder-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================ */
/* RESPONSIVE FOR CAROUSEL                     */
/* ============================================ */

@media (max-width: 1024px) {
  .winners-carousel {
    width: 160px;
    height: 210px;
  }

  .winners-carousel .winner-item {
    transform: rotateY(calc(var(--position) * 36deg)) translateZ(380px);
  }

  .winners-carousel-container {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .winners-carousel {
    width: 130px;
    height: 170px;
  }

  .winners-carousel .winner-item {
    transform: rotateY(calc(var(--position) * 36deg)) translateZ(300px);
  }

  .winners-carousel-container {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .winners-carousel {
    width: 100px;
    height: 130px;
  }

  .winners-carousel .winner-item {
    transform: rotateY(calc(var(--position) * 36deg)) translateZ(220px);
  }

  .winners-carousel-container {
    min-height: 240px;
  }

  .winner-overlay {
    padding: 8px;
  }

  .winner-rank {
    font-size: 0.55rem;
  }

  .winner-name {
    font-size: 0.7rem;
  }
}
/* ============================================ */
/* TOP CREATORS - LEADERBOARD STYLE            */
/* ============================================ */

.top-creators-section {
  margin-bottom: 48px;
}

.creators-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}

.creator-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.creator-card:hover {
  transform: translateX(8px) scale(1.01);
  border-color: rgba(255, 56, 228, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.creator-rank {
  font-size: 1.3rem;
  font-weight: 700;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.creator-rank.gold {
  color: #f39716;
  text-shadow: 0 0 20px rgba(243, 151, 22, 0.3);
}
.creator-rank.silver {
  color: #c0c0c0;
  text-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}
.creator-rank.bronze {
  color: #cd7f32;
  text-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
}

.creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff38e4, #8c35e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

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

.creator-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
}

.creator-stats {
  display: flex;
  gap: 14px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.creator-stats i {
  margin-right: 4px;
  color: #ff38e4;
  opacity: 0.6;
}

.creator-points {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  background: linear-gradient(135deg, #ff38e4, #f39716);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}

.creator-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.55rem;
  padding: 1px 10px;
  border-radius: 20px;
  background: rgba(255, 56, 228, 0.08);
  border: 1px solid rgba(255, 56, 228, 0.1);
  color: #ff38e4;
  font-weight: 600;
}

/* ============================================ */
/* SUGGESTION BOX                              */
/* ============================================ */

.suggestion-box {
  margin-bottom: 48px;
}

.suggestion-form {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.suggestion-form textarea,
.suggestion-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.suggestion-form textarea {
  resize: vertical;
  min-height: 100px;
}

.suggestion-form textarea:focus,
.suggestion-form input:focus {
  outline: none;
  border-color: #ff38e4;
  box-shadow: 0 0 20px rgba(255, 56, 228, 0.06);
}

.btn-submit-suggestion {
  padding: 10px 28px;
  background: linear-gradient(135deg, #4cd6eb, #20fe8b);
  border: none;
  border-radius: 40px;
  color: var(--bg-primary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.btn-submit-suggestion:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(32, 254, 139, 0.3);
}

/* ============================================ */
/* CTA SECTION                                 */
/* ============================================ */

.hub-cta {
  margin-bottom: 48px;
}

.cta-content {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  animation: glowPulse 4s ease-in-out infinite;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  background: linear-gradient(135deg, #ff38e4, #f39716, #e4ff1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.cta-content > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 20px;
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cta-stat {
  text-align: center;
}

.cta-stat .stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  background: linear-gradient(135deg, #ff38e4, #4cd6eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cta-testimonial {
  max-width: 400px;
  margin: 0 auto;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 2px solid #ff38e4;
}

.cta-testimonial p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.cta-testimonial .testimonial-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 4px;
}

/* ============================================ */
/* MODAL                                       */
/* ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: rgba(13, 11, 21, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-primary);
}

.modal-header h3 i {
  color: #ff38e4;
  margin-right: 8px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #ff38e4;
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
}

.challenge-prompt {
  background: rgba(255, 56, 228, 0.04);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
  border-left: 3px solid #ff38e4;
}

.challenge-prompt h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.challenge-prompt p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 2px;
}

.create-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.create-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.create-option:hover {
  border-color: #ff38e4;
  background: rgba(255, 56, 228, 0.04);
  transform: translateX(4px);
}

.create-option i {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
  color: #ff38e4;
}

.create-option span {
  font-weight: 500;
  font-size: 0.9rem;
}

.create-option small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.modal-tips {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.modal-tips h5 {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.modal-tips ul {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-tips ul li {
  padding: 2px 0;
}

.modal-tips ul li a {
  color: #4cd6eb;
  text-decoration: none;
}

.modal-tips ul li a:hover {
  color: #ff38e4;
}

/* ============================================ */
/* LOADING STATE                               */
/* ============================================ */

.loading-state {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.loading-state i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* ============================================ */
/* FOOTER - MATCHES THEME                      */
/* ============================================ */

.tutorial-footer {
  background: rgba(13, 11, 21, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 24px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  background: linear-gradient(135deg, #ff38e4, #8c35e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ff38e4;
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-link:hover {
  background: rgba(255, 56, 228, 0.1);
  border-color: #ff38e4;
  color: #ff38e4;
  transform: translateY(-4px) scale(1.05);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================ */
/* LIGHT MODE OVERRIDES                        */
/* ============================================ */

body.light-mode {
  --bg-primary: #f5f0f8;
  --bg-secondary: #ede8f5;
  --text-primary: #1a1528;
  --text-secondary: #5a5070;
  --text-muted: #8a7a9a;
}

body.light-mode .glass-card,
body.light-mode .challenge-card,
body.light-mode .feature-card,
body.light-mode .bulletin-post,
body.light-mode .activity-item,
body.light-mode .artwork-card,
body.light-mode .artist-card,
body.light-mode .winner-card,
body.light-mode .creator-card,
body.light-mode .suggestion-form,
body.light-mode .cta-content,
body.light-mode .quick-stat-card {
  background: rgba(255, 255, 255, 0.6);
}

body.light-mode .hero-layer-3 {
  background: rgba(255, 255, 255, 0.2);
}

body.light-mode .hero-graffiti-sub {
  color: rgba(26, 21, 40, 0.8);
}

body.light-mode .modal-container {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .modal-header h3 {
  color: #1a1528;
}

body.light-mode .challenge-prompt {
  background: rgba(255, 56, 228, 0.04);
}

body.light-mode .create-option {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .create-option:hover {
  border-color: #ff38e4;
  background: rgba(255, 56, 228, 0.04);
}

body.light-mode .modal-tips {
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode .bulletin-admin input,
body.light-mode .bulletin-admin textarea,
body.light-mode .suggestion-form textarea,
body.light-mode .suggestion-form input {
  background: rgba(0, 0, 0, 0.02);
  color: #1a1528;
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .bulletin-admin input:focus,
body.light-mode .bulletin-admin textarea:focus,
body.light-mode .suggestion-form textarea:focus,
body.light-mode .suggestion-form input:focus {
  border-color: #ff38e4;
}

body.light-mode .purpose-paragraph {
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode .purpose-paragraph p {
  color: #5a5070;
}

body.light-mode .cta-testimonial {
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode .challenge-prize {
  background: rgba(255, 56, 228, 0.04);
}

body.light-mode .cheers-explanation {
  background: rgba(255, 255, 255, 0.6);
}

body.light-mode .tutorial-footer {
  background: rgba(255, 255, 255, 0.7);
}

body.light-mode .footer-section h4 {
  color: #1a1528;
}

body.light-mode .footer-section ul li a {
  color: #5a5070;
}

body.light-mode .footer-section ul li a:hover {
  color: #ff38e4;
}

body.light-mode .social-link {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
  color: #5a5070;
}

body.light-mode .social-link:hover {
  background: rgba(255, 56, 228, 0.04);
  border-color: #ff38e4;
  color: #ff38e4;
}

body.light-mode .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* ============================================ */
/* RESPONSIVE                                  */
/* ============================================ */

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

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .winners-carousel {
    width: 140px;
    height: 220px;
  }

  .winners-carousel .winner-item {
    transform:
      rotateY(calc((var(--position) - 1) * 36deg))
      translateZ(320px);
  }
}

@media (max-width: 768px) {
  .hub-hero {
    height: 80vh;
    min-height: 500px;
    max-height: 700px;
  }

  .hero-graffiti-title {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .hero-graffiti-sub {
    font-size: clamp(1rem, 3.5vw, 1.6rem);
  }

  .challenge-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .challenge-actions {
    flex-direction: column;
    width: 100%;
  }

  .challenge-actions .btn-challenge {
    width: 100%;
    justify-content: center;
  }

  .challenge-stats {
    gap: 16px;
    flex-wrap: wrap;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bulletin-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .artworks-grid {
    grid-template-columns: 1fr 1fr;
  }

  .artists-grid {
    grid-template-columns: 1fr 1fr;
  }

  .creators-grid {
    max-width: 100%;
  }

  .cta-stats {
    gap: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn-challenge {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-controls.visible {
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
    bottom: 15px;
  }

  .modal-container {
    width: 95%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .winners-carousel {
    width: 120px;
    height: 190px;
  }

  .winners-carousel .winner-item {
    transform:
      rotateY(calc((var(--position) - 1) * 36deg))
      translateZ(260px);
  }
}

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

  .artworks-grid {
    grid-template-columns: 1fr;
  }

  .artists-grid {
    grid-template-columns: 1fr;
  }

  .winner-item {
    flex: 0 0 150px;
  }

  .winner-card {
    height: 180px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .challenge-card-body h3 {
    font-size: 1.2rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .quick-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .winners-carousel-wrapper {
    height: 240px;
  }

  .winners-carousel {
    width: 100px;
    height: 160px;
  }

  .winners-carousel .winner-item {
    transform:
      rotateY(calc((var(--position) - 1) * 36deg))
      translateZ(200px);
  }
}

@media (max-width: 480px) {
  .quick-stats-grid {
    grid-template-columns: 1fr;
  }

  .creator-card {
    flex-wrap: wrap;
    gap: 8px;
  }

  .creator-points {
    margin-left: auto;
  }
}
