/* Shared Founder badge + platinum accent (site-wide reusable) */
:root {
  --founder-rgb: 14, 165, 233;          /* cyan / sky */
  --founder: rgb(var(--founder-rgb));
  --founder-strong: #0284c7;
  --founder-light: #7dd3fc;
  --founder-deep: #0c4a6e;
  --founder-mid: #0369a1;
  --founder-ink: #dbeafe;               /* soft readable text (not pure white) */
}

.gc-founder-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 11px 4px 6px;
  border-radius: 999px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--founder-ink);
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 48%, #0284c7 100%);
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.22);
  overflow: visible; /* must stay visible so hover tooltips are not clipped */
  cursor: help;
  vertical-align: middle;
  text-decoration: none !important;
  /* Keep tooltip in the hover tree when moving upward into it */
  z-index: 5;
}
.gc-founder-badge:hover {
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}
.gc-founder-badge::after { content: none !important; display: none !important; }
.gc-founder-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 16px;
  flex-shrink: 0;
}
.gc-founder-badge-icon img,
.gc-founder-badge-logo {
  width: 14px;
  height: 15px;
  display: block;
  object-fit: contain;
}
.gc-founder-badge-icon svg {
  width: 14px;
  height: 15px;
  display: block;
}
.gc-founder-badge-label {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}
/* Kept for any legacy callers; prefer transform sheens on pages */
@keyframes gc-founder-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.06); }
}

.gc-founder-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.96);
  border: 1px solid rgba(14, 165, 233, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.88);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Delay hide so the cursor can cross into the tooltip */
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  transition-delay: 0.14s;
  z-index: 80;
}
/* Invisible bridge covering the gap between badge and tooltip */
.gc-founder-tooltip::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}
.gc-founder-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(14, 165, 233, 0.4);
}
.gc-founder-badge:hover .gc-founder-tooltip,
.gc-founder-badge:focus-within .gc-founder-tooltip,
.gc-founder-badge:hover:focus-within .gc-founder-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.gc-founder-tooltip a {
  display: inline;
  margin: 0;
  color: var(--founder-light) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gc-founder-tooltip a::after { content: none !important; display: none !important; }

/* --------------------------------------------------------------------------
   Founder electric styling (shared) — glow + offset circles + panel sheen.
   No lightning bolts here; those stay leaderboard-only.
   -------------------------------------------------------------------------- */

/* Circular orb with offset circle clones + big aura */
.gc-founder-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: var(--founder-ink);
  background: linear-gradient(135deg, var(--founder-deep), var(--founder-strong));
  font-size: 28px;
  font-weight: 900;
  overflow: visible;
  animation: gc-founder-orb-glow 4.2s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.45),
    0 0 12px rgba(14, 165, 233, 0.32),
    0 0 24px rgba(3, 105, 161, 0.22);
}
.gc-founder-orb svg,
.gc-founder-orb img {
  width: 34px;
  height: 37px;
  display: block;
  object-fit: contain;
}
.gc-founder-orb-lg {
  width: 88px;
  height: 88px;
}
.gc-founder-orb-lg svg,
.gc-founder-orb-lg img {
  width: 42px;
  height: 46px;
}

@keyframes gc-founder-orb-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(14, 165, 233, 0.45),
      0 0 12px rgba(14, 165, 233, 0.32),
      0 0 24px rgba(3, 105, 161, 0.22),
      0 0 36px rgba(14, 165, 233, 0.12);
  }
  10% {
    box-shadow:
      0 0 0 1.5px rgba(125, 211, 252, 0.7),
      4px 5px 0 0 rgba(14, 165, 233, 0.55),
      -5px 6px 0 0 rgba(3, 105, 161, 0.55),
      6px 8px 0 0 rgba(14, 165, 233, 0.4),
      -3px 9px 0 0 rgba(3, 105, 161, 0.4),
      7px -2px 0 0 rgba(14, 165, 233, 0.45),
      -7px 1px 0 0 rgba(3, 105, 161, 0.4),
      2px -6px 0 0 rgba(14, 165, 233, 0.4),
      0 0 18px rgba(14, 165, 233, 0.55),
      0 0 32px rgba(3, 105, 161, 0.35),
      0 0 48px rgba(14, 165, 233, 0.18);
  }
  22% {
    box-shadow:
      0 0 0 1px rgba(14, 165, 233, 0.4),
      0 0 12px rgba(14, 165, 233, 0.28),
      0 0 24px rgba(3, 105, 161, 0.18),
      0 0 36px rgba(14, 165, 233, 0.1);
  }
  44% {
    box-shadow:
      0 0 0 1.5px rgba(56, 189, 248, 0.7),
      -4px -5px 0 0 rgba(14, 165, 233, 0.45),
      5px -4px 0 0 rgba(3, 105, 161, 0.5),
      -6px 3px 0 0 rgba(14, 165, 233, 0.5),
      6px 4px 0 0 rgba(3, 105, 161, 0.45),
      -3px 7px 0 0 rgba(14, 165, 233, 0.4),
      4px 8px 0 0 rgba(3, 105, 161, 0.35),
      0px -7px 0 0 rgba(14, 165, 233, 0.4),
      0 0 16px rgba(14, 165, 233, 0.5),
      0 0 30px rgba(3, 105, 161, 0.32),
      0 0 46px rgba(14, 165, 233, 0.16);
  }
  56% {
    box-shadow:
      0 0 0 1px rgba(14, 165, 233, 0.4),
      0 0 12px rgba(14, 165, 233, 0.3),
      0 0 24px rgba(3, 105, 161, 0.18),
      0 0 36px rgba(14, 165, 233, 0.1);
  }
  73% {
    box-shadow:
      0 0 0 1.5px rgba(125, 211, 252, 0.65),
      5px 3px 0 0 rgba(14, 165, 233, 0.5),
      -6px 4px 0 0 rgba(3, 105, 161, 0.5),
      4px 7px 0 0 rgba(14, 165, 233, 0.45),
      -4px 8px 0 0 rgba(3, 105, 161, 0.4),
      7px -3px 0 0 rgba(14, 165, 233, 0.45),
      -7px -2px 0 0 rgba(3, 105, 161, 0.4),
      1px -7px 0 0 rgba(14, 165, 233, 0.4),
      -1px 9px 0 0 rgba(3, 105, 161, 0.35),
      0 0 18px rgba(14, 165, 233, 0.55),
      0 0 34px rgba(3, 105, 161, 0.35),
      0 0 50px rgba(14, 165, 233, 0.18);
  }
  86% {
    box-shadow:
      0 0 0 1px rgba(14, 165, 233, 0.45),
      0 0 12px rgba(14, 165, 233, 0.32),
      0 0 24px rgba(3, 105, 161, 0.22),
      0 0 36px rgba(14, 165, 233, 0.12);
  }
}

/* Panels / CTAs: electric border glow + sweeping sheen */
.gc-founder-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(var(--founder-rgb), 0.4);
  border-radius: 12px;
  background:
    linear-gradient(180deg,
      rgba(14, 165, 233, 0.1) 0%,
      rgba(3, 105, 161, 0.04) 100%);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.08);
}
.gc-founder-panel > * {
  position: relative;
  z-index: 1;
}

@keyframes gc-founder-panel-glow {
  0%, 100% { opacity: 1; }
}
@keyframes gc-founder-panel-sheen {
  0% { transform: translateX(-160%); }
  55% { transform: translateX(280%); }
  100% { transform: translateX(280%); }
}
