/* Credits-only extras — Value Team bar and badge colors */

/* Title underline flash — follow active theme accent (was hardcoded blue) */
.credits-title-card::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--vd-accent), 0.9) 50%,
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(var(--vd-glow), 0.45);
}

.credits-content {
  gap: clamp(1.75rem, 4.5vh, 2.85rem);
}

.credits-bar {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.credits-bar + .credits-bar {
  margin-top: 0.35rem;
  animation-delay: 0.16s;
}

/* Match Management: 4 people per row; 5th wraps to the next row */
.credits-bar__people--value {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.credits-slot--value {
  cursor: pointer;
}

.credits-slot--value:hover {
  transform: translateY(-3px);
}

.credits-slot--hassan:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 0 36px rgba(34, 211, 238, 0.12);
}

.credits-slot--sora:hover {
  background: rgba(192, 132, 252, 0.08);
  border-color: rgba(192, 132, 252, 0.3);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 0 36px rgba(192, 132, 252, 0.12);
}

.credits-slot--m7:hover,
.credits-slot--vedu:hover {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 0 36px rgba(52, 211, 153, 0.12);
}

.credits-slot--hassan:hover .credits-name {
  color: #67e8f9;
  text-shadow:
    0 0 12px rgba(34, 211, 238, 0.75),
    0 0 24px rgba(34, 211, 238, 0.35);
}

.credits-slot--sora:hover .credits-name {
  color: #d8b4fe;
  text-shadow:
    0 0 12px rgba(192, 132, 252, 0.75),
    0 0 24px rgba(192, 132, 252, 0.35);
}

.credits-slot--m7:hover .credits-name,
.credits-slot--vedu:hover .credits-name {
  color: #6ee7b7;
  text-shadow:
    0 0 12px rgba(52, 211, 153, 0.75),
    0 0 24px rgba(52, 211, 153, 0.35);
}

.credits-slot--hassan:hover .credits-profile-link {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
}

.credits-slot--sora:hover .credits-profile-link {
  color: #d8b4fe;
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(192, 132, 252, 0.1);
}

.credits-slot--m7:hover .credits-profile-link,
.credits-slot--vedu:hover .credits-profile-link {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
}

.credits-slot--hassan:hover .credits-avatar {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.3);
}

.credits-slot--sora:hover .credits-avatar {
  border-color: rgba(192, 132, 252, 0.65);
  box-shadow:
    0 0 0 2px rgba(192, 132, 252, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.3);
}

.credits-slot--m7:hover .credits-avatar,
.credits-slot--vedu:hover .credits-avatar {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow:
    0 0 0 2px rgba(52, 211, 153, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.3);
}

/* Magnifying-glass $ icon — tinted via currentColor to match each role */
.credits-role-icon--value {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: url("value-analyst-icon.png") center / contain no-repeat;
  mask: url("value-analyst-icon.png") center / contain no-repeat;
}

/* Head Value Analyst — cyan */
.credits-role--head-value {
  min-width: 0;
  padding-inline: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.42);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.credits-role--head-value .credits-role-icon {
  filter:
    drop-shadow(0 0 10px rgba(34, 211, 238, 0.55))
    drop-shadow(0 0 16px rgba(34, 211, 238, 0.35));
}

/* Senior Value Analyst — violet */
.credits-role--senior-value {
  min-width: 0;
  padding-inline: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.42);
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}

.credits-role--senior-value .credits-role-icon {
  filter:
    drop-shadow(0 0 10px rgba(192, 132, 252, 0.55))
    drop-shadow(0 0 16px rgba(192, 132, 252, 0.35));
}

/* Value Analyst — mint */
.credits-role--value {
  min-width: 0;
  padding-inline: 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.42);
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.35);
}

.credits-role--value .credits-role-icon {
  filter:
    drop-shadow(0 0 10px rgba(52, 211, 153, 0.55))
    drop-shadow(0 0 16px rgba(52, 211, 153, 0.35));
}

.credits-slot--hassan:hover .credits-role--head-value {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow:
    0 0 16px rgba(34, 211, 238, 0.85),
    0 0 30px rgba(34, 211, 238, 0.45);
}

.credits-slot--hassan:hover .credits-role--head-value .credits-role-icon {
  filter:
    drop-shadow(0 0 12px rgba(34, 211, 238, 0.95))
    drop-shadow(0 0 22px rgba(34, 211, 238, 0.65))
    drop-shadow(0 0 32px rgba(34, 211, 238, 0.35));
}

.credits-slot--sora:hover .credits-role--senior-value {
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow:
    0 0 20px rgba(192, 132, 252, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow:
    0 0 16px rgba(192, 132, 252, 0.85),
    0 0 30px rgba(192, 132, 252, 0.45);
}

.credits-slot--sora:hover .credits-role--senior-value .credits-role-icon {
  filter:
    drop-shadow(0 0 12px rgba(192, 132, 252, 0.95))
    drop-shadow(0 0 22px rgba(192, 132, 252, 0.65))
    drop-shadow(0 0 32px rgba(192, 132, 252, 0.35));
}

.credits-slot--m7:hover .credits-role--value,
.credits-slot--vedu:hover .credits-role--value {
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow:
    0 0 20px rgba(52, 211, 153, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow:
    0 0 16px rgba(52, 211, 153, 0.85),
    0 0 30px rgba(52, 211, 153, 0.45);
}

.credits-slot--m7:hover .credits-role--value .credits-role-icon,
.credits-slot--vedu:hover .credits-role--value .credits-role-icon {
  filter:
    drop-shadow(0 0 12px rgba(52, 211, 153, 0.95))
    drop-shadow(0 0 22px rgba(52, 211, 153, 0.65))
    drop-shadow(0 0 32px rgba(52, 211, 153, 0.35));
}

@media (max-width: 768px) {
  .credits-content {
    gap: 1.5rem;
  }

  .credits-bar + .credits-bar {
    margin-top: 0.25rem;
  }

  .credits-bar__people--value {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credits-role--head-value,
  .credits-role--senior-value,
  .credits-role--value {
    font-size: 0.72rem;
    min-height: 2.1rem;
    padding: 0.3rem 0.55rem;
  }
}

@media (max-width: 480px) {
  .credits-bar__people--value {
    grid-template-columns: 1fr;
  }
}

/* ── Light / beige: keep Credits surfaces readable on pale themes ── */
html[data-theme="light"] .credits-overlay,
html[data-theme="beige"] .credits-overlay {
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(var(--vd-accent), 0.04) 0,
    rgba(var(--vd-accent), 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

html[data-theme="light"] .credits-bar,
html[data-theme="beige"] .credits-bar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.5) 100%),
    rgba(var(--vd-menu), 0.92);
  border-color: rgba(var(--vd-accent), 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 14px 36px rgba(var(--vd-accent), 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="light"] .credits-bar__title,
html[data-theme="beige"] .credits-bar__title {
  color: var(--vd-brand);
  text-shadow: none;
}

html[data-theme="light"] .credits-slot,
html[data-theme="beige"] .credits-slot {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(var(--vd-accent), 0.12);
  box-shadow: 0 6px 16px rgba(var(--vd-accent), 0.04);
}

html[data-theme="light"] .credits-name,
html[data-theme="beige"] .credits-name {
  color: var(--vd-brand);
  text-shadow: none;
}

html[data-theme="light"] .credits-profile-link,
html[data-theme="beige"] .credits-profile-link {
  color: rgba(var(--vd-accent), 0.78);
  border-color: rgba(var(--vd-accent), 0.18);
  background: rgba(var(--vd-accent), 0.05);
}

html[data-theme="light"] .credits-avatar,
html[data-theme="beige"] .credits-avatar {
  border-color: rgba(var(--vd-accent), 0.18);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.7) 0%, transparent 42%),
    rgba(var(--vd-accent), 0.05);
  box-shadow:
    0 8px 18px rgba(var(--vd-accent), 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .credits-role,
html[data-theme="beige"] .credits-role {
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 4px 12px rgba(var(--vd-accent), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-shadow: none;
}

/* Founder / admin badges on light */
html[data-theme="light"] .credits-slot--shade .credits-role,
html[data-theme="beige"] .credits-slot--shade .credits-role,
html[data-theme="light"] .credits-slot--rayn .credits-role,
html[data-theme="beige"] .credits-slot--rayn .credits-role,
html[data-theme="light"] .credits-slot--ace .credits-role,
html[data-theme="beige"] .credits-slot--ace .credits-role {
  color: #b8860b;
  border-color: rgba(184, 134, 11, 0.38);
}

html[data-theme="light"] .credits-role--blue,
html[data-theme="beige"] .credits-role--blue {
  color: #c23030;
  border-color: rgba(194, 48, 48, 0.35);
}

/* Value team badges — deeper hues, no neon glow */
html[data-theme="light"] .credits-role--head-value,
html[data-theme="beige"] .credits-role--head-value {
  color: #0891b2;
  border-color: rgba(8, 145, 178, 0.4);
  text-shadow: none;
}

html[data-theme="light"] .credits-role--senior-value,
html[data-theme="beige"] .credits-role--senior-value {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.38);
  text-shadow: none;
}

html[data-theme="light"] .credits-role--value,
html[data-theme="beige"] .credits-role--value {
  color: #059669;
  border-color: rgba(5, 150, 105, 0.38);
  text-shadow: none;
}

/* Soften founder/admin hovers on light */
html[data-theme="light"] .credits-slot--shade:hover,
html[data-theme="beige"] .credits-slot--shade:hover,
html[data-theme="light"] .credits-slot--rayn:hover,
html[data-theme="beige"] .credits-slot--rayn:hover,
html[data-theme="light"] .credits-slot--ace:hover,
html[data-theme="beige"] .credits-slot--ace:hover {
  background: rgba(184, 134, 11, 0.08);
  border-color: rgba(184, 134, 11, 0.28);
  box-shadow: 0 10px 22px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .credits-slot--bankai:hover,
html[data-theme="beige"] .credits-slot--bankai:hover {
  background: rgba(194, 48, 48, 0.07);
  border-color: rgba(194, 48, 48, 0.28);
  box-shadow: 0 10px 22px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .credits-slot--shade:hover .credits-name,
html[data-theme="beige"] .credits-slot--shade:hover .credits-name,
html[data-theme="light"] .credits-slot--rayn:hover .credits-name,
html[data-theme="beige"] .credits-slot--rayn:hover .credits-name,
html[data-theme="light"] .credits-slot--ace:hover .credits-name,
html[data-theme="beige"] .credits-slot--ace:hover .credits-name {
  color: #9a7209;
  text-shadow: none;
}

html[data-theme="light"] .credits-slot--bankai:hover .credits-name,
html[data-theme="beige"] .credits-slot--bankai:hover .credits-name {
  color: #c23030;
  text-shadow: none;
}

html[data-theme="light"] .credits-slot--hassan:hover,
html[data-theme="beige"] .credits-slot--hassan:hover {
  background: rgba(8, 145, 178, 0.08);
  border-color: rgba(8, 145, 178, 0.28);
  box-shadow: 0 10px 22px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .credits-slot--sora:hover,
html[data-theme="beige"] .credits-slot--sora:hover {
  background: rgba(124, 58, 237, 0.07);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 10px 22px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .credits-slot--m7:hover,
html[data-theme="beige"] .credits-slot--m7:hover,
html[data-theme="light"] .credits-slot--vedu:hover,
html[data-theme="beige"] .credits-slot--vedu:hover {
  background: rgba(5, 150, 105, 0.07);
  border-color: rgba(5, 150, 105, 0.28);
  box-shadow: 0 10px 22px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .credits-slot--hassan:hover .credits-name,
html[data-theme="beige"] .credits-slot--hassan:hover .credits-name {
  color: #0e7490;
  text-shadow: none;
}

html[data-theme="light"] .credits-slot--sora:hover .credits-name,
html[data-theme="beige"] .credits-slot--sora:hover .credits-name {
  color: #6d28d9;
  text-shadow: none;
}

html[data-theme="light"] .credits-slot--m7:hover .credits-name,
html[data-theme="beige"] .credits-slot--m7:hover .credits-name,
html[data-theme="light"] .credits-slot--vedu:hover .credits-name,
html[data-theme="beige"] .credits-slot--vedu:hover .credits-name {
  color: #047857;
  text-shadow: none;
}

html[data-theme="light"] .credits-slot--hassan:hover .credits-profile-link,
html[data-theme="beige"] .credits-slot--hassan:hover .credits-profile-link {
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.4);
  background: rgba(8, 145, 178, 0.08);
}

html[data-theme="light"] .credits-slot--sora:hover .credits-profile-link,
html[data-theme="beige"] .credits-slot--sora:hover .credits-profile-link {
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.08);
}

html[data-theme="light"] .credits-slot--m7:hover .credits-profile-link,
html[data-theme="beige"] .credits-slot--m7:hover .credits-profile-link,
html[data-theme="light"] .credits-slot--vedu:hover .credits-profile-link,
html[data-theme="beige"] .credits-slot--vedu:hover .credits-profile-link {
  color: #047857;
  border-color: rgba(5, 150, 105, 0.4);
  background: rgba(5, 150, 105, 0.08);
}

html[data-theme="light"] .credits-slot--hassan:hover .credits-avatar,
html[data-theme="beige"] .credits-slot--hassan:hover .credits-avatar {
  border-color: rgba(8, 145, 178, 0.45);
  box-shadow:
    0 0 0 2px rgba(8, 145, 178, 0.12),
    0 10px 20px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .credits-slot--sora:hover .credits-avatar,
html[data-theme="beige"] .credits-slot--sora:hover .credits-avatar {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow:
    0 0 0 2px rgba(124, 58, 237, 0.12),
    0 10px 20px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .credits-slot--m7:hover .credits-avatar,
html[data-theme="beige"] .credits-slot--m7:hover .credits-avatar,
html[data-theme="light"] .credits-slot--vedu:hover .credits-avatar,
html[data-theme="beige"] .credits-slot--vedu:hover .credits-avatar {
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow:
    0 0 0 2px rgba(5, 150, 105, 0.12),
    0 10px 20px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .credits-slot--hassan:hover .credits-role--head-value,
html[data-theme="beige"] .credits-slot--hassan:hover .credits-role--head-value,
html[data-theme="light"] .credits-slot--sora:hover .credits-role--senior-value,
html[data-theme="beige"] .credits-slot--sora:hover .credits-role--senior-value,
html[data-theme="light"] .credits-slot--m7:hover .credits-role--value,
html[data-theme="beige"] .credits-slot--m7:hover .credits-role--value,
html[data-theme="light"] .credits-slot--vedu:hover .credits-role--value,
html[data-theme="beige"] .credits-slot--vedu:hover .credits-role--value,
html[data-theme="light"] .credits-slot--shade:hover .credits-role,
html[data-theme="beige"] .credits-slot--shade:hover .credits-role,
html[data-theme="light"] .credits-slot--rayn:hover .credits-role,
html[data-theme="beige"] .credits-slot--rayn:hover .credits-role,
html[data-theme="light"] .credits-slot--ace:hover .credits-role,
html[data-theme="beige"] .credits-slot--ace:hover .credits-role,
html[data-theme="light"] .credits-slot--bankai:hover .credits-role--blue,
html[data-theme="beige"] .credits-slot--bankai:hover .credits-role--blue {
  box-shadow:
    0 4px 14px rgba(var(--vd-accent), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-shadow: none;
}
