/* ── Student Awards Hub, Trophy Room theme ──────────────────────────────── */
/* Scoped to hub overlay so teacher give-award UI stays unchanged. */

.student-awards-hub-overlay {
  --sah-gold: #fbbf24;
  --sah-gold-dim: rgba(251, 191, 36, 0.15);
  --sah-purple: #a855f7;
  --sah-purple-dim: rgba(168, 85, 247, 0.12);
  --sah-blue: #3b82f6;
  --sah-blue-dim: rgba(59, 130, 246, 0.12);
  --sah-green: #22c55e;
  --sah-green-dim: rgba(34, 197, 94, 0.12);
  --sah-glow: rgba(124, 115, 255, 0.45);
}

.student-awards-hub-overlay .give-award-panel.student-awards-hub-panel {
  max-width: min(1020px, 96vw);
  max-height: min(94vh, 940px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--color-modal-shell-bg, var(--color-surface)), var(--color-modal-shell-bg, var(--color-surface))) padding-box,
    linear-gradient(135deg, var(--sah-gold) 0%, var(--color-primary) 45%, var(--sah-purple) 100%) border-box;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(124, 115, 255, 0.08);
  overflow: hidden;
}

.student-awards-hub-overlay .student-awards-hub-body {
  position: relative;
  padding: 0 12px 10px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--sah-purple-dim) 0%, transparent 55%),
    radial-gradient(circle at 12% 88%, var(--sah-gold-dim) 0%, transparent 35%),
    radial-gradient(circle at 88% 72%, var(--sah-blue-dim) 0%, transparent 30%);
}

.student-awards-hub-overlay .student-awards-hub-body:not(.student-awards-hub-body--subpanel) {
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.student-awards-hub-overlay .student-awards-hub-body--subpanel {
  overflow-y: auto;
  padding-bottom: 16px;
}

.student-awards-hub-overlay .student-awards-hub-body::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(251, 191, 36, 0.35) 1px, transparent 1px),
    radial-gradient(circle, rgba(168, 85, 247, 0.25) 1px, transparent 1px);
  background-size: 48px 48px, 72px 72px;
  background-position: 0 0, 24px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
}

.student-awards-hub-overlay .student-awards-hub-content {
  position: relative;
  z-index: 1;
  gap: 8px;
}

.student-awards-hub-overlay .student-awards-hub-body:not(.student-awards-hub-body--subpanel) .student-awards-hub-content {
  flex: 0 0 auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding-bottom: 4px;
}

/* Header */
.student-awards-hub-overlay .student-awards-hub-header {
  padding: 10px 14px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.12) 0%,
    rgba(124, 115, 255, 0.14) 50%,
    rgba(168, 85, 247, 0.1) 100%
  );
  border-bottom: 1px solid var(--color-modal-shell-border);
}

.student-awards-hub-overlay .student-awards-hub-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.student-awards-hub-overlay .student-awards-hub-header-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--sah-gold) 0%, #f59e0b 100%);
  color: #1a1200;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.45);
}

.student-awards-hub-overlay .student-awards-hub-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  animation: sah-sparkle 2.4s ease-in-out infinite;
}

.student-awards-hub-overlay .student-awards-hub-sparkle--1 {
  top: -2px;
  right: -2px;
  animation-delay: 0s;
}

.student-awards-hub-overlay .student-awards-hub-sparkle--2 {
  bottom: 4px;
  left: -4px;
  width: 5px;
  height: 5px;
  animation-delay: 1.1s;
}

@keyframes sah-sparkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}

.student-awards-hub-overlay .student-awards-hub-header h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--sah-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.student-awards-hub-overlay .student-awards-hub-tagline {
  display: none;
}

/* Section cards */
.student-awards-hub-overlay .student-awards-section {
  border: 1px solid var(--color-modal-shell-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: visible;
  position: relative;
}

.student-awards-hub-overlay .student-awards-section-head {
  margin-bottom: 8px;
}

.student-awards-hub-overlay .student-awards-section-head-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.student-awards-hub-overlay .student-awards-section-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--sah-purple) 100%);
  color: #fff;
  font-size: 0.78rem;
  box-shadow: 0 3px 12px var(--sah-glow);
}

.student-awards-hub-overlay .student-awards-section-head h3 {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-primary);
}

.student-awards-hub-overlay .student-awards-section-head p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--color-text-secondary);
}

.student-awards-hub-overlay .student-awards-section-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.student-awards-hub-overlay .student-awards-section-head--row .student-awards-section-head-main {
  flex: 1;
}

/* Award showcase carousel, light mode default */
.student-awards-hub-overlay .student-awards-showcase {
  padding: 0 0 8px;
  border: 2px solid rgba(251, 191, 36, 0.55);
  border-radius: 12px;
  flex-shrink: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(168, 85, 247, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-surface) 0%, rgba(124, 115, 255, 0.04) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(168, 85, 247, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #14101f 0%, #0a0812 100%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.student-awards-hub-overlay .student-awards-showcase-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45309;
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-title,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-title {
  color: var(--sah-gold);
}

.student-awards-hub-overlay .student-awards-showcase-title i {
  font-size: 0.9rem;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.student-awards-hub-overlay .student-awards-showcase-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2px;
  padding: 2px 4px 0;
}

.student-awards-hub-overlay .student-awards-showcase-nav {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #b45309;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-nav,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-nav {
  color: var(--sah-gold);
}

.student-awards-hub-overlay .student-awards-showcase-nav:hover {
  background: rgba(251, 191, 36, 0.12);
  transform: scale(1.06);
}

.student-awards-hub-overlay .student-awards-showcase-viewport {
  overflow: hidden;
  min-width: 0;
  padding: 4px 0 2px;
  --showcase-slide-width: 112px;
}

.student-awards-hub-overlay .student-awards-showcase-track {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.student-awards-hub-overlay .student-awards-showcase-slide {
  flex: 0 0 var(--showcase-slide-width);
  width: var(--showcase-slide-width);
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transform: none;
  opacity: 1;
}

.student-awards-hub-overlay .student-awards-showcase-slide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 4px 2px 6px;
  position: relative;
  transform: scale(0.7);
  opacity: 0.35;
  transform-origin: center center;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-slide,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-slide {
  color: #f3f4f6;
}

.student-awards-hub-overlay .student-awards-showcase-slide.is-adjacent .student-awards-showcase-slide-inner {
  transform: scale(0.86);
  opacity: 0.7;
}

.student-awards-hub-overlay .student-awards-showcase-slide.is-center .student-awards-showcase-slide-inner {
  transform: scale(1);
  opacity: 1;
}

.student-awards-hub-overlay .student-awards-showcase-slide.is-center {
  z-index: 2;
}

.student-awards-hub-overlay .student-awards-showcase-slide.is-far .student-awards-showcase-slide-inner {
  transform: scale(0.58);
  opacity: 0.2;
}

.student-awards-hub-overlay .student-awards-showcase-glow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 110px;
  height: 110px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s;
}

.student-awards-hub-overlay .student-awards-showcase-slide.is-center .student-awards-showcase-glow {
  opacity: 1;
}

.student-awards-hub-overlay .rarity-showcase-common .student-awards-showcase-glow { background: radial-gradient(circle, rgba(156, 163, 175, 0.45) 0%, transparent 70%); }
.student-awards-hub-overlay .rarity-showcase-uncommon .student-awards-showcase-glow { background: radial-gradient(circle, rgba(34, 197, 94, 0.5) 0%, transparent 70%); }
.student-awards-hub-overlay .rarity-showcase-rare .student-awards-showcase-glow { background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, transparent 70%); }
.student-awards-hub-overlay .rarity-showcase-epic .student-awards-showcase-glow { background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, transparent 70%); }
.student-awards-hub-overlay .rarity-showcase-legendary .student-awards-showcase-glow { background: radial-gradient(circle, rgba(251, 191, 36, 0.55) 0%, transparent 70%); }
.student-awards-hub-overlay .rarity-showcase-unique .student-awards-showcase-glow { background: radial-gradient(circle, rgba(45, 212, 191, 0.5) 0%, transparent 70%); }

.student-awards-hub-overlay .student-awards-showcase-medal {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.student-awards-hub-overlay .student-awards-showcase-slide.is-center .student-awards-showcase-medal {
  width: 72px;
  height: 72px;
}

.student-awards-hub-overlay .student-awards-showcase-name {
  font-size: 0.72rem;
  max-width: 100px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  color: var(--color-text);
}

.student-awards-hub-overlay .student-awards-showcase-slide.is-center .student-awards-showcase-name {
  font-size: 0.82rem;
}

.student-awards-hub-overlay .student-awards-showcase-rarity {
  padding: 2px 7px;
  font-size: 0.6rem;
}

.student-awards-hub-overlay .student-awards-showcase-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px 0;
}

.student-awards-hub-overlay .student-awards-showcase-dot {
  width: 22px;
  height: 5px;
}

.student-awards-hub-overlay .student-awards-showcase-dot.is-active {
  width: 28px;
}

.student-awards-hub-overlay .student-awards-showcase-medal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-medal img,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-medal img {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.student-awards-hub-overlay .rarity-showcase-common .student-awards-showcase-name { color: var(--color-text-secondary); }
.student-awards-hub-overlay .rarity-showcase-uncommon .student-awards-showcase-name { color: #16a34a; }
.student-awards-hub-overlay .rarity-showcase-rare .student-awards-showcase-name { color: #2563eb; }
.student-awards-hub-overlay .rarity-showcase-epic .student-awards-showcase-name { color: #7c3aed; }
.student-awards-hub-overlay .rarity-showcase-legendary .student-awards-showcase-name { color: #ca8a04; }
.student-awards-hub-overlay .rarity-showcase-unique .student-awards-showcase-name { color: #0d9488; }

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-slide.is-center .student-awards-showcase-name,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-slide.is-center .student-awards-showcase-name {
  color: #fff;
}

html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-uncommon .student-awards-showcase-name,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-uncommon .student-awards-showcase-name { color: #86efac; }
html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-rare .student-awards-showcase-name,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-rare .student-awards-showcase-name { color: #93c5fd; }
html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-epic .student-awards-showcase-name,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-epic .student-awards-showcase-name { color: #d8b4fe; }
html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-legendary .student-awards-showcase-name,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-legendary .student-awards-showcase-name { color: #fde68a; }
html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-unique .student-awards-showcase-name,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-unique .student-awards-showcase-name { color: #99f6e4; }

.student-awards-hub-overlay .student-awards-showcase-rarity {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--color-modal-shell-border);
  background: rgba(124, 115, 255, 0.06);
  color: var(--color-text-secondary);
}

.student-awards-hub-overlay .rarity-showcase-uncommon .student-awards-showcase-rarity { border-color: rgba(34, 197, 94, 0.45); color: #16a34a; background: rgba(34, 197, 94, 0.1); }
.student-awards-hub-overlay .rarity-showcase-rare .student-awards-showcase-rarity { border-color: rgba(59, 130, 246, 0.45); color: #2563eb; background: rgba(59, 130, 246, 0.1); }
.student-awards-hub-overlay .rarity-showcase-epic .student-awards-showcase-rarity { border-color: rgba(168, 85, 247, 0.45); color: #7c3aed; background: rgba(168, 85, 247, 0.1); }
.student-awards-hub-overlay .rarity-showcase-legendary .student-awards-showcase-rarity { border-color: rgba(251, 191, 36, 0.5); color: #ca8a04; background: rgba(251, 191, 36, 0.1); }
.student-awards-hub-overlay .rarity-showcase-unique .student-awards-showcase-rarity { border-color: rgba(45, 212, 191, 0.45); color: #0d9488; background: rgba(45, 212, 191, 0.1); }

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-rarity,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-rarity {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-uncommon .student-awards-showcase-rarity,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-uncommon .student-awards-showcase-rarity { border-color: rgba(34, 197, 94, 0.5); color: #86efac; background: transparent; }
html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-rare .student-awards-showcase-rarity,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-rare .student-awards-showcase-rarity { border-color: rgba(59, 130, 246, 0.5); color: #93c5fd; background: rgba(59, 130, 246, 0.15); }
html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-epic .student-awards-showcase-rarity,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-epic .student-awards-showcase-rarity { border-color: rgba(168, 85, 247, 0.55); color: #d8b4fe; background: rgba(168, 85, 247, 0.18); }
html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-legendary .student-awards-showcase-rarity,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-legendary .student-awards-showcase-rarity { border-color: rgba(251, 191, 36, 0.55); color: #fde68a; background: rgba(251, 191, 36, 0.12); }
html[data-theme="dark"] .student-awards-hub-overlay .rarity-showcase-unique .student-awards-showcase-rarity,
:root:not([data-theme="light"]) .student-awards-hub-overlay .rarity-showcase-unique .student-awards-showcase-rarity { border-color: rgba(45, 212, 191, 0.5); color: #99f6e4; background: transparent; }

.student-awards-hub-overlay .student-awards-showcase-featured-tag {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sah-gold);
  color: #1a1200;
}

.student-awards-hub-overlay .student-awards-showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px 0;
}

.student-awards-hub-overlay .student-awards-showcase-dot {
  width: 28px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(124, 115, 255, 0.18);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-dot,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-dot {
  background: rgba(255, 255, 255, 0.18);
}

.student-awards-hub-overlay .student-awards-showcase-dot.is-active {
  width: 36px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--sah-purple) 100%);
  box-shadow: 0 0 10px var(--sah-glow);
}

.student-awards-hub-overlay .student-awards-showcase-description {
  margin: 10px auto 0;
  max-width: 420px;
  padding: 0 16px;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
  color: var(--color-text-secondary);
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-description,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-description {
  color: rgba(243, 244, 246, 0.78);
}

.student-awards-hub-overlay .student-awards-showcase-hint {
  margin: 10px 0 0;
  padding: 0 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-hint,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-hint {
  color: rgba(255, 255, 255, 0.55);
}

.student-awards-hub-overlay .student-awards-showcase-slide.give-award-tile--busy {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 520px) {
  .student-awards-hub-overlay .student-awards-showcase-carousel {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .student-awards-hub-overlay .student-awards-showcase-nav {
    display: none;
  }

  .student-awards-hub-overlay .student-awards-showcase-viewport {
    --showcase-slide-width: 128px;
  }
}

/* Pinned collection */
.student-awards-hub-overlay .student-awards-pinned-collection {
  border-left: 4px solid var(--sah-purple);
  flex-shrink: 0;
}

.student-awards-hub-overlay .student-awards-pinned-collection--complete {
  position: relative;
  overflow: hidden;
  border-left-color: var(--sah-gold);
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(
    180deg,
    rgba(255, 248, 220, 0.35) 0%,
    var(--color-surface) 45%,
    rgba(251, 191, 36, 0.06) 100%
  );
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.student-awards-hub-overlay .student-awards-pinned-collection--complete::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(251, 191, 36, 0.06) 18%,
    rgba(255, 215, 0, 0.2) 32%,
    rgba(255, 248, 220, 0.32) 42%,
    rgba(251, 191, 36, 0.14) 52%,
    rgba(245, 158, 11, 0.22) 62%,
    rgba(255, 255, 255, 0.18) 72%,
    rgba(251, 191, 36, 0.08) 82%,
    transparent 100%
  );
  background-size: 220% 220%;
  animation: sah-pinned-gold-flow 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.student-awards-hub-overlay .student-awards-pinned-collection--complete::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -55deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.12) 46%,
    rgba(251, 191, 36, 0.28) 50%,
    rgba(255, 255, 255, 0.1) 54%,
    transparent 62%,
    transparent 100%
  );
  background-size: 280% 280%;
  animation: sah-pinned-gold-sheen 3.5s linear infinite;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
}

@keyframes sah-pinned-gold-flow {
  0% { transform: translate(-8%, -6%) rotate(0deg); opacity: 0.75; }
  50% { transform: translate(8%, 6%) rotate(2deg); opacity: 1; }
  100% { transform: translate(-8%, -6%) rotate(0deg); opacity: 0.75; }
}

@keyframes sah-pinned-gold-sheen {
  0% { background-position: 200% 50%; }
  100% { background-position: -100% 50%; }
}

.student-awards-hub-overlay .student-awards-pinned-collection--complete > * {
  position: relative;
  z-index: 1;
}

/* Display titles */
.student-awards-hub-overlay .student-awards-subpanel-body--titles {
  padding-top: 4px;
}

.student-awards-hub-overlay .student-awards-titles-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.student-awards-hub-overlay .student-awards-title-preview-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.student-awards-hub-overlay .student-awards-title-preview {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.student-awards-hub-overlay .student-awards-titles-panel .student-awards-title-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-awards-hub-overlay .student-awards-title-pick {
  border: 1px solid var(--color-modal-shell-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.student-awards-hub-overlay .student-awards-title-pick.is-active {
  border-color: var(--sah-gold);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(255, 248, 220, 0.2));
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}

.student-awards-hub-overlay .student-awards-title-pick:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.55);
}

.student-name-title {
  font-weight: 700;
  color: #b45309;
}

html[data-theme="dark"] .student-name-title,
:root:not([data-theme="light"]) .student-name-title {
  color: #fbbf24;
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-pinned-collection--complete,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-pinned-collection--complete {
  background: linear-gradient(
    180deg,
    rgba(251, 191, 36, 0.06) 0%,
    var(--color-surface) 35%,
    rgba(245, 158, 11, 0.04) 100%
  );
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-pinned-collection--complete::before,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-pinned-collection--complete::before {
  opacity: 0.9;
}

.student-awards-hub-overlay .student-awards-collection-detail--compact .student-awards-collection-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-awards-hub-overlay .student-awards-collection-detail--compact .student-awards-collection-head h3 {
  margin: 0;
  font-size: 0.88rem;
}

.student-awards-hub-overlay .student-awards-collection-detail--compact .student-awards-collection-progress {
  margin-left: auto;
  flex-shrink: 0;
}

.student-awards-hub-overlay .student-awards-collection-detail--compact .student-awards-collection-progress-label {
  font-size: 0.75rem;
}

.student-awards-hub-overlay .student-awards-collection-detail--compact .student-awards-collection-complete-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
}

.student-awards-hub-overlay .student-awards-progress-wrap {
  margin: 4px 0 6px;
}

.student-awards-hub-overlay .student-awards-collection-detail--compact .student-awards-progress-bar {
  height: 6px;
}

.student-awards-hub-overlay .student-awards-collection-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--color-text-secondary);
}

.student-awards-hub-overlay .student-awards-collection-reward i {
  flex-shrink: 0;
  color: var(--sah-gold, #f59e0b);
}

.student-awards-hub-overlay .student-awards-collection-reward--compact {
  margin: 0 0 6px;
  font-size: 0.78rem;
}

.student-awards-hub-overlay .student-awards-collection-pick-reward {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.student-awards-hub-overlay .student-awards-collection-pick-reward i {
  flex-shrink: 0;
  color: var(--sah-gold, #f59e0b);
  font-size: 0.68rem;
}

.student-awards-hub-overlay .student-awards-collection-detail--compact .student-awards-collection-claim {
  margin: 0 0 6px;
  padding: 8px 10px;
}

.student-awards-hub-overlay .student-awards-collection-detail--compact .student-awards-collection-claim p {
  margin: 0 0 6px;
  font-size: 0.78rem;
}

.student-awards-hub-overlay .student-awards-collection-detail--compact .student-awards-collection-items {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.student-awards-hub-overlay .student-collection-item--compact {
  flex: 0 0 auto;
  padding: 4px;
  min-width: 48px;
}

.student-awards-hub-overlay .student-collection-item--compact .student-collection-item-thumb img {
  width: 40px;
  height: 40px;
}

.student-awards-hub-overlay .student-awards-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(124, 115, 255, 0.12);
  overflow: hidden;
  border: 1px solid var(--color-modal-shell-border);
}

.student-awards-hub-overlay .student-awards-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--sah-purple) 60%, var(--sah-gold) 100%);
  transition: width 0.5s ease;
  box-shadow: 0 0 12px var(--sah-glow);
}

.student-awards-hub-overlay .student-awards-collection-detail.is-complete .student-awards-progress-fill {
  background: linear-gradient(90deg, var(--sah-green) 0%, #16a34a 100%);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}

.student-awards-hub-overlay .student-awards-collection-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--sah-green) 0%, #16a34a 100%);
  color: #fff;
  animation: sah-complete-pulse 2s ease-in-out infinite;
}

@keyframes sah-complete-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.student-awards-hub-overlay .student-awards-pinned-empty {
  padding: 14px 12px;
  border: 2px dashed rgba(168, 85, 247, 0.45);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--sah-purple-dim) 0%, transparent 100%);
}

.student-awards-hub-overlay .student-awards-pinned-empty i {
  font-size: 1.4rem;
  animation: sah-medal-float 3s ease-in-out infinite;
}

.student-awards-hub-overlay .student-awards-pinned-empty p {
  font-size: 0.82rem;
  margin: 0;
}

.student-awards-hub-overlay .student-awards-collection-detail:not(.student-awards-collection-detail--compact) .student-awards-collection-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.student-awards-hub-overlay .student-collection-item {
  padding: 10px 8px;
  border-radius: 12px;
  border: 2px solid var(--color-modal-shell-border);
  background: var(--color-surface);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.student-awards-hub-overlay .student-collection-item--earned {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(34, 197, 94, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12);
}

.student-awards-hub-overlay .student-collection-item:not(.student-collection-item--earned) {
  opacity: 0.72;
  filter: grayscale(0.35);
}

.student-awards-hub-overlay .student-collection-item--earned:hover {
  transform: translateY(-2px) scale(1.02);
}

.student-awards-hub-overlay .student-awards-collection-claim {
  border-width: 2px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(251, 191, 36, 0.08) 100%);
  animation: sah-claim-glow 2.5s ease-in-out infinite;
}

@keyframes sah-claim-glow {
  0%, 100% { border-color: rgba(34, 197, 94, 0.35); }
  50% { border-color: rgba(251, 191, 36, 0.55); }
}

.student-awards-hub-overlay .student-awards-claim-collection {
  font-weight: 800;
}

/* Recent earned */
.student-awards-hub-overlay .student-awards-recent-section {
  box-shadow:
    inset 4px 0 0 var(--sah-gold),
    0 2px 10px rgba(0, 0, 0, 0.04);
}

.student-awards-hub-overlay .student-awards-recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.student-awards-hub-overlay .student-awards-recent-row {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  gap: 8px;
  border: 1px solid var(--color-modal-shell-border);
  background: var(--color-surface);
}

.student-awards-hub-overlay .student-awards-recent-row img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--color-modal-shell-border);
  object-fit: cover;
  flex-shrink: 0;
}

.student-awards-hub-overlay .student-awards-recent-name {
  font-size: 0.82rem;
}

.student-awards-hub-overlay .student-awards-recent-time {
  font-size: 0.68rem;
  white-space: nowrap;
}

.student-awards-hub-overlay .student-awards-recent-row:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(124, 115, 255, 0.12);
}

.student-awards-hub-overlay .student-awards-recent-row--fresh {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(90deg, var(--sah-gold-dim) 0%, var(--color-surface) 40%);
}

.student-awards-hub-overlay .student-awards-recent-new-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sah-gold);
  color: #1a1200;
}

/* Explore cards */
.student-awards-hub-overlay .student-awards-explore {
  padding-bottom: 4px;
  background: var(--color-surface);
}

.student-awards-hub-overlay .student-awards-explore--compact {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-split {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 0 0 auto;
  min-height: 320px;
}

.student-awards-hub-overlay .student-awards-explore-recent,
.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-recent {
  flex: 1 1 48%;
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid var(--color-modal-shell-border);
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-nav {
  flex: 1 1 52%;
  max-width: 52%;
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-recent .student-awards-section-head,
.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-nav .student-awards-section-head {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-grid {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-grid--five {
  grid-template-rows: repeat(3, auto);
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-grid--five .student-awards-explore-card {
  height: auto;
  min-height: 88px;
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 10px;
  min-height: 88px;
  border-radius: 12px;
  text-align: center;
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-card-icon {
  width: 44px;
  height: 44px;
  font-size: 1.08rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-card strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.student-awards-hub-overlay .student-awards-explore-recent {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.student-awards-hub-overlay .student-awards-recent-list--slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.student-awards-hub-overlay .student-awards-recent-list--slots .student-awards-recent-row {
  flex: 0 0 auto;
  min-height: 42px;
}

.student-awards-hub-overlay .student-awards-recent-row--empty {
  border: 1px dashed var(--color-modal-shell-border);
  background: rgba(124, 115, 255, 0.04);
  border-radius: 8px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-split {
    flex-direction: column;
    min-height: 0;
  }

  .student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-recent {
    flex: 1 1 auto;
    padding-right: 0;
    margin-right: 0;
    border-right: none;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-modal-shell-border);
  }

  .student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-nav {
    flex: 1 1 auto;
    max-width: none;
  }

  .student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-card {
    min-height: 88px;
    padding: 12px 10px;
  }

  .student-awards-hub-overlay .student-awards-explore--compact .student-awards-explore-grid--five {
    grid-template-rows: repeat(3, auto);
  }
}

.student-awards-hub-overlay .student-awards-explore-card {
  position: relative;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--color-modal-shell-border);
  background: var(--color-surface);
  color: var(--color-text);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.student-awards-hub-overlay .student-awards-explore-card::before {
  display: none;
}

.student-awards-hub-overlay .student-awards-explore-card:hover {
  transform: none;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.student-awards-hub-overlay .student-awards-explore-card-icon,
.student-awards-hub-overlay .student-awards-explore-card-icon i {
  color: #fff !important;
}

.student-awards-hub-overlay .student-awards-explore-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.student-awards-hub-overlay .student-awards-explore-card--mine .student-awards-explore-card-icon {
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 100%);
}

.student-awards-hub-overlay .student-awards-explore-card--catalog .student-awards-explore-card-icon {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
}

.student-awards-hub-overlay .student-awards-explore-card--class .student-awards-explore-card-icon {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
}

.student-awards-hub-overlay .student-awards-explore-card--collections .student-awards-explore-card-icon {
  background: linear-gradient(145deg, #a855f7 0%, #7c3aed 100%);
}

.student-awards-hub-overlay .student-awards-explore-card--titles .student-awards-explore-card-icon {
  background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
}

.student-awards-hub-overlay .student-awards-explore-card strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

.student-awards-hub-overlay .student-awards-explore-card span {
  color: var(--color-text-secondary);
}

/* Award tiles in hub */
.student-awards-hub-overlay .student-award-tile {
  border-radius: 14px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.student-awards-hub-overlay .student-award-tile:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124, 115, 255, 0.2);
}

.student-awards-hub-overlay .student-award-tile--featured {
  border-color: var(--sah-gold) !important;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25), 0 8px 24px rgba(251, 191, 36, 0.2);
}

.student-awards-hub-overlay .student-award-chip {
  border-radius: 12px;
  transition: transform 0.12s;
}

.student-awards-hub-overlay .student-award-chip:hover {
  transform: scale(1.02);
}

/* Collections subpanel */
.student-awards-hub-overlay .student-awards-subpanel-toolbar {
  background: linear-gradient(135deg, rgba(124, 115, 255, 0.08) 0%, rgba(251, 191, 36, 0.06) 100%);
}

.student-awards-hub-overlay .student-awards-collections-shell {
  border-radius: 14px;
  border-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.student-awards-hub-overlay .student-awards-collection-pick.is-active {
  box-shadow: 0 4px 16px var(--sah-glow);
}

.student-awards-hub-overlay .student-awards-pin-collection--active {
  opacity: 0.85;
}

.student-awards-hub-overlay .student-awards-pin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.student-awards-hub-overlay .student-awards-showcase-slide--collection .student-awards-showcase-glow--collection {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, transparent 70%);
}

.student-awards-hub-overlay .student-awards-showcase-slide--collection.is-center .student-awards-showcase-slide-inner {
  border-color: rgba(16, 185, 129, 0.55);
}

.student-awards-hub-overlay .student-awards-showcase-rarity--collection {
  color: #059669;
}

html[data-theme="dark"] .student-awards-hub-overlay .student-awards-showcase-rarity--collection,
:root:not([data-theme="light"]) .student-awards-hub-overlay .student-awards-showcase-rarity--collection {
  color: #6ee7b7;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .student-awards-hub-overlay .student-awards-hub-sparkle,
  .student-awards-hub-overlay .student-awards-showcase-track,
  .student-awards-hub-overlay .student-awards-showcase-slide-inner,
  .student-awards-hub-overlay .student-awards-showcase-slide.is-center .student-awards-showcase-slide-inner,
  .student-awards-hub-overlay .student-awards-pinned-empty i,
  .student-awards-hub-overlay .student-awards-collection-complete-badge,
  .student-awards-hub-overlay .student-awards-collection-claim,
  .student-awards-hub-overlay .student-awards-pinned-collection--complete::before,
  .student-awards-hub-overlay .student-awards-pinned-collection--complete::after {
    animation: none !important;
    transition: none !important;
  }

  .student-awards-hub-overlay .student-awards-pinned-collection--complete::after {
    background-position: 50% 50%;
  }

  .student-awards-hub-overlay .student-awards-explore-card:hover,
  .student-awards-hub-overlay .student-awards-recent-row:hover,
  .student-awards-hub-overlay .student-award-tile:hover:not(:disabled) {
    transform: none;
  }
}
