/* Partner Command Center — Turbion redesign skin.
   Loaded after brand-alignment.css. Uses the same --fb-* tokens as the app and
   thefreedomblueprint.io, so the portal reads as one product with the site.
   The sidebar is untouched apart from a calmer, more opaque surface. */

:root {
  --pcc-head: linear-gradient(123deg, #0dcfff 11%, #545c9e 45%);
  --pcc-btn: linear-gradient(135deg, #7584d6, #7c5ce6);
  --pcc-glass: rgba(255, 255, 255, .64);
  --pcc-glass-strong: rgba(255, 255, 255, .8);
  --pcc-line: rgba(117, 132, 214, .2);
  --pcc-shadow: 0 24px 60px -34px rgba(84, 92, 158, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
  --pcc-rail: 250px;
}

/* ── Moving ground: the site's background loop, behind the main column only ── */
body .shell { background: var(--fb-canvas); }
.pcc-ground {
  position: fixed; inset: 0 0 0 var(--pcc-rail); z-index: 0; pointer-events: none; overflow: hidden;
  background: url(assets/bg-poster.jpg) center/cover no-repeat;
  filter: hue-rotate(-20deg) saturate(1.14);
}
.pcc-ground video { width: 100%; height: 100%; object-fit: cover; opacity: .92; animation: pccGroundIn .9s ease-out both; }
.pcc-ground::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(40% 32% at 12% 6%, rgba(165, 164, 250, .28), transparent 70%),
    radial-gradient(34% 28% at 92% 8%, rgba(128, 229, 255, .22), transparent 70%),
    linear-gradient(180deg, rgba(249, 250, 251, .1), rgba(249, 250, 251, .35));
}
@keyframes pccGroundIn { from { opacity: 0; } }
body .main { position: relative; z-index: 1; }
body .rail { z-index: 3; background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
@media (max-width: 980px) { .pcc-ground { left: 0; } }
@media (prefers-reduced-motion: reduce) { .pcc-ground video { display: none; } }

/* ── Glass cards ── */
body .main .card {
  background: var(--pcc-glass); border: 1px solid var(--pcc-line); border-radius: 24px;
  box-shadow: var(--pcc-shadow);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
@media (max-width: 620px) {
  body .main .card { background: var(--pcc-glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 20px; }
}

/* ── Header ── */
body .main .top { align-items: flex-end; margin-bottom: 26px; }
body .main .top h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; margin: 10px 0 0; }
body .main .eyebrow, body .main .journey-kicker { color: var(--fb-periwinkle); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; }
.pcc-profile-actions, body .main .profile-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.pcc-top-actions { display: flex; align-items: center; gap: 10px; }
.pcc-chip {
  display: inline-flex; padding: 9px 14px; border-radius: 999px; background: var(--pcc-glass-strong);
  border: 1px solid var(--pcc-line); font-size: 13px; font-weight: 700; color: var(--fb-indigo); white-space: nowrap;
}
body .main .profile { background: var(--pcc-glass-strong); border: 1px solid var(--pcc-line); border-radius: 16px; }

/* ── Buttons ── */
body .main button.pcc-btn.copy {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px; background: var(--pcc-btn); color: #fff;
  font: 700 15px Manrope, system-ui, sans-serif;
  box-shadow: 0 16px 36px -16px rgba(84, 92, 158, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}
body .main button.pcc-btn.copy:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 20px 40px -16px rgba(84, 92, 158, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
body .main button.pcc-btn.copy:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.pcc-ghost, .pcc-textlink, .pcc-qr-download {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer;
  padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--pcc-line);
  font: 700 13.5px Manrope, system-ui, sans-serif; color: var(--fb-indigo); text-decoration: none;
}
.pcc-ghost[aria-disabled="true"], .pcc-qr-download:disabled { opacity: .45; pointer-events: none; }
.pcc-textlink { padding: 9px 14px; }

/* ── "Your link" hero ── */
.pcc-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 28px; padding: 30px 32px !important; margin-bottom: 22px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(165, 164, 250, .26), rgba(255, 255, 255, .7) 55%) !important;
}
.pcc-hero h2 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 18px; }
.pcc-dest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pcc-dest button {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--pcc-line); background: #fff; cursor: pointer;
  font: 700 13px Manrope, system-ui, sans-serif; color: var(--fb-slate); transition: background .18s, color .18s;
}
.pcc-dest button.on { background: var(--fb-ink); border-color: var(--fb-ink); color: #fff; }
.pcc-link-row { display: flex; gap: 10px; align-items: center; }
.pcc-link-field {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 15px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--pcc-line);
  font-size: 15px; font-weight: 600; color: var(--fb-ink);
}
.pcc-link-field.is-pending { color: var(--fb-muted); font-weight: 500; background: rgba(255, 255, 255, .7); border-style: dashed; }
.pcc-disclosure { margin: 14px 0 0 !important; font-size: 12.5px; color: var(--fb-muted) !important; }
.pcc-qr { display: grid; justify-items: center; align-content: center; gap: 10px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--pcc-line); }
.pcc-qr-code { width: 124px; height: 124px; border-radius: 8px; }
.pcc-qr-code svg { display: block; width: 100%; height: 100%; }
.pcc-qr-code.is-pending {
  background: repeating-conic-gradient(rgba(117, 132, 214, .18) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
  box-shadow: inset 0 0 0 1px var(--pcc-line);
}
.pcc-qr-download { padding: 8px 14px; font-size: 12.5px; }

/* ── Stat tiles (4-up) with honest placeholders ── */
body .main .reporting-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body .main .reporting-card { position: relative; padding: 22px 22px 18px; }
body .main .reporting-card .metric-label { font-size: 11.5px; letter-spacing: .12em; color: var(--fb-muted); }
body .main .reporting-card .metric-status {
  font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px;
  background: var(--pcc-head); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body .main .reporting-card .metric-note { color: var(--fb-slate); font-size: 12.5px; min-height: 0; margin-top: 8px; }
body .main .reporting-card.is-pending .metric-status {
  font-size: 22px; background: none; color: var(--fb-muted); -webkit-text-fill-color: currentColor;
}
body .main .reporting-card.is-pending::after {
  content: 'Not live yet'; position: absolute; top: 18px; right: 18px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em;
  color: #9a6a12; background: rgba(245, 185, 74, .16); border: 1px solid rgba(245, 185, 74, .35);
}
body .main .reporting-card:not(.is-pending)::after {
  content: ''; position: absolute; top: 22px; right: 20px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--fb-success); box-shadow: 0 0 0 4px rgba(52, 199, 154, .15);
}
body .main .section-heading h2 { font-size: 20px; letter-spacing: -.02em; }
body .main .reporting-period { font-size: 12px; font-weight: 700; color: var(--fb-indigo); }

/* ── Share cards + launch path ── */
.pcc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 28px; }
body .main .pcc-section { margin: 0 4px 14px; align-items: baseline; }
body .main .pcc-section h2, body .main .section h2 { font-size: 20px; letter-spacing: -.02em; }
body .main .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body .main .offer { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
body .main .offer::before {
  content: ''; display: block; height: 108px; flex: none;
  background: linear-gradient(135deg, #dfe3fb, #c9d6ff 60%, #f3d9ef);
}
/* Crops of the same moving-ground frame, hue-shifted per blueprint. */
body .main .offer[data-art="genius"]::before { background: url(assets/bg-poster.jpg) 20% 60% / 220% no-repeat, #e9ecfb; filter: hue-rotate(40deg); }
body .main .offer[data-art="health"]::before { background: url(assets/bg-poster.jpg) 70% 40% / 200% no-repeat, #ecdffd; filter: hue-rotate(-40deg); }
body .main .offer[data-art="wealth"]::before { background: url(assets/bg-poster.jpg) 50% 80% / 240% no-repeat, #e3e7ff; filter: hue-rotate(80deg); }
body .main .offer[data-art="film"]::before { background: url(assets/bg-poster.jpg) center/cover; }
body .main .offer[data-art="app"]::before { background: linear-gradient(135deg, #f3f4ff, #e3e7ff 60%, #d9f4ff); }
body .main .offer[data-art="masterclass"]::before { background: linear-gradient(135deg, #eef0fb, #f5f3ff); }
body .main .offer > * { margin-left: 18px; margin-right: 18px; }
body .main .offer .offer-tag {
  align-self: flex-start; margin-top: -94px; margin-bottom: 72px; position: relative;
  background: rgba(255, 255, 255, .92); color: var(--fb-indigo); font-size: 10.5px; letter-spacing: .1em;
}
body .main .offer h3 { margin: 16px 18px 6px; font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
body .main .offer p { min-height: 0; font-size: 13px; line-height: 1.5; color: var(--fb-slate); margin-top: 0; }
body .main .offer .link-status { min-height: 0; font-size: 11.5px; color: var(--fb-indigo); margin: 8px 18px 0; }
body .main .offer .tools { margin: auto 18px 18px; padding-top: 14px; flex-wrap: wrap; gap: 8px; }
body .main .offer .tools .copy, body .main .offer .tools .go {
  display: inline-flex; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--pcc-line);
  font: 700 12.5px Manrope, system-ui, sans-serif; color: var(--fb-indigo); text-decoration: none;
}
body .main .offer .tools { flex-wrap: nowrap; align-items: center; }
body .main .offer .tools .copy { white-space: nowrap; }
body .main .offer .tools .go { padding: 9px 4px; border: 0; background: none; white-space: nowrap; }
body .main .offer .tools .copy:not(:disabled) { background: var(--pcc-btn); color: #fff; border-color: transparent; }

/* Recent activity (injected by partner-content.js) reuses .section, which is a flex row. */
body .main #recentActivitySection { display: block; margin-top: 30px; }
body .main #recentActivitySection .section-heading { margin: 0 4px 14px; }
body .main #recentActivitySection .recent-activity-list { padding: 18px 22px; }
body .main .offer.pcc-soon { opacity: .78; }
body .main .offer.pcc-soon .offer-tag { color: #9a6a12; }

.pcc-path { padding: 24px !important; position: sticky; top: 24px; }
.pcc-path h3 { font-size: 18px; letter-spacing: -.02em; margin: 8px 0 16px; }
.pcc-ring { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.pcc-ring-dial {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--fb-periwinkle) 0 var(--pcc-progress, 0%), rgba(117, 132, 214, .15) 0);
  transition: background .4s ease;
}
.pcc-ring-count { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--fb-ink); }
.pcc-ring-next { margin: 0 !important; font-size: 13.5px; color: var(--fb-slate); }
.pcc-path ol { list-style: none; margin: 0; padding: 0; }
.pcc-path li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--pcc-line); font-size: 14.5px; }
.pcc-path li i { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--pcc-line); background: #fff; position: relative; }
.pcc-path li.done i { background: var(--pcc-btn); border: 0; }
.pcc-path li.done i::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.pcc-path li.done b { color: var(--fb-muted); text-decoration: line-through; }
.pcc-path li b { font-weight: 600; color: var(--fb-ink); }
.pcc-path li small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--fb-muted); }
.pcc-path li small a, .pcc-path li small button {
  padding: 0; border: 0; background: none; cursor: pointer; font: 700 12.5px Manrope, system-ui, sans-serif; color: var(--fb-indigo); text-decoration: none;
}
.pcc-path li.done small button { display: none; }

/* ── Journey + guidelines ── */
body .main .journey-card { background: var(--pcc-glass) !important; }
body .main .journey-card h3 { font-weight: 700; }
.pcc-guide { margin-top: 22px; padding: 16px 22px !important; display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--fb-slate); }
.pcc-guide b { color: var(--fb-ink); }

/* ── Responsive ── */
@media (max-width: 1240px) {
  body .main .reporting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .main .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .pcc-cols { grid-template-columns: minmax(0, 1fr); }
  .pcc-path { position: static; }
}
@media (max-width: 720px) {
  body .main .top { flex-direction: column; align-items: stretch; }
  .pcc-profile-actions, body .main .profile-actions { justify-content: flex-start; }
  .pcc-top-actions { width: 100%; justify-content: space-between; }
  .pcc-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 20px !important; gap: 18px; }
  .pcc-hero h2 { font-size: 22px; }
  .pcc-link-row { flex-wrap: wrap; }
  .pcc-link-field { flex-basis: 100%; }
  .pcc-link-row .pcc-btn { flex: 1; justify-content: center; }
  .pcc-qr { grid-template-columns: auto 1fr; justify-items: start; }
  .pcc-qr-code { width: 96px; height: 96px; }
  body .main .reporting-grid, body .main .offers { grid-template-columns: 1fr; }
  .pcc-guide { display: block; }
  .pcc-guide b { display: block; margin-bottom: 4px; }
}

/* ── Library panels (Media kit, Share, Grow, Support) ──
   partner-content.js injects its own <style> at runtime, after this sheet,
   so these selectors carry an extra `body` + panel id for specificity. */
body #partnerContentPanel.partner-content-panel {
  position: relative; background: var(--pcc-glass); border: 1px solid var(--pcc-line); border-radius: 26px;
  box-shadow: var(--pcc-shadow); padding: 28px 30px; backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
body #partnerContentPanel .partner-content-top h2 { font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
body #partnerContentPanel .partner-content-close { border-radius: 999px; background: #fff; border-color: var(--pcc-line); color: var(--fb-indigo); padding: 9px 16px; }
body #partnerContentPanel .media-kit-hero { background: radial-gradient(120% 140% at 0% 0%, rgba(165, 164, 250, .24), rgba(255, 255, 255, .72) 60%); border: 1px solid var(--pcc-line); border-radius: 22px; }
body #partnerContentPanel .media-kit-hero h3 { font-size: 26px; font-weight: 700; letter-spacing: -.035em; background: var(--pcc-head); -webkit-background-clip: text; background-clip: text; color: transparent; }
body #partnerContentPanel .media-kit-stats b { background: var(--pcc-head); -webkit-background-clip: text; background-clip: text; color: transparent; }
body #partnerContentPanel .media-kit-guides button { background: #fff; border-color: var(--pcc-line); color: var(--fb-indigo); }

.media-kit-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.media-kit-tabs button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--pcc-line); background: rgba(255, 255, 255, .8); cursor: pointer;
  font: 700 13.5px Manrope, system-ui, sans-serif; color: var(--fb-slate);
}
.media-kit-tabs button.on { background: var(--fb-ink); border-color: var(--fb-ink); color: #fff; }
.media-kit-tabs em { font-style: normal; opacity: .6; margin-left: 6px; }

/* Masonry: mixed banner / square / story ratios pack without gaps. */
body #partnerContentPanel .media-kit-grid { display: block; columns: 3 260px; column-gap: 18px; margin: 0; }
body #partnerContentPanel .media-kit-card {
  display: inline-block; width: 100%; margin: 0 0 18px; break-inside: avoid; border-radius: 22px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--pcc-line);
}
body #partnerContentPanel .media-kit-card[hidden] { display: none; }
body #partnerContentPanel .media-kit-card > img { height: auto; max-height: 420px; object-fit: contain; background: linear-gradient(135deg, #eef0fb, #f5f3ff); }
body #partnerContentPanel .media-kit-art {
  position: relative; height: auto; aspect-ratio: 1200 / 628; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 18px 20px; color: #fff; text-transform: none; letter-spacing: normal; overflow: hidden;
  background: linear-gradient(135deg, #545c9e, #7c5ce6 55%, #0dcfff);
}
body #partnerContentPanel .media-kit-art::before { content: ''; position: absolute; inset: 0; background: url(assets/bg-poster.jpg) center/cover; mix-blend-mode: screen; opacity: .55; }
body #partnerContentPanel .media-kit-art > * { position: relative; }
body #partnerContentPanel .media-kit-art i { position: absolute; top: 16px; left: 18px; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .92) url(logo-mark.png) center / 22px no-repeat; }
body #partnerContentPanel .media-kit-art b { font-size: 20px; line-height: 1.12; letter-spacing: -.03em; max-width: 90%; }
body #partnerContentPanel .media-kit-art small { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
body #partnerContentPanel .media-kit-card-body { padding: 16px 18px 18px; }
body #partnerContentPanel .media-kit-card-body h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.media-kit-caption {
  margin: 12px 0 0 !important; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--pcc-line);
  background: rgba(255, 255, 255, .85); font-size: 12.5px !important; line-height: 1.45 !important; color: var(--fb-slate) !important;
}
.media-kit-caption b { color: var(--fb-indigo); word-break: break-all; }
.media-kit-caption.is-pending { color: var(--fb-muted) !important; }
body #partnerContentPanel .media-kit-card-actions a, body #partnerContentPanel .media-kit-card-actions button {
  border-radius: 999px; padding: 9px 14px; background: #fff; border: 1px solid var(--pcc-line); color: var(--fb-indigo); font: 700 12.5px Manrope, system-ui, sans-serif;
}
body #partnerContentPanel .media-kit-card-actions .media-kit-download,
body #partnerContentPanel .media-kit-card-actions .media-kit-copy:not(:disabled) { background: var(--pcc-btn); border-color: transparent; color: #fff; }
body #partnerContentPanel .media-kit-card-actions button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 620px) {
  body #partnerContentPanel.partner-content-panel { padding: 20px 16px; border-radius: 20px; }
  body #partnerContentPanel .media-kit-grid { columns: 1; }
}

body #partnerContentPanel .media-kit-download[aria-disabled="true"] { opacity: .45; pointer-events: none; }
body #partnerContentPanel .media-kit-card-actions { gap: 6px 12px; }
body #partnerContentPanel .media-kit-card-actions > a[target], body #partnerContentPanel .media-kit-card-actions .media-kit-share { padding: 9px 2px; border: 0; background: none; }

/* ── Sidebar brand lockup ──
   brand-alignment.css pads every brand image by 16px (content-box), which
   shrinks the 46px mark to a dot, and its -.05em tracking crushes the
   subtitle. Size the mark properly and set the type like the site's nav. */
body .rail .brand { gap: 12px; align-items: center; margin: 0 4px 36px; letter-spacing: normal; }
body .rail .brand img, body .mobile-nav-brand img {
  box-sizing: border-box; padding: 0; width: 48px; height: 48px; flex: none; border-radius: 50%;
  object-fit: contain; box-shadow: 0 10px 24px -12px rgba(84, 92, 158, .55);
}
body .mobile-nav-brand img { width: 34px; height: 34px; }
body .rail .brand b { font-size: 15.5px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--fb-ink); }
body .rail .brand span { margin-top: 3px; white-space: nowrap; font-size: 11.5px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: var(--fb-muted); }
body :is(.login-brand, .auth-loading) img { box-sizing: border-box; padding: 0; width: 40px; height: 40px; object-fit: contain; border-radius: 50%; box-shadow: 0 8px 20px -10px rgba(84, 92, 158, .55); }
