/* ============================================
   DEACON'S QUORUM - MODERN MARIO x MINECRAFT
   ============================================ */

:root {
  /* Mario-inspired palette */
  --mario-red: #e74c3c;
  --mario-red-dark: #c0392b;
  --mario-blue: #2980b9;
  --mario-blue-dark: #1a5276;
  --mario-green: #2ecc71;
  --mario-green-dark: #27ae60;
  --mario-yellow: #f1c40f;
  --mario-yellow-dark: #d4ac0f;
  --mario-orange: #e67e22;
  --mario-purple: #9b59b6;

  /* Minecraft-inspired palette */
  --mc-dirt: #8B6914;
  --mc-grass: #5b8c2a;
  --mc-stone: #7f7f7f;
  --mc-sky: #87CEEB;
  --mc-diamond: #4aedd9;
  --mc-gold: #FCDB05;

  /* UI Colors */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a3e;
  --bg-card: #1e1e42;
  --bg-card-hover: #252560;
  --text-primary: #ffffff;
  --text-secondary: #b8b8d4;
  --text-muted: #6c6c8a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(46, 204, 113, 0.3);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0d2137 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 30, 66, 0.9), rgba(15, 15, 35, 0.95));
  --gradient-mario: linear-gradient(135deg, var(--mario-red), var(--mario-orange));
  --gradient-luigi: linear-gradient(135deg, var(--mario-green), var(--mc-grass));
  --gradient-star: linear-gradient(135deg, var(--mario-yellow), var(--mario-orange));
  --gradient-diamond: linear-gradient(135deg, var(--mc-diamond), var(--mario-blue));

  /* Spacing */
  --nav-height: 70px;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-green: 0 0 30px rgba(46, 204, 113, 0.3);
  --shadow-glow-red: 0 0 30px rgba(231, 76, 60, 0.3);
  --shadow-glow-yellow: 0 0 30px rgba(241, 196, 15, 0.3);
  --shadow-glow-blue: 0 0 30px rgba(41, 128, 185, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--mario-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--mario-yellow);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  opacity: 0.15;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Block-style particles (Minecraft) */
.particle-block {
  border-radius: 3px !important;
  opacity: 0.1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15, 15, 35, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-nav.scrolled {
  background: rgba(15, 15, 35, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.mascot-mini {
  width: 40px;
  height: 40px;
  background: #1a8a4a;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 15px rgba(26, 138, 74, 0.4);
  transition: transform 0.3s ease;
}

.mascot-mini::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 16px 0 0 white;
}

.mascot-mini::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 6px;
  border-bottom: 2px solid #1a5e30;
  border-radius: 0 0 10px 10px;
}

.nav-logo:hover .mascot-mini {
  transform: scale(1.1) rotate(-5deg);
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--mario-green), var(--mc-diamond));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--mario-green);
  background: rgba(46, 204, 113, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--mario-green);
  border-radius: 3px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.98);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Group photo background placeholder */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46, 204, 113, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(41, 128, 185, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
}

/* Minecraft-style ground at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--mc-grass) 0px,
      var(--mc-grass) 30px,
      #4a7a22 30px,
      #4a7a22 60px
    );
  opacity: 0.3;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.02)" width="50" height="50"/><rect fill="rgba(255,255,255,0.01)" x="50" y="50" width="50" height="50"/></svg>');
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mario-green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.title-line {
  display: block;
}

.title-line.accent {
  background: linear-gradient(135deg, var(--mario-green), var(--mc-diamond), var(--mario-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(46, 204, 113, 0.3));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* DPAR Mascot in Hero */
.hero-mascot {
  position: absolute;
  bottom: 60px;
  right: 5%;
  z-index: 3;
  animation: mascotBob 3s ease-in-out infinite;
}

.deep-par-svg {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

@keyframes mascotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s ease-in-out infinite;
  color: var(--text-muted);
  font-size: 1.5rem;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-luigi);
  color: white;
  box-shadow: var(--shadow-glow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(46, 204, 113, 0.5);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: white;
}

.btn-danger {
  background: var(--gradient-mario);
  color: white;
  box-shadow: var(--shadow-glow-red);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(231, 76, 60, 0.5);
  color: white;
}

.btn-glow {
  animation: btnGlow 2s ease-in-out infinite alternate;
}

@keyframes btnGlow {
  from { box-shadow: 0 0 20px rgba(46, 204, 113, 0.3); }
  to { box-shadow: 0 0 40px rgba(46, 204, 113, 0.6); }
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.block-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--gradient-luigi);
  border-radius: 4px;
  box-shadow: var(--shadow-glow-green);
}

.block-icon::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, transparent 45%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.15) 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.15) 55%, transparent 55%);
  border-radius: 4px;
}

/* ============================================
   SUMMARY CARDS
   ============================================ */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.summary-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-goals::before { background: var(--gradient-star); }
.card-activities::before { background: var(--gradient-diamond); }
.card-members::before { background: var(--gradient-luigi); }

.summary-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-goals .card-icon {
  background: rgba(241, 196, 15, 0.15);
  color: var(--mario-yellow);
}

.card-activities .card-icon {
  background: rgba(41, 128, 185, 0.15);
  color: var(--mario-blue);
}

.card-members .card-icon {
  background: rgba(46, 204, 113, 0.15);
  color: var(--mario-green);
}

.summary-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.summary-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-stat {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--mario-green), var(--mc-diamond));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.card-link i {
  transition: transform 0.3s ease;
}

.card-link:hover i {
  transform: translateX(4px);
}

/* ============================================
   ACTIVITIES PREVIEW (Homepage)
   ============================================ */
.activities-preview {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.activities-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.activity-preview-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.activity-preview-card:hover {
  border-color: var(--border-glow);
  transform: translateX(8px);
}

.activity-date-badge {
  min-width: 60px;
  text-align: center;
  padding: 10px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.activity-date-badge .month {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mario-green);
  text-transform: uppercase;
}

.activity-date-badge .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
}

.activity-info h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

.activity-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   MEMBERS GRID
   ============================================ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.member-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.member-card:nth-child(4n+1) .member-avatar { background: rgba(231, 76, 60, 0.2); color: var(--mario-red); }
.member-card:nth-child(4n+2) .member-avatar { background: rgba(46, 204, 113, 0.2); color: var(--mario-green); }
.member-card:nth-child(4n+3) .member-avatar { background: rgba(41, 128, 185, 0.2); color: var(--mario-blue); }
.member-card:nth-child(4n+4) .member-avatar { background: rgba(241, 196, 15, 0.2); color: var(--mario-yellow); }

.member-name {
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================
   PAGE HEADER (Subpages)
   ============================================ */
.page-header {
  padding: 120px 0 40px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--mc-grass) 0px,
      var(--mc-grass) 30px,
      #4a7a22 30px,
      #4a7a22 60px
    );
  opacity: 0.2;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.page-title i {
  color: var(--mario-yellow);
}

.page-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ============================================
   GOALS PAGE - TROPHY SHOWCASE
   ============================================ */
.trophy-showcase {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.trophy-case {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trophy-slot {
  width: 120px;
  height: 140px;
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.4s ease;
  position: relative;
}

.trophy-slot.earned {
  border-color: var(--mario-yellow);
  box-shadow: var(--shadow-glow-yellow);
  animation: trophyShine 3s ease-in-out infinite;
}

.trophy-slot.locked {
  opacity: 0.4;
}

.trophy-slot .trophy-emoji {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.trophy-slot.earned .trophy-emoji {
  animation: trophySpin 0.6s ease;
}

.trophy-slot .trophy-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 8px;
}

.trophy-slot.earned .trophy-label {
  color: var(--mario-yellow);
}

.trophy-slot .lock-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
}

@keyframes trophyShine {
  0%, 100% { box-shadow: 0 0 20px rgba(241, 196, 15, 0.2); }
  50% { box-shadow: 0 0 40px rgba(241, 196, 15, 0.5); }
}

@keyframes trophySpin {
  0% { transform: scale(0) rotate(-180deg); }
  60% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ============================================
   GOALS TIMELINE
   ============================================ */
.goals-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.goals-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--mario-green), var(--mario-blue), var(--mario-purple));
  border-radius: 3px;
}

.goal-card {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
}

.goal-node {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--mario-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.4s ease;
}

.goal-card.completed .goal-node {
  background: var(--mario-green);
  border-color: var(--mario-yellow);
  box-shadow: var(--shadow-glow-green);
}

.goal-body {
  flex: 1;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
}

.goal-body:hover {
  border-color: var(--border-glow);
}

.goal-card.completed .goal-body {
  border-color: rgba(46, 204, 113, 0.3);
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.goal-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.goal-card.completed .goal-title {
  text-decoration: line-through;
  opacity: 0.7;
}

.goal-deadline {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(231, 76, 60, 0.15);
  color: var(--mario-red);
  white-space: nowrap;
}

.goal-card.completed .goal-deadline {
  background: rgba(46, 204, 113, 0.15);
  color: var(--mario-green);
}

.goal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.goal-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-luigi);
  transition: width 0.6s ease;
}

.goal-card.completed .progress-fill {
  width: 100% !important;
  background: var(--gradient-star);
}

.goal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================
   TROPHY CELEBRATION OVERLAY
   ============================================ */
.trophy-celebration {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.trophy-celebration.active {
  display: flex;
}

.celebration-content {
  text-align: center;
  animation: celebrationPop 0.5s ease;
}

.trophy-earned {
  font-size: 6rem;
  margin-bottom: 20px;
  animation: trophyBounce 0.8s ease infinite;
}

@keyframes trophyBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes celebrationPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.celebration-content h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  color: var(--mario-yellow);
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
}

.celebration-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

/* Confetti particles */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 3s ease-in-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   ACTIVITIES PAGE
   ============================================ */
.activities-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.filter-btn {
  padding: 10px 24px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: var(--mario-green);
  color: white;
  box-shadow: var(--shadow-glow-green);
}

.filter-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.activity-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.activity-card.upcoming::before { background: var(--gradient-luigi); }
.activity-card.past::before { background: var(--gradient-diamond); opacity: 0.5; }

.activity-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.activity-card .activity-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.activity-card.upcoming .activity-icon {
  background: rgba(46, 204, 113, 0.15);
  color: var(--mario-green);
}

.activity-card.past .activity-icon {
  background: rgba(41, 128, 185, 0.15);
  color: var(--mario-blue);
}

.activity-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.activity-card .activity-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.activity-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-meta i {
  width: 16px;
  color: var(--mario-green);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mario-green), var(--mc-diamond));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================
   ADMIN PAGE
   ============================================ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
}

.login-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  margin: 0 24px;
}

.login-icon {
  margin-bottom: 20px;
}

.login-card h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.login-card > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.input-field {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.input-field:focus {
  outline: none;
  border-color: var(--mario-green);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.error-msg {
  color: var(--mario-red);
  font-size: 0.9rem;
  margin-top: 12px;
  min-height: 20px;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.admin-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: fit-content;
}

.admin-tab.active {
  background: var(--mario-green);
  color: white;
  box-shadow: var(--shadow-glow-green);
}

.admin-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Admin Form Card */
.admin-form-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.admin-form-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form-card h3 i {
  color: var(--mario-green);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Trophy Selector */
.trophy-selector {
  display: flex;
  gap: 8px;
}

.trophy-option {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy-option.active {
  border-color: var(--mario-yellow);
  background: rgba(241, 196, 15, 0.15);
  box-shadow: var(--shadow-glow-yellow);
}

.trophy-option:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* Admin List Items */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.admin-list-item:hover {
  border-color: var(--border-glow);
}

.admin-list-item .item-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-list-item .item-emoji {
  font-size: 1.5rem;
}

.admin-list-item .item-title {
  font-weight: 700;
}

.admin-list-item .item-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-list-item .item-actions {
  display: flex;
  gap: 8px;
}

.admin-list-item .item-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-active {
  background: rgba(46, 204, 113, 0.15);
  color: var(--mario-green);
}

.status-completed {
  background: rgba(241, 196, 15, 0.15);
  color: var(--mario-yellow);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-mascot {
  width: 40px;
  height: 40px;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-mascot {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .deep-par-svg {
    width: 150px;
  }

  .hero-content {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    flex-direction: column;
  }

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

  .input-group {
    flex-direction: column;
  }

  .goals-timeline::before {
    left: 20px;
  }

  .goal-node {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .goal-body {
    padding: 16px;
  }

  .trophy-case {
    gap: 12px;
  }

  .trophy-slot {
    width: 90px;
    height: 110px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

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

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-page .login-card {
  max-width: 420px;
  width: 100%;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
}

.back-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--mario-green);
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Member details on dashboard */
.member-details {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.member-fullname {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.member-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.member-contact i {
  color: var(--mario-green);
  font-size: 0.75rem;
}

.member-role {
  font-size: 0.8rem;
  color: var(--mario-green);
  font-weight: 600;
  margin-bottom: 4px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.modal-card h3 i {
  color: var(--mario-green);
  margin-right: 8px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Member Groups */
.member-group {
  margin-bottom: 40px;
}

.member-group-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.member-group-title i {
  color: var(--mario-green);
  margin-right: 10px;
}

.member-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
