/* Product expansion layer: publisher navigation, revenue tiers and brand studio. */
.official-brand-panel {
  position: relative;
  overflow: hidden;
  width: min(100%, 430px);
  height: 96px;
  margin: 0 auto -22px;
  border: 1px solid rgba(84, 104, 164, .28);
  border-radius: 22px;
  background: #a9a9aa;
  box-shadow: 0 22px 70px rgba(14, 27, 70, .24);
  z-index: 3;
}

.official-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(4, 22, 73, .16);
  pointer-events: none;
}

.official-brand-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 51%;
}

.revenue-share-section {
  position: relative;
  overflow: hidden;
}

.revenue-share-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 205, 220, .13), transparent 68%);
  pointer-events: none;
}

.revenue-tier-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 42px auto 22px;
}

.revenue-tier-grid article {
  min-height: 292px;
  padding: 30px;
  border: 1px solid #dde4f3;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 55px rgba(18, 34, 75, .08);
}

.revenue-tier-grid article.featured {
  color: #fff;
  border-color: rgba(106, 92, 255, .4);
  background: linear-gradient(145deg, #161d3b 0%, #293267 55%, #4e3bc0 100%);
  transform: translateY(-12px);
  box-shadow: 0 24px 70px rgba(63, 49, 164, .24);
}

.tier-kicker {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #5f56d9;
  background: #efedff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.revenue-tier-grid .featured .tier-kicker {
  color: #c9fff2;
  background: rgba(25, 207, 177, .15);
}

.revenue-tier-grid strong {
  display: block;
  margin: 22px 0 8px;
  color: #11182d;
  font-size: clamp(3.3rem, 6vw, 5rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.revenue-tier-grid .featured strong,
.revenue-tier-grid .featured h3,
.revenue-tier-grid .featured p { color: #fff; }

.revenue-tier-grid h3 { margin: 18px 0 10px; }
.revenue-tier-grid p { color: #64708c; line-height: 1.65; }
.revenue-fineprint { max-width: 850px; margin: 0 auto; color: #69758e; text-align: center; font-size: .9rem; }

.sidebar .side-nav-label:not(:first-of-type) { margin-top: 22px; }
.sidebar .side-nav + .side-nav-label { margin-top: 24px; }

.dashboard-share-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(100, 92, 255, .24);
  border-radius: 22px;
  background: linear-gradient(120deg, #f5f3ff, #f2fbfb);
  box-shadow: 0 14px 42px rgba(33, 41, 88, .08);
}

.dashboard-share-strip > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: center;
}
.dashboard-share-strip .eyebrow { grid-column: 1 / -1; }
.dashboard-share-strip strong { color: #221d68; font-size: 3rem; letter-spacing: -.06em; }
.dashboard-share-strip p { margin: 0; color: #65708a; }
.dashboard-share-progress { display: grid; gap: 9px; }
.dashboard-share-progress span { color: #3c4561; font-weight: 750; }
.dashboard-share-progress i { overflow: hidden; height: 8px; border-radius: 999px; background: #dfe3ef; }
.dashboard-share-progress b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #655cff, #10b58f); }
.dashboard-share-progress a { color: #5148ca; font-size: .86rem; font-weight: 750; }

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 22px;
}

.reference-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reference-upload-grid .upload-card { min-height: 180px; }

.ai-provider-state {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce4f2;
  border-radius: 16px;
  background: #f7f9fe;
}

.ai-provider-state i {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: #e7a62f;
  box-shadow: 0 0 0 5px rgba(231, 166, 47, .14);
}

.ai-provider-state.ready i { background: #12a77c; box-shadow: 0 0 0 5px rgba(18, 167, 124, .14); }
.ai-provider-state strong, .ai-provider-state small { display: block; }
.ai-provider-state small { margin-top: 4px; color: #6d7891; line-height: 1.45; }

.brand-preview-frame {
  position: sticky;
  top: 86px;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid #dbe3f2;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 10%, rgba(33, 202, 214, .24), transparent 34%),
    linear-gradient(150deg, #111a3d, #2a3670 60%, #4c3bad);
  color: white;
  box-shadow: 0 22px 65px rgba(20, 31, 72, .18);
}

.brand-preview-frame .preview-cover { height: 155px; background-position: center; background-size: cover; }
.brand-preview-frame .preview-body { padding: 28px; }
.brand-preview-frame .preview-logo {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-top: -62px;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 20px;
  background: #645cff;
  font-size: 1.5rem;
  font-weight: 900;
}
.brand-preview-frame p { color: rgba(255,255,255,.76); line-height: 1.6; }

@media (max-width: 900px) {
  .revenue-tier-grid { grid-template-columns: 1fr; }
  .revenue-tier-grid article.featured { transform: none; }
  .studio-grid { grid-template-columns: 1fr; }
  .brand-preview-frame { position: relative; top: auto; min-height: 380px; }
  .dashboard-share-strip { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .official-brand-panel { height: 76px; margin-bottom: -12px; }
  .revenue-tier-grid article { min-height: 0; padding: 24px; }
  .reference-upload-grid { grid-template-columns: 1fr; }
}
