/* ==========================================================
   JFS PTA JOG-A-THON LEADERBOARD STYLES
   Colors: Jaguar Royal Blue & Athletic Gold
   ========================================================== */

:root {
  --primary: #0b4ea2;
  --primary-dark: #073570;
  --primary-light: #e8f1fc;
  --primary-glow: rgba(11, 78, 162, 0.15);

  --accent-gold: #ffb800;
  --accent-gold-dark: #d99b00;
  --accent-gold-light: #fff8e1;

  --navy: #091e42;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;

  --success: #10b981;
  --coral:   #f43f5e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(11, 78, 162, 0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(11, 78, 162, 0.12), 0 8px 10px -6px rgba(0,0,0,0.04);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f4f7fb;
  color: var(--gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================
   TOP ANNOUNCEMENT BAR
   ========================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #072a5a, #0b4ea2, #072a5a);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
}

.bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.pulse-badge {
  background: var(--accent-gold);
  color: #523800;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  animation: pulse-glow 2s infinite;
}

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

.bar-link {
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bar-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* ==========================================================
   HERO HEADER
   ========================================================== */
.hero-header {
  background: linear-gradient(135deg, #0b4ea2 0%, #083b7c 100%);
  color: var(--white);
  padding: 44px 0 54px;
  position: relative;
  overflow: hidden;
}

.hero-header::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,184,0,0.18) 0%, rgba(255,184,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-crest {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.brand-crest:hover {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.sub-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.main-title span {
  color: var(--accent-gold);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tagline {
  font-size: 1rem;
  color: #dbeafe;
  margin-top: 6px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow-sm);
}

.btn-icon {
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 100%);
  color: #3f2a00;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
}
.btn-secondary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.btn-danger:hover {
  background: #fecaca;
}

/* ==========================================================
   STATS RIBBON
   ========================================================== */
.stats-ribbon {
  margin-top: -30px;
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

.ribbon-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
}

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

@media (max-width: 640px) {
  .brand-logo-img {
    width: 66px;
    height: 66px;
  }
  .ribbon-grid {
    grid-template-columns: 1fr;
  }
}

.ribbon-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.goal-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.card-caption {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

.stat-highlight {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-top: 4px;
}

.goal-target-wrap {
  text-align: right;
}
.target-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
}
.target-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-700);
}

.progress-bar-container {
  width: 100%;
  height: 14px;
  background: var(--gray-100);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold) 0%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.progress-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-top: 8px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.metric-icon.gold { background: var(--accent-gold-light); }
.metric-icon.blue { background: var(--primary-light); }
.metric-icon.coral { background: #ffe4e6; }

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.metric-value.countdown-digits {
  color: var(--coral);
  font-size: 1.6rem;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ==========================================================
   NAVIGATION TABS
   ========================================================== */
.tabs-nav {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-emoji {
  font-size: 1.05rem;
}

.tab-btn:hover {
  color: var(--primary);
  background: rgba(11, 78, 162, 0.04);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}
.tab-panel.active {
  display: block;
}

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

/* ==========================================================
   SECTION TYPOGRAPHY
   ========================================================== */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.section-divider-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 16px;
}

/* ==========================================================
   PODIUM (TOP 3)
   ========================================================== */
.podium-section {
  text-align: center;
  margin-bottom: 34px;
}

.podium-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .podium-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}

.podium-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 18px 20px;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease;
}

.podium-card:hover {
  transform: translateY(-4px);
}

.podium-card.rank-1 {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, #fffcf0 0%, #ffffff 100%);
  box-shadow: 0 12px 24px rgba(255, 184, 0, 0.18);
  order: 2;
  padding-top: 32px;
  padding-bottom: 28px;
}

.podium-card.tied-co-leader {
  order: unset !important;
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, #fffcf0 0%, #ffffff 100%);
  box-shadow: 0 12px 24px rgba(255, 184, 0, 0.18);
  padding-top: 30px;
  padding-bottom: 26px;
}

.co-leader-pill {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-top: 6px;
  letter-spacing: 0.04em;
  display: inline-block;
}

.podium-card.rank-2 {
  border-color: #cbd5e1;
  order: 1;
}

.podium-card.rank-3 {
  border-color: #fbd5c0;
  order: 3;
}

@media (max-width: 640px) {
  .podium-card.rank-1 { order: 1; }
  .podium-card.rank-2 { order: 2; }
  .podium-card.rank-3 { order: 3; }
}

.podium-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.podium-card.rank-1 .podium-badge {
  width: 60px;
  height: 60px;
  font-size: 2rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffae00 100%);
}

.podium-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
}

.podium-meta {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.podium-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 10px;
}

.podium-card.rank-1 .podium-amount {
  font-size: 1.8rem;
  color: #b45309;
}

/* ==========================================================
   CONTROLS TOOLBAR
   ========================================================== */
.controls-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.search-box input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group select {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-700);
  font-weight: 600;
  cursor: pointer;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==========================================================
   TABLE CARD
   ========================================================== */
.table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--gray-50);
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
}

.data-table th.num-col {
  text-align: right;
}

.data-table th.highlight-head {
  color: var(--primary);
  background: #f0f6ff;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-800);
}

.data-table td.num-col {
  text-align: right;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.data-table tr:hover td {
  background-color: #f8fafc;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}

.rank-badge.top-1 { background: #fef3c7; color: #b45309; }
.rank-badge.top-2 { background: #e2e8f0; color: #475569; }
.rank-badge.top-3 { background: #ffedd5; color: #c2410c; }
.rank-badge.normal { background: var(--gray-100); color: var(--gray-600); }

.student-name-cell {
  font-weight: 700;
  color: var(--navy);
}

.total-cell {
  font-weight: 800 !important;
  color: var(--primary);
  font-size: 1.05rem;
}

.table-footer {
  padding: 12px 18px;
  background: var(--gray-50);
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 600;
}

/* ==========================================================
   WEEKLY TAB STYLES
   ========================================================== */
.weekly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.week-pills {
  display: flex;
  background: var(--gray-200);
  padding: 4px;
  border-radius: 9999px;
  gap: 4px;
}

.pill-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 9999px;
  cursor: pointer;
  color: var(--gray-600);
  transition: all 0.2s ease;
}

.pill-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.week-spotlight-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-radius: var(--radius-lg);
  border: 1px solid #bfdbfe;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.spotlight-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.spotlight-trophy {
  font-size: 3rem;
  background: var(--white);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.spotlight-mascot-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 50%;
}

.spotlight-meta-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.spotlight-leader-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.spotlight-stats {
  text-align: right;
}

.spotlight-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.card-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.card-inner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.badge-light {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}

/* ==========================================================
   CLASSROOMS & TEACHERS TAB
   ========================================================== */
.grade-breakdown-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.grade-contest-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.grade-contest-banner .contest-icon {
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.grade-contest-banner .contest-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #166534;
}

.grade-contest-banner .contest-title {
  color: #166534;
  line-height: 1.45;
}

.grade-contest-banner .contest-current-leader {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #065f46;
  width: fit-content;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.grade-contest-banner .contest-current-leader.awaiting {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.grade-bars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.grade-bar-item {
  background: var(--gray-50);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grade-bar-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Leading Grade Card Styling */
.grade-bar-item.leading-grade {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 45%, #fffdf5 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.2), 0 0 0 1px rgba(245, 158, 11, 0.15);
  position: relative;
}

.grade-leader-tag {
  display: flex;
  margin-bottom: 8px;
}

.leader-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.3);
  animation: pulse-leader 2.5s infinite ease-in-out;
}

@keyframes pulse-leader {
  0%, 100% {
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.55);
    transform: scale(1.02);
  }
}

.grade-bar-item.leading-grade .grade-bar-title .grade-name-label {
  color: #92400e;
  font-weight: 800;
  font-size: 1rem;
}

.grade-bar-item.leading-grade .grade-bar-title .grade-amount-label {
  color: #b45309;
  font-weight: 800;
  font-size: 1.05rem;
}

.grade-leader-status-note {
  font-size: 0.76rem;
  font-weight: 700;
  color: #047857;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.grade-awaiting-note {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 6px;
}

.grade-bar-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.grade-bar-track {
  height: 8px;
  background: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
}

.grade-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.grade-bar-fill.leading-fill {
  background: linear-gradient(90deg, #f59e0b, #10b981);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

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

.class-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.class-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.class-card.top-class {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, #fffcf3 0%, #ffffff 100%);
}

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

.class-trophy-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
}

.class-teacher-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.class-grade-tag {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 600;
}

.class-raised-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 6px;
}

.class-metrics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  margin-top: 12px;
}

.class-metrics-row strong {
  color: var(--gray-900);
  font-weight: 700;
}

.class-metrics-row .metric-raised strong {
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
}

/* ==========================================================
   DONATE TAB
   ========================================================== */
.donate-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.donate-header-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.donate-copy {
  flex: 1;
  min-width: 300px;
}

.badge-gold {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 12px;
}

.donate-copy h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
}

.donate-copy p {
  color: var(--gray-600);
  font-size: 1rem;
  margin-bottom: 20px;
}

.donate-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.small-hint {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
}

.donate-qr-box {
  width: 190px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.qr-scan-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-image {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

.iframe-container-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.iframe-top-bar {
  background: #e2e8f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-address {
  flex: 1;
  background: var(--white);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
}

.popout-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.iframe-wrapper {
  position: relative;
  min-height: 520px;
  background: #f8fafc;
}

#donationIframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

#volunteerIframe {
  width: 100%;
  height: 950px;
  min-height: 750px;
  border: none;
  display: block;
  background: #ffffff;
}

.iframe-footer-note {
  padding: 12px 18px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.iframe-footer-note a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.iframe-notice {
  padding: 20px;
  background: #fffbeb;
  border-top: 1px solid #fef3c7;
  text-align: center;
  font-size: 0.9rem;
  color: #92400e;
}
.iframe-notice p {
  margin-bottom: 10px;
}

/* ==========================================================
   EVENT & VOLUNTEER TAB
   ========================================================== */
.event-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}

@media (max-width: 860px) {
  .event-layout-grid {
    grid-template-columns: 1fr;
  }
}

.flyer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.event-details-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.badge-blue {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 12px;
}

.event-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 24px;
}

.event-milestones {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.milestone-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.milestone-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.milestone-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.milestone-info p {
  font-size: 0.92rem;
  color: var(--gray-600);
}

.text-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}

/* ==========================================================
   ADMIN / DATA MANAGER MODAL
   ========================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gray-400);
  cursor: pointer;
}
.modal-close:hover {
  color: var(--gray-800);
}

.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #166534;
}

.admin-section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}

.admin-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.admin-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.upload-dropzone {
  border: 2px dashed #93c5fd;
  background: #f0f7ff;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone:hover {
  background: #e0f2fe;
  border-color: var(--primary);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.admin-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
}

.form-field input {
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
}

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

.sync-input-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.admin-danger-zone {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--gray-50);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ==========================================================
   TOAST NOTIFICATION
   ========================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.app-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 34px 0;
  margin-top: 60px;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left p strong {
  color: var(--white);
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: var(--accent-gold);
  text-decoration: none;
}

.footer-small {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-3 { margin-top: 12px; }
.mt-6 { margin-top: 24px; }
.mt-2 { margin-top: 8px; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.85rem; }
.text-gray-500 { color: var(--gray-500); }

/* ==========================================================
   PRIZES & GUIDELINES TAB STYLES
   ========================================================== */
.prizes-hero-banner {
  background: linear-gradient(135deg, #0b4ea2 0%, #073570 100%);
  color: var(--white);
  padding: 32px 36px;
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}

.prizes-hero-copy h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 8px 0;
}

.prizes-hero-copy p {
  color: #dbeafe;
  font-size: 1rem;
  max-width: 650px;
}

.big-prize-emoji {
  font-size: 4rem;
  background: rgba(255, 255, 255, 0.15);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.grand-prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.prize-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.prize-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.prize-card.feature-prize {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, #fffdf2 0%, #ffffff 100%);
}

.prize-card.highlight-card {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

.prize-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
}

.prize-card.feature-prize .prize-card-badge {
  color: #92400e;
  background: #fef3c7;
}

.prize-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.prize-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
}

.prize-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.45;
}

/* Tier Pills */
.tier-pill {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-block;
}

.bronze-tier   { background: #fed7aa; color: #9a3412; }
.silver-tier   { background: #e2e8f0; color: #334155; }
.gold-tier     { background: #fef08a; color: #854d0e; }
.platinum-tier { background: #bae6fd; color: #0369a1; }
.diamond-tier  { background: #c7d2fe; color: #3730a3; }
.titanium-tier { background: #fbcfe8; color: #9d174d; }

/* Guidelines Grid */
.guidelines-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.guideline-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.guideline-card.highlight-match {
  border-color: #93c5fd;
  background: #f8fbff;
}

.guideline-icon {
  font-size: 2rem;
  background: var(--gray-100);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guideline-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.guideline-content p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.45;
}

/* Pizza Party & Class Top Student styling */
.pizza-party-tracker {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin: 10px 0;
}

.pizza-party-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #854d0e;
  margin-bottom: 6px;
}

.pizza-progress-track {
  height: 8px;
  background: #fef08a;
  border-radius: 9999px;
  overflow: hidden;
}

.pizza-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.badge-pizza-unlocked {
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.class-top-student-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--gray-700);
  margin-top: 8px;
}

.class-top-student-row strong {
  color: var(--primary);
}

.room-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  white-space: nowrap;
}

.weekly-spotlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.weekly-classroom-spotlight {
  border-color: #fde047;
  background: linear-gradient(135deg, #ffffff 0%, #fffef2 100%);
}

.weekly-classroom-spotlight .spotlight-trophy {
  border: 1px solid #fef08a;
  background: #fefce8;
}

.weekly-classroom-spotlight .spotlight-meta-label {
  color: #b45309;
}

.weekly-classroom-spotlight .spotlight-amount {
  color: #b45309;
}

.podium-card.podium-placeholder {
  border: 2px dashed var(--gray-300);
  background: #f8fafc;
  opacity: 0.9;
}

.podium-card.podium-placeholder .podium-badge {
  background: var(--gray-200);
  color: var(--gray-500);
}

.podium-card.podium-placeholder .podium-name {
  color: var(--gray-500);
  font-style: italic;
}

.podium-card.podium-placeholder .podium-amount {
  color: var(--gray-400);
}

/* ==========================================================
   ENHANCED STYLES: GRAND PRIZES, PARTICIPATION & VOLUNTEER
   ========================================================== */

/* Goal Subnote */
.goal-subnote {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #065f46;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px solid #a7f3d0;
}

/* Grand Prizes Ribbon (Overall Tab) */
.grand-prizes-ribbon {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.grand-prizes-ribbon .grand-prizes-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.grand-prizes-ribbon .grand-prizes-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 6px;
}

.grand-prizes-ribbon .grand-prizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grand-prizes-ribbon .prize-pill {
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 100% Participation Contest & Leaderboard */
.participation-breakdown-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.participation-contest-banner {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1.5px solid #fde047;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.1);
}

.participation-contest-banner .contest-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.participation-contest-banner .contest-title {
  color: #854d0e;
  font-size: 0.92rem;
  line-height: 1.4;
}

.participation-contest-banner .contest-subtext {
  color: #a16207;
  font-size: 0.8rem;
  margin-top: 4px;
}

.participation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.participation-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.participation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.participation-card.participation-winner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

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

.participation-class-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.participation-pct-pill {
  font-size: 0.95rem;
  font-weight: 900;
  color: #d97706;
  background: #fef3c7;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #fde68a;
}

.participation-pct-pill.pct-100 {
  color: #15803d;
  background: #dcfce7;
  border-color: #86efac;
}

.participation-progress-track {
  height: 8px;
  background: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.participation-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.participation-card-footer {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gray-500);
}

/* Classroom Contest Banner (Cal Academy) */
.classroom-contest-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.classroom-contest-banner .contest-icon {
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.classroom-contest-banner .contest-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #166534;
}

.classroom-contest-banner .contest-title {
  color: #166534;
  line-height: 1.45;
}

.classroom-contest-banner .contest-current-leader {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #065f46;
  width: fit-content;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Guideline Card Highlight Sponsor */
.guideline-card.highlight-sponsor {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

/* Volunteer Tab Styling */
.volunteer-container {
  max-width: 960px;
  margin: 0 auto;
}

.volunteer-hero-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
}

.volunteer-hero-copy h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin: 8px 0 12px;
}

.volunteer-hero-copy p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.volunteer-hero-badge {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.volunteer-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.volunteer-role-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.volunteer-role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.volunteer-role-card .role-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.volunteer-role-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.volunteer-role-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.generate-card-btn {
  margin-top: 18px;
  font-size: 1.05rem;
  padding: 13px 20px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* ==========================================================
   SHARE & FUNDRAISE TAB (STUDENT PLEDGE KIT)
   ========================================================== */
.share-kit-container {
  max-width: 1000px;
  margin: 0 auto;
}

.share-kit-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.share-form-card,
.share-output-card,
.share-card-container {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.col-half {
  flex: 1;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-700);
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.15);
}

.share-link-box {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
}

.share-link-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-family: monospace;
  font-size: 0.88rem;
  color: #1e293b;
  outline: none;
}

.social-share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #1eb956;
}

.btn-facebook {
  background: #1877f2;
  color: #ffffff;
}
.btn-facebook:hover {
  background: #0d65d9;
}

.btn-email {
  background: #0284c7;
  color: #ffffff;
}
.btn-email:hover {
  background: #0369a1;
}

.btn-copy-msg {
  background: #475569;
  color: #ffffff;
}
.btn-copy-msg:hover {
  background: #334155;
}

.canvas-preview-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #091326;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pledge-card-canvas {
  max-width: 680px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
}

.download-btn-sm {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #071f4a;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.download-btn-sm:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  .tab-btn {
    padding: 7px 9px;
    font-size: 0.80rem;
    gap: 3px;
  }
  .share-form-card,
  .share-output-card,
  .share-card-container {
    padding: 18px 16px;
  }
}

