/* Revenue Share — aligned with the Hub's modern card language. */
#content:has(#myRevenueDashboard) > .hero,
#myRevenueDashboard,
#revenueDashboardHost {
  width: min(1560px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

#content:has(#myRevenueDashboard) > .hero { padding: 54px 0 38px; }
#content:has(#myRevenueDashboard) > .hero h1 {
  font-size: clamp(45px, 4.2vw, 68px);
  letter-spacing: -.025em;
}

.revenuePreviewHost { margin-top: 20px; margin-bottom: 70px; }
.revenueDashboard {
  --revenue-gold: #d6bd67;
  --revenue-gold-rgb: 214, 189, 103;
  border: 1px solid #303a32;
  border-radius: 17px;
  background:
    radial-gradient(circle at 88% -10%, rgba(var(--revenue-gold-rgb), .08), transparent 31%),
    linear-gradient(145deg, #101612, #080c09 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 28px 70px rgba(0, 0, 0, .25);
}

.revenueDashboard::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--revenue-gold), rgba(var(--revenue-gold-rgb), .2) 58%, transparent 86%);
  box-shadow: 0 0 22px rgba(var(--revenue-gold-rgb), .18);
}

.previewBadge {
  z-index: 4;
  border-radius: 6px;
  background: #211e12;
  font-weight: 800;
}

.revenueHeader {
  align-items: center;
  padding: 34px 38px 31px;
  border-bottom: 0;
}

.revenueIdentity { display: flex; align-items: center; gap: 18px; }
.revenuePoolMark {
  display: grid;
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  place-items: center;
  border: 1px solid rgba(var(--revenue-gold-rgb), .42);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(var(--revenue-gold-rgb), .14), rgba(var(--revenue-gold-rgb), .035));
  color: var(--revenue-gold);
  box-shadow: inset 0 0 22px rgba(var(--revenue-gold-rgb), .05);
  font: 600 25px 'Cormorant Garamond', serif;
}

.revenueHeader .eyebrow { margin: 0; color: #a39158; }
.revenueHeader h2 { margin: 5px 0 2px; font-size: clamp(33px, 3vw, 44px); line-height: 1; }
.revenueHeader p:last-child { margin: 8px 0 0; font-size: 12px; }

.revenueUpdated { min-width: 270px; padding-left: 25px; border-left: 1px solid #303830; }
.revenueLive {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 5px 8px;
  border: 1px solid #395440;
  border-radius: 999px;
  background: #142019;
  color: #8db896!important;
  font-size: 8px!important;
  font-weight: 800;
  letter-spacing: .12em;
}
.revenueLive i { width: 6px; height: 6px; border-radius: 50%; background: #80b38b; box-shadow: 0 0 9px #80b38b; }
.revenueUpdated b { color: #dce2dc; font-size: 13px; }
.revenueUpdated .revenueSource { max-width: 310px; overflow: hidden; color: #68726a; text-overflow: ellipsis; white-space: nowrap; }

.revenueKpis,
.revenueKpis.founderKpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 28px;
  padding: 0 0 28px;
  border: 0;
  background: transparent;
}
.revenueKpis:not(.founderKpis) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.revenueKpis article,
.revenueKpis .highlight {
  position: relative;
  min-height: 105px;
  padding: 20px 21px;
  overflow: hidden;
  border: 1px solid #303931;
  border-radius: 11px;
  background: linear-gradient(145deg, #141a15, #0d120e);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}
.revenueKpis article::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 158, 143, .09), transparent 68%);
}
.revenueKpis .highlight {
  border-color: rgba(var(--revenue-gold-rgb), .36);
  background: linear-gradient(145deg, rgba(var(--revenue-gold-rgb), .115), #11160f 70%);
}
.revenueKpis .highlight::after { background: radial-gradient(circle, rgba(var(--revenue-gold-rgb), .13), transparent 68%); }
.revenueKpiIcon {
  display: grid;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #354037;
  border-radius: 8px;
  background: #172019;
  color: #829084;
  font-size: 11px;
}
.revenueKpis .highlight .revenueKpiIcon { border-color: #665a32; background: #292515; color: var(--revenue-gold); }
.revenueKpis small { max-width: calc(100% - 38px); color: #788179; font-weight: 800; }
.revenueKpis strong { margin-top: auto; color: #e6eae4; font-size: clamp(30px, 2.6vw, 40px); line-height: 1; }
.revenueKpis .highlight strong { color: #e0c96f; }

.revenueVisual {
  grid-template-columns: minmax(300px, .72fr) minmax(440px, 1.28fr);
  gap: clamp(45px, 6vw, 105px);
  min-height: 420px;
  margin: 0 28px 28px;
  padding: 45px clamp(32px, 6vw, 90px);
  border: 1px solid #2e3830;
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 50%, rgba(var(--revenue-gold-rgb), .075), transparent 30%),
    linear-gradient(135deg, #0c110d, #101612);
}
.sharePieWrap { display: grid; justify-items: center; gap: 15px; }
.sharePie {
  position: relative;
  width: clamp(230px, 20vw, 300px);
  height: clamp(230px, 20vw, 300px);
  background: conic-gradient(var(--revenue-gold) 0 var(--slice-angle), #29332b var(--slice-angle) 360deg)!important;
  box-shadow: 0 0 0 1px #3b443c, 0 24px 55px rgba(0, 0, 0, .34), 0 0 55px rgba(var(--revenue-gold-rgb), .07);
}
.sharePie::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(var(--revenue-gold-rgb), .14);
  border-radius: 50%;
}
.sharePie > div {
  width: 64%;
  height: 64%;
  background: radial-gradient(circle at 50% 35%, #141a15, #090d0a 75%);
  box-shadow: inset 0 0 0 1px #303a32, 0 0 24px rgba(0, 0, 0, .22);
}
.sharePie small { color: #7d867e; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.sharePie strong { margin: 5px 0 0; font-size: clamp(34px, 3vw, 45px); line-height: .92; }
.sharePie span { color: #a0aaa1; font-size: 11px; }
.sharePieCaption {
  padding: 6px 10px;
  border: 1px solid #384239;
  border-radius: 999px;
  background: #121813;
  color: #9ca69e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

.shareExplanation .eyebrow { color: #9f8e55; }
.shareExplanation h3 { margin: 9px 0 10px; font-size: clamp(31px, 3vw, 43px); line-height: 1; }
.shareExplanation > p:not(.eyebrow) { margin-bottom: 24px; color: #97a099; font-size: 13px; }
.shareFormula {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) auto minmax(105px, 1fr) auto minmax(105px, 1fr);
  align-items: center;
  gap: 9px;
  max-width: 570px;
  margin: 24px 0 20px;
}
.shareFormula > span {
  display: flex;
  min-height: 65px;
  padding: 12px 13px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #323c34;
  border-radius: 9px;
  background: #121813;
}
.shareFormula small { color: #717b73; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.shareFormula b { margin-top: 4px; color: #dfe4de; font: 600 22px 'Cormorant Garamond', serif; }
.shareFormula > i { color: #667168; font: normal 17px 'Cormorant Garamond', serif; }
.shareFormula .result { border-color: #665b35; background: #211f13; }
.shareFormula .result b { color: #dfc76e; }
.shareLegend { margin-top: 0; padding-top: 19px; border-top: 1px solid #29322b; }
.shareLegend i { box-shadow: 0 0 8px rgba(var(--revenue-gold-rgb), .28); }

.revenueContributions { padding: 31px 28px 35px; border-top: 1px solid #273029; }
.revenueContributionsHeader { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.revenueContributionsHeader .eyebrow { margin: 0 0 5px; color: #7f897f; }
.revenueContributionsHeader h3 { margin: 0; font-size: 29px; line-height: 1; }
.revenueContributionsHeader > span {
  padding: 7px 10px;
  border: 1px solid #354037;
  border-radius: 7px;
  background: #111713;
  color: #8d978f;
  font-size: 9px;
}
.revenueContributions .tableScroll { overflow: auto; border: 1px solid #2e3730; border-radius: 11px; }
.revenueContributions table { min-width: 760px; background: #0c110d; }
.revenueContributions thead { position: sticky; top: 0; z-index: 1; background: #151b16; }
.revenueContributions th { padding: 13px 16px; color: #78827a; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.revenueContributions td { padding: 16px; border-color: #252e27; color: #b5bcb6; font-size: 11px; line-height: 1.52; }
.revenueContributions tbody tr { transition: background .16s ease; }
.revenueContributions tbody tr:hover { background: rgba(var(--revenue-gold-rgb), .035); }
.revenueContributions th:first-child,
.revenueContributions td:first-child { width: 150px; }
.revenueContributions th:last-child,
.revenueContributions td:last-child { width: 100px; }
.revenueDate {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid #344037;
  border-radius: 6px;
  background: #141a15;
  color: #98a29a;
  font-size: 9px;
  white-space: pre-line;
}
.revenuePoints { color: #dcc570; font-size: 12px; }

@media (max-width: 1050px) {
  .revenueKpis,
  .revenueKpis.founderKpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revenueVisual { grid-template-columns: 1fr; gap: 35px; }
  .shareExplanation { width: min(100%, 680px); text-align: center; }
  .shareExplanation > p:not(.eyebrow) { margin-right: auto; margin-left: auto; }
  .shareFormula { margin-right: auto; margin-left: auto; }
  .shareLegend { justify-content: center; }
}

@media (max-width: 700px) {
  #content:has(#myRevenueDashboard) > .hero,
  #myRevenueDashboard,
  #revenueDashboardHost { width: calc(100% - 28px); }
  #content:has(#myRevenueDashboard) > .hero { padding: 35px 0 26px; }
  .revenueDashboard { border-radius: 13px; }
  .revenueHeader { align-items: flex-start; padding: 27px 20px 22px; }
  .revenueIdentity { align-items: flex-start; }
  .revenuePoolMark { width: 45px; height: 45px; flex-basis: 45px; border-radius: 11px; }
  .revenueUpdated { width: 100%; padding: 18px 0 0; border-top: 1px solid #303830; border-left: 0; }
  .revenueKpis,
  .revenueKpis.founderKpis,
  .revenueKpis:not(.founderKpis) { grid-template-columns: 1fr; margin: 0 14px; padding-bottom: 14px; }
  .revenueKpis article,
  .revenueKpis .highlight { min-height: 94px; }
  .revenueVisual { min-height: 0; margin: 0 14px 14px; padding: 36px 17px; }
  .shareFormula { grid-template-columns: 1fr; }
  .shareFormula > i { line-height: 1; }
  .revenueContributions { padding: 25px 14px 28px; }
  .revenueContributionsHeader { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .revenueContributions tbody tr { transition: none; }
}
