.influencer-app {
  --inf: #a78bfa;
  --inf-soft: #211936;
  --inf-line: #282d36;
}

.workspace-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 3px 20px;
  padding: 10px;
  border: 1px solid #282d36;
  border-radius: 12px;
  background: #101318;
}

.workspace-badge > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #100b1d;
  background: #a78bfa;
  font-weight: 800;
}

.workspace-badge div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.workspace-badge b {
  font-size: 0.74rem;
}

.workspace-badge small {
  color: #727886;
  font-size: 0.625rem;
}

.workspace-badge a {
  color: #8b91a0;
  text-decoration: none;
}

.influencer-topbar {
  min-height: 78px;
}

.period-select {
  padding: 9px 12px;
  border: 1px solid #29303a;
  border-radius: 10px;
  color: #c9cbd2;
  background: #101419;
  font:
    600 0.72rem "Manrope",
    sans-serif;
}

.inf-view[hidden] {
  display: none !important;
}

.inf-view.active {
  animation: infViewIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.creator-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 8px 0 12px;
}

.creator-welcome h2 {
  margin: 6px 0;
  font: 750 clamp(1.8rem, 3vw, 2.7rem) / 1.1 var(--display);
  letter-spacing: -0.05em;
}

.creator-welcome p {
  color: #858b97;
  font-size: 0.84rem;
}

.creator-welcome strong {
  color: #a78bfa;
}

.sync-state {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #272d36;
  border-radius: 11px;
  background: #0e1216;
}

.sync-state > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56d6ae;
  box-shadow: 0 0 0 5px rgba(86, 214, 174, 0.08);
}

.sync-state.is-unavailable > i {
  background: #8a909c;
  box-shadow: 0 0 0 5px rgba(138, 144, 156, 0.1);
}

.sync-state span {
  display: flex;
  flex-direction: column;
  font-size: 0.67rem;
  font-weight: 700;
}

.sync-state b {
  font-size: inherit;
}

.sync-state small {
  color: #6e7480;
  font-size: 0.625rem;
}

.influencer-stats .stat-card {
  min-height: 155px;
}

.stats-row.influencer-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

[data-overview-instagram-block] {
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

[data-overview-instagram-block].is-disabled {
  filter: grayscale(1);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.overview-instagram-state[hidden] {
  display: none;
}

.influencer-stats .sc-value.unavailable,
.overview-audience-unavailable b {
  color: #8a909c;
}

.influencer-stats .trend {
  position: absolute;
  right: 12px;
  top: 12px;
  white-space: nowrap;
}

.trend {
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 0.625rem;
  font-weight: 800;
}

.trend.up {
  color: #77d9b8;
  background: rgba(65, 190, 145, 0.09);
}

.stat-caption {
  margin-top: 8px;
  color: #69717d;
  font-size: 0.65rem;
}

.mini-spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
  margin-top: 9px;
}

.mini-spark i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: #4a3b75;
}

.mini-spark i:nth-child(1) {
  height: 28%;
}

.mini-spark i:nth-child(2) {
  height: 42%;
}

.mini-spark i:nth-child(3) {
  height: 37%;
}

.mini-spark i:nth-child(4) {
  height: 58%;
}

.mini-spark i:nth-child(5) {
  height: 52%;
}

.mini-spark i:nth-child(6) {
  height: 76%;
}

.mini-spark i:nth-child(7) {
  height: 92%;
  background: #a78bfa;
}

.inf-grid-main {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 18px;
}

.inf-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #777e89;
  font-size: 0.625rem;
}

.panel-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
}

.growth-chart {
  position: relative;
  height: 280px;
  padding: 20px 20px 12px;
}

.overview-metric-tabs {
  flex-shrink: 0;
}

.overview-instagram-chart {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.overview-chart-bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 220px;
}

.overview-chart-bars span {
  flex: 1;
  min-width: 3px;
  height: var(--h);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #a855f7, #6d28d9);
  transform-origin: bottom;
  animation: growBar 0.6s ease both;
}

.overview-chart-empty {
  position: absolute;
  z-index: 1;
  inset: 50% 20px auto;
  margin: 0;
  color: #7c838e;
  font-size: 0.72rem;
  text-align: center;
  transform: translateY(-50%);
}

.overview-chart-empty[hidden] {
  display: none;
}

.overview-audience-unavailable {
  display: grid;
  gap: 6px;
  min-height: 176px;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.overview-audience-unavailable p {
  max-width: 420px;
  margin: 0;
  color: #777e89;
  font-size: 0.76rem;
  line-height: 1.55;
}

.chart-gridlines {
  position: absolute;
  inset: 20px;
  background: repeating-linear-gradient(
    to bottom,
    #222831 0 1px,
    transparent 1px 54px
  );
}

.growth-chart svg {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: visible;
}

.growth-chart .area {
  fill: url(#area);
}

.growth-chart .line {
  fill: none;
  stroke: #a78bfa;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.3));
  stroke-dasharray: 1200;
  animation: drawLine 1.6s ease both;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  color: #5f6570;
  font-size: 0.625rem;
}

.platform-list {
  display: grid;
  padding: 10px 20px 20px;
}

.platform-list article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #222831;
}

.platform-list article:last-child {
  border: 0;
}

.platform-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-style: normal;
  font-weight: 800;
}

.platform-icon.tt {
  background: #1c2027;
}

.platform-icon.ig {
  background: linear-gradient(135deg, #e66b9c, #7e5ce0);
}

.platform-icon.yt {
  background: #d94b58;
}

.platform-list div {
  display: flex;
  flex-direction: column;
}

.platform-list b {
  font-size: 0.76rem;
}

.platform-list small {
  color: #6e7480;
  font-size: 0.625rem;
}

.platform-list strong {
  color: #74d7b6;
  font-size: 0.66rem;
}

.audience-snapshot {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 25px;
  align-items: center;
  padding: 22px;
}

.gender-donut {
  width: 130px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(#a78bfa 0 62%, #5b4a91 62% 98%, #2b2f38 98%);
  position: relative;
}

.gender-donut::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: #0e1216;
}

.gender-donut span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.gender-donut b {
  font-size: 1.25rem;
}

.gender-donut small {
  color: #777e89;
  font-size: 0.625rem;
}

.snapshot-bars {
  display: grid;
  gap: 14px;
}

.snapshot-bars span {
  display: grid;
  gap: 6px;
}

.snapshot-bars label {
  display: flex;
  justify-content: space-between;
  color: #858b97;
  font-size: 0.625rem;
}

.snapshot-bars label b {
  color: #cfd1d6;
}

.snapshot-bars i {
  height: 6px;
  border-radius: 99px;
  background: #20252d;
  overflow: hidden;
}

.snapshot-bars i::after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: #a78bfa;
}

.deadline-list {
  display: grid;
  padding: 7px 20px 18px;
}

.deadline-list > span {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #222831;
}

.deadline-list > span:last-child {
  border: 0;
}

.deadline-list time {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #a78bfa;
  background: #211936;
  font-size: 0.9rem;
  font-weight: 800;
}

.deadline-list time small {
  font-size: 0.625rem;
}

.deadline-list div {
  display: flex;
  flex-direction: column;
}

.deadline-list b {
  font-size: 0.7rem;
}

.deadline-list small {
  color: #6f7681;
  font-size: 0.625rem;
}

.deadline-list em {
  color: #8a909c;
  font-size: 0.625rem;
  font-style: normal;
}

.analytics-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.analytics-platforms article {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #252b34;
  border-radius: 15px;
  background: #0e1216;
}

.analytics-platforms div {
  display: flex;
  flex-direction: column;
}

.analytics-platforms small {
  color: #7c838e;
  font-size: 0.625rem;
}

.analytics-platforms b {
  font-size: 1.35rem;
}

.analytics-platforms em {
  color: #a78bfa;
  font-size: 0.625rem;
  font-style: normal;
}

.analytics-platforms > article > i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--w);
  height: 3px;
  background: #a78bfa;
}

.instagram-analytics-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #34294b;
  border-radius: 14px;
  background: #171222;
}

.instagram-analytics-state div {
  display: grid;
  gap: 3px;
}

.instagram-analytics-state b {
  font-size: 0.75rem;
}

.instagram-analytics-state span {
  color: #a7acb5;
  font-size: 0.6875rem;
}

.instagram-analytics-state.success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.instagram-analytics-state.warning {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.08);
}

.instagram-analytics-content {
  display: grid;
  gap: 16px;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

.instagram-analytics-content.is-disabled {
  filter: grayscale(1);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.analytics-platforms.instagram-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-platforms.instagram-kpis article {
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 17px;
}

.analytics-platforms.instagram-kpis b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-panel-head > div {
  display: grid;
  gap: 3px;
}

.analytics-panel-head small,
.analytics-chart-empty {
  color: #7c838e;
  font-size: 0.625rem;
}

.analytics-chart-panel .metric-tabs {
  padding: 0 25px;
}

.metric-tabs {
  display: flex;
  gap: 4px;
}

.metric-tabs button {
  padding: 6px 9px;
  border-radius: 7px;
  color: #717884;
  font-size: 0.625rem;
}

.metric-tabs button.active {
  color: #a78bfa;
  background: #211936;
}

.analytics-big-chart {
  position: relative;
  height: 300px;
  padding: 25px;
}

.chart-bars-30 {
  height: 240px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 1px solid #282e37;
  background: repeating-linear-gradient(
    to bottom,
    #222831 0 1px,
    transparent 1px 60px
  );
}

.chart-bars-30 span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#a78bfa, #574287);
  transform-origin: bottom;
  animation: growBar 0.8s ease both;
}

.chart-bars-30 span.unavailable {
  height: 2px;
  background: #4c515a;
  animation: none;
}

.analytics-chart-empty {
  position: absolute;
  inset: 50% 25px auto;
  margin: 0;
  text-align: center;
  transform: translateY(-50%);
}

.analytics-chart-empty[hidden] {
  display: none;
}

.instagram-metric-rows span {
  grid-template-columns: 1fr auto;
}

.instagram-metric-rows em.unavailable {
  color: #8a909c;
}

.metric-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.metric-rows span {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid #222831;
}

.metric-rows span:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric-rows b {
  font-size: 0.7rem;
}

.metric-rows em {
  font-size: 0.7rem;
  font-style: normal;
}

.metric-rows i {
  font-size: 0.625rem;
  font-style: normal;
}

.metric-rows .up {
  color: #6dd4ae;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sample-size {
  color: #68707b;
  font-size: 0.625rem;
}

.gender-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 25px;
}

.gender-donut.large {
  width: 180px;
}

.legend-stack {
  display: grid;
  gap: 13px;
}

.legend-stack span {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #8d939e;
  font-size: 0.66rem;
}

.legend-stack i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-stack .women {
  background: #a78bfa;
}

.legend-stack .men {
  background: #5b4a91;
}

.legend-stack .other {
  background: #2b2f38;
}

.legend-stack b {
  color: #e3e4e7;
}

.age-chart {
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 14px;
  padding: 30px 30px 22px;
}

.age-chart span {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  gap: 7px;
  text-align: center;
}

.age-chart i {
  width: 55px;
  height: var(--h);
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(#a78bfa, #4c3a78);
}

.age-chart b,
.age-chart em {
  color: #7f8691;
  font-size: 0.625rem;
  font-style: normal;
}

.country-list {
  display: grid;
  padding: 12px 22px 22px;
}

.country-list span {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
}

.country-list i {
  font-style: normal;
}

.country-list b {
  font-size: 0.7rem;
}

.country-list em {
  color: #a78bfa;
  font-size: 0.65rem;
  font-style: normal;
}

.country-list u {
  position: absolute;
  left: 37px;
  right: 0;
  bottom: 4px;
  height: 3px;
  border-radius: 99px;
  background: #222831;
  text-decoration: none;
}

.country-list u::after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  background: #a78bfa;
}

.activity-heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  padding: 24px;
}

.activity-heatmap i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #201b2e;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 24px 20px;
  color: #656b76;
  font-size: 0.625rem;
}

.heatmap-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #282036;
}

.heatmap-legend i:nth-of-type(2) {
  background: #463668;
}

.heatmap-legend i:nth-of-type(3) {
  background: #7459b3;
}

.heatmap-legend i:nth-of-type(4) {
  background: #a78bfa;
}

.interest-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 34px;
}

.interest-cloud span {
  padding: calc(7px + var(--s) * 4px) calc(12px + var(--s) * 6px);
  border: 1px solid #332a49;
  border-radius: 99px;
  color: color-mix(in srgb, #a78bfa calc(var(--s) * 100%), #7a808b);
  background: #15111e;
  font-size: calc(0.625rem + var(--s) * 0.24rem);
}

.collab-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.collab-pipeline article {
  padding: 18px;
  border: 1px solid #252b34;
  border-radius: 14px;
  background: #0e1216;
}

.collab-pipeline small {
  color: #777e89;
  font-size: 0.625rem;
}

.collab-pipeline b {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
}

.collab-list {
  display: grid;
  gap: 12px;
}

.campaign-load-status,
.campaign-empty {
  padding: 18px;
  border: 1px solid #2d2738;
  border-radius: 14px;
  color: #aaa4b3;
  background: #121017;
  font-size: 0.78rem;
  line-height: 1.55;
}

.campaign-load-status.error {
  border-color: rgba(255, 90, 95, 0.38);
  color: #ffb4b7;
  background: rgba(255, 90, 95, 0.08);
}

.campaign-section {
  display: grid;
  gap: 12px;
}

.campaign-section-head {
  align-items: end;
  padding-bottom: 2px;
}

.campaign-section-head h2 {
  margin-top: 4px;
  font-size: 1rem;
}

.campaign-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(360px, 1.8fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #252b34;
  border-radius: 15px;
  background: #0e1216;
}

.campaign-card-heading {
  min-width: 0;
}

.campaign-platform,
.campaign-join-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(168, 85, 247, 0.38);
  border-radius: 999px;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.1);
  font-size: 0.625rem;
  font-weight: 750;
}

.campaign-card h3 {
  margin-top: 8px;
  font-size: 0.9rem;
}

.campaign-card p {
  margin-top: 5px;
  color: #8a8392;
  font-size: 0.72rem;
  line-height: 1.5;
}

.campaign-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px 16px;
}

.campaign-meta span {
  min-width: 0;
}

.campaign-meta small,
.campaign-meta b {
  display: block;
}

.campaign-meta small {
  color: #727986;
  font-size: 0.625rem;
}

.campaign-meta b {
  margin-top: 3px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.campaign-card-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.campaign-join-button {
  min-width: 154px;
}

.campaign-join-status.joined {
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
}

.reel-submission-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #252b34;
}

.reel-submission-head {
  display: grid;
  gap: 4px;
}

.reel-submission-head h4 {
  font-size: 0.78rem;
}

.reel-submission-head p,
.reel-submission-empty {
  margin: 0;
  color: #8a8392;
  font-size: 0.68rem;
  line-height: 1.5;
}

.reel-submission-list {
  display: grid;
  gap: 8px;
}

.reel-submission-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid #292f39;
  border-radius: 11px;
  background: #12171d;
}

.reel-submission-item a {
  min-width: 0;
  color: #d8b4fe;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.reel-submission-item span {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
}

.reel-submission-item small {
  color: #777e89;
  font-size: 0.625rem;
}

.reel-submission-status {
  color: #86efac;
  font-size: 0.68rem;
}

.reel-metric-grid {
  display: grid !important;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch !important;
}

.reel-metric-grid > span {
  display: grid;
  align-items: start;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #292f39;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.reel-metric-grid > span.unavailable strong {
  color: #8a8392;
  font-weight: 600;
}

.reel-metric-grid strong {
  color: #f8f7fa;
  font-size: 0.72rem;
}

.reel-last-sync {
  grid-column: 1 / -1;
}

.reel-sync-button {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0;
  border: 0;
  color: #d8b4fe;
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.reel-sync-button:hover,
.reel-sync-button:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.reel-sync-button:disabled {
  color: #8a8392;
  cursor: wait;
  text-decoration: none;
}

.reel-metric-history {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
}

.reel-metric-history > small {
  color: #aaa4b3;
  font-weight: 700;
}

.reel-metric-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 58px;
  padding: 8px;
  border: 1px solid #292f39;
  border-radius: 8px;
  overflow: hidden;
}

.reel-metric-chart i {
  flex: 1 1 0;
  min-width: 3px;
  max-width: 18px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #a855f7, #6d28d9);
}

.reel-metric-chart-empty {
  margin: auto;
  color: #8a8392;
  font-size: 0.66rem;
}

.reel-submission-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
}

.reel-submission-form label {
  grid-column: 1 / -1;
  color: #c7c1ce;
  font-size: 0.68rem;
  font-weight: 700;
}

.reel-submission-form input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #343b47;
  border-radius: 10px;
  outline: none;
  color: #f8f7fa;
  background: #12171d;
  font: inherit;
  font-size: 0.72rem;
}

.reel-submission-form input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.13);
}

.reel-submission-feedback {
  grid-column: 1 / -1;
  min-height: 1.1em;
  margin: 0;
  color: #aaa4b3;
  font-size: 0.68rem;
}

.reel-submission-feedback.success {
  color: #86efac;
}

.reel-submission-feedback.warning {
  color: #fbbf24;
}

.reel-submission-feedback.error {
  color: #ffb4b7;
}

.collab-card {
  display: grid;
  grid-template-columns: 52px 1.2fr 0.8fr auto;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid #252b34;
  border-radius: 15px;
  background: #0e1216;
}

.brand-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #100b1d;
  background: linear-gradient(135deg, #d8b4fe, #a78bfa);
  font-weight: 800;
}

.collab-card div {
  display: flex;
  flex-direction: column;
}

.collab-card small {
  color: #727986;
  font-size: 0.625rem;
}

.collab-card h3 {
  font-size: 0.82rem;
}

.collab-card p {
  color: #7d8490;
  font-size: 0.625rem;
}

.collab-card strong {
  font-size: 0.8rem;
}

.collab-card .collab-actions {
  display: flex;
  flex-direction: row;
  gap: 7px;
}

.content-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.content-summary span {
  padding: 18px;
  border: 1px solid #252b34;
  border-radius: 14px;
  background: #0e1216;
}

.content-summary small {
  color: #747b87;
  font-size: 0.625rem;
}

.content-summary b {
  display: block;
  margin-top: 4px;
}

.top-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.top-content-grid article {
  overflow: hidden;
  border: 1px solid #252b34;
  border-radius: 16px;
  background: #0e1216;
}

.content-cover {
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
}

.cover-a {
  background: linear-gradient(145deg, #8c72dd, #382b62);
}

.cover-b {
  background: linear-gradient(145deg, #dc739d, #5b2641);
}

.cover-c {
  background: linear-gradient(145deg, #5995aa, #203f4a);
}

.content-cover > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(5px);
}

.content-cover em {
  position: absolute;
  right: 14px;
  top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-style: normal;
}

.top-content-grid article > div:last-child {
  padding: 17px;
}

.top-content-grid small {
  color: #a78bfa;
  font-size: 0.625rem;
}

.top-content-grid h3 {
  margin: 5px 0 9px;
  font-size: 0.8rem;
}

.top-content-grid p {
  color: #777e89;
  font-size: 0.625rem;
}

.top-content-grid p b {
  color: #e4e5e8;
}

.format-table {
  display: grid;
  padding: 8px 20px 20px;
}

.format-table span {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #222831;
}

.format-table b,
.format-table strong {
  font-size: 0.68rem;
}

.format-table em {
  color: #747b86;
  font-size: 0.625rem;
  font-style: normal;
}

.format-table i {
  color: #a78bfa;
  font-size: 0.625rem;
  font-style: normal;
}

.media-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
}

.media-preview {
  overflow: hidden;
  border: 1px solid #2b303a;
  border-radius: 18px;
  background: #0e1216;
}

.media-cover {
  height: 180px;
  background:
    radial-gradient(
      circle at 72% 18%,
      rgba(255, 255, 255, 0.14),
      transparent 30%
    ),
    linear-gradient(120deg, #211936, #6e54b8);
}

.media-identity {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 28px 20px;
}

.media-identity .ava {
  width: 80px;
  height: 80px;
  margin-top: -38px;
  border: 4px solid #0e1216;
  font-size: 1.2rem;
}

.media-identity h2 {
  font-size: 1.35rem;
}

.media-identity p {
  color: #7c838e;
  font-size: 0.66rem;
}

.media-identity > i {
  color: #a78bfa;
  font-size: 0.625rem;
  font-style: normal;
}

.media-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 28px;
  padding: 20px 0;
  border-block: 1px solid #262c35;
}

.media-numbers span {
  display: flex;
  flex-direction: column;
}

.media-numbers b {
  font-size: 1.4rem;
}

.media-numbers small {
  color: #717884;
  font-size: 0.625rem;
}

.media-audience {
  padding: 22px 28px 28px;
}

.media-audience h3 {
  font-size: 0.78rem;
}

.media-audience span {
  color: #7d8490;
  font-size: 0.68rem;
}

.media-action-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.media-action-body > p {
  margin-bottom: 8px;
  color: #757c87;
  font-size: 0.7rem;
}

.rate-card {
  display: grid;
  gap: 10px;
  margin-top: 13px;
  padding: 16px;
  border: 1px solid #2a3039;
  border-radius: 12px;
  background: #11151a;
}

.rate-card > small {
  color: #a78bfa;
  font-size: 0.625rem;
  font-weight: 800;
}

.rate-card span {
  display: flex;
  justify-content: space-between;
}

.rate-card b,
.rate-card em {
  font-size: 0.64rem;
}

.rate-card em {
  color: #b5a2ec;
  font-style: normal;
}

.payment-table {
  display: grid;
  padding: 8px 20px 20px;
}

.payment-table span {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 0.7fr auto;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #222831;
}

.payment-table time,
.payment-table em {
  color: #767d88;
  font-size: 0.63rem;
  font-style: normal;
}

.payment-table b,
.payment-table strong {
  font-size: 0.68rem;
}

.payment-table .paid {
  color: #65caa5;
}

.connect-list {
  display: grid;
  padding: 8px 20px 20px;
}

.connect-list > span {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #222831;
}

.connect-list div {
  display: flex;
  flex-direction: column;
}

.connect-list b {
  font-size: 0.7rem;
}

.connect-list small {
  color: #737a85;
  font-size: 0.625rem;
}

.connect-list button {
  padding: 7px 9px;
  border-radius: 8px;
  color: #6fd1ad;
  background: rgba(75, 190, 145, 0.08);
  font-size: 0.625rem;
}

.instagram-notice {
  margin: 14px 20px 0;
  padding: 11px 13px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  font-size: 0.75rem;
  line-height: 1.5;
}

.instagram-notice.error {
  border-color: rgba(255, 90, 95, 0.38);
  color: #ffb4b7;
  background: rgba(255, 90, 95, 0.08);
}

.instagram-notice.warning {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.09);
}

.instagram-notice small {
  display: block;
  margin-top: 3px;
  color: inherit;
  opacity: 0.78;
}

.connect-list .instagram-account-copy {
  min-width: 0;
  gap: 3px;
}

.instagram-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.instagram-status {
  padding: 3px 7px;
  border: 1px solid #34303d;
  border-radius: 999px;
  color: #a9a4b1;
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.instagram-status.connected {
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
}

.instagram-status.reauth {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.09);
}

.instagram-status.limited {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.09);
}

.instagram-expiry {
  opacity: 0.82;
}

body.influencer-app .connect-list .instagram-account-actions {
  align-items: stretch;
  gap: 6px;
}

body.influencer-app .connect-list .instagram-action,
body.influencer-app .connect-list .instagram-secondary-action {
  min-width: 132px;
  min-height: 36px;
  border: 1px solid rgba(168, 85, 247, 0.42);
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.11);
  font-weight: 700;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

body.influencer-app .connect-list .instagram-secondary-action {
  border: 1px solid rgba(255, 90, 95, 0.3);
  color: #ffb4b7;
  background: transparent;
  font-weight: 700;
}

body.influencer-app .connect-list .instagram-action:hover:not(:disabled) {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.18);
}

body.influencer-app .connect-list .instagram-action.disconnect {
  border-color: rgba(255, 90, 95, 0.34);
  color: #ffb4b7;
  background: rgba(255, 90, 95, 0.08);
}

body.influencer-app .connect-list .instagram-action:focus-visible {
  outline: 3px solid rgba(168, 85, 247, 0.32);
  outline-offset: 3px;
}

body.influencer-app .connect-list .instagram-action:disabled {
  cursor: wait;
  opacity: 0.58;
}

body.instagram-gate-open {
  overflow: hidden;
}

body.influencer-app .app-shell {
  transition:
    filter 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}

body.instagram-gate-open .app-shell {
  pointer-events: none;
  filter: blur(7px);
  opacity: 0.38;
  transform: scale(0.995);
  user-select: none;
}

.instagram-gate[hidden] {
  display: none;
}

.instagram-gate {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(5, 4, 10, 0.64);
  animation: instagramGateFade 0.2s ease both;
}

.instagram-gate-dialog {
  width: min(480px, 100%);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid #332c40;
  border-radius: 22px;
  outline: none;
  color: #f8f6ff;
  background: #121017;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  animation: instagramGateEnter 0.24s ease both;
}

.instagram-gate-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  box-shadow: 0 14px 32px rgba(109, 40, 217, 0.3);
}

.instagram-gate-icon svg {
  width: 26px;
  height: 26px;
}

.instagram-gate-dialog h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.instagram-gate-dialog > p {
  margin: 12px 0 0;
  color: #aaa4b3;
  font-size: 0.86rem;
  line-height: 1.65;
}

.instagram-gate-dialog .instagram-gate-error {
  padding: 9px 11px;
  border: 1px solid rgba(255, 90, 95, 0.38);
  border-radius: 9px;
  color: #ffb4b7;
  background: rgba(255, 90, 95, 0.08);
  font-size: 0.76rem;
}

.instagram-gate-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.instagram-gate-actions button {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 750;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.instagram-gate-primary {
  flex: 1;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  box-shadow: 0 12px 26px rgba(109, 40, 217, 0.28);
}

.instagram-gate-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.instagram-gate-secondary {
  color: #d8d3df;
  border-color: #3b3544 !important;
  background: #1c1921;
}

.instagram-gate-actions button:focus-visible {
  outline: 3px solid rgba(168, 85, 247, 0.48);
  outline-offset: 3px;
}

.instagram-gate-actions button:disabled {
  cursor: wait;
  opacity: 0.58;
}

@keyframes instagramGateFade {
  from {
    opacity: 0;
  }
}

@keyframes instagramGateEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 1200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes infViewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .stats-row.influencer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inf-grid-main,
  .inf-grid-bottom,
  .audience-grid,
  .media-layout {
    grid-template-columns: 1fr;
  }
  .top-content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .analytics-platforms {
    grid-template-columns: 1fr;
  }
  .analytics-platforms.instagram-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .collab-card {
    grid-template-columns: 48px 1fr auto;
  }
  .campaign-card {
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.5fr);
  }
  .campaign-card-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .collab-card > div:nth-child(3) {
    display: none;
  }
}

@media (max-width: 700px) {
  .influencer-topbar .period-select {
    display: none;
  }
  .creator-welcome {
    align-items: flex-start;
    flex-direction: column;
  }
  .sync-state {
    width: 100%;
  }
  .inf-grid-main,
  .inf-grid-bottom {
    grid-template-columns: 1fr;
  }
  .audience-snapshot {
    grid-template-columns: 1fr;
  }
  .stats-row.influencer-stats,
  .collab-pipeline,
  .content-summary {
    grid-template-columns: 1fr 1fr;
  }
  .top-content-grid {
    grid-template-columns: 1fr;
  }
  .metric-rows {
    grid-template-columns: 1fr;
  }
  .analytics-platforms.instagram-kpis {
    grid-template-columns: 1fr;
  }
  .instagram-analytics-state,
  .analytics-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .instagram-analytics-state button,
  .analytics-panel-head > button {
    width: 100%;
  }
  .analytics-chart-panel .metric-tabs {
    flex-wrap: wrap;
    padding-inline: 18px;
  }
  .analytics-big-chart {
    padding-inline: 18px;
  }
  .chart-bars-30 {
    gap: 4px;
  }
  .overview-chart-bars {
    gap: 4px;
  }
  .metric-rows span:nth-last-child(2) {
    border-bottom: 1px solid #222831;
  }
  .gender-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .age-chart i {
    width: 38px;
  }
  .collab-card {
    grid-template-columns: 44px 1fr;
  }
  .campaign-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
  .campaign-meta {
    grid-template-columns: 1fr 1fr;
  }
  .campaign-card-action {
    grid-column: auto;
  }
  .campaign-join-button {
    width: 100%;
  }
  .reel-submission-form,
  .reel-submission-item {
    grid-template-columns: 1fr;
  }
  .reel-submission-item span {
    align-items: flex-start;
  }
  .reel-submission-form .btn {
    width: 100%;
  }
  .reel-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collab-card > strong {
    display: none;
  }
  .collab-card .collab-actions {
    grid-column: 1/-1;
  }
  .format-table span {
    grid-template-columns: 1fr 1fr;
  }
  .format-table strong,
  .format-table i {
    text-align: right;
  }
  .media-identity {
    grid-template-columns: 64px 1fr;
    padding-inline: 18px;
  }
  .media-identity .ava {
    width: 64px;
    height: 64px;
  }
  .media-identity > i {
    grid-column: 1/-1;
  }
  .media-numbers {
    margin-inline: 18px;
  }
  .payment-table span {
    grid-template-columns: 1fr auto;
  }
  .payment-table b {
    grid-column: 1/-1;
  }
  .payment-table em {
    display: none;
  }
  .connect-list > span.instagram-connection {
    grid-template-columns: 42px 1fr;
  }
  body.influencer-app .connect-list .instagram-account-actions {
    grid-column: 1 / -1;
    width: 100%;
  }
  .instagram-gate {
    padding: 14px;
  }
  .instagram-gate-dialog {
    padding: 24px 20px 20px;
    border-radius: 20px;
  }
  .instagram-gate-actions {
    flex-direction: column;
  }
  .instagram-gate-actions button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .stats-row.influencer-stats {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] body.influencer-app .instagram-notice {
  color: #15803d;
  background: #f0fdf4;
}

html[data-theme="light"] body.influencer-app .campaign-load-status,
html[data-theme="light"] body.influencer-app .campaign-empty,
html[data-theme="light"] body.influencer-app .campaign-card {
  border-color: #e6ddf8;
  color: #332d3d;
  background: #fff;
}

html[data-theme="light"] body.influencer-app .campaign-load-status.error {
  border-color: rgba(255, 90, 95, 0.38);
  color: #b4232b;
  background: #fff1f2;
}

html[data-theme="light"] body.influencer-app .campaign-card p,
html[data-theme="light"] body.influencer-app .campaign-meta small {
  color: #6b6474;
}

html[data-theme="light"] body.influencer-app .campaign-platform {
  color: #6d28d9;
  background: #f7f4ff;
}

html[data-theme="light"] body.influencer-app .campaign-join-status.joined {
  color: #15803d;
  background: #f0fdf4;
}

html[data-theme="light"] body.influencer-app .reel-submission-panel {
  border-color: #e6ddf8;
}

html[data-theme="light"] body.influencer-app .reel-submission-item,
html[data-theme="light"] body.influencer-app .reel-submission-form input {
  border-color: #e5e3ec;
  color: #332d3d;
  background: #faf9fc;
}

html[data-theme="light"] body.influencer-app .reel-metric-grid > span,
html[data-theme="light"] body.influencer-app .reel-metric-chart {
  border-color: #e5e3ec;
  background: #ffffff;
}

html[data-theme="light"] body.influencer-app .reel-metric-grid strong {
  color: #332d3d;
}

html[data-theme="light"] body.influencer-app .reel-sync-button {
  color: #6d28d9;
}

html[data-theme="light"] body.influencer-app .reel-submission-head p,
html[data-theme="light"] body.influencer-app .reel-submission-empty,
html[data-theme="light"] body.influencer-app .reel-submission-item small {
  color: #6b6474;
}

html[data-theme="light"] body.influencer-app .reel-submission-form label {
  color: #403849;
}

html[data-theme="light"] body.influencer-app .reel-submission-status,
html[data-theme="light"] body.influencer-app .reel-submission-feedback.success {
  color: #15803d;
}

html[data-theme="light"] body.influencer-app .reel-submission-feedback.error {
  color: #b4232b;
}

html[data-theme="light"] body.influencer-app .instagram-notice.error {
  color: #b4232b;
  background: #fff1f2;
}

html[data-theme="light"] body.influencer-app .instagram-notice.warning {
  color: #a16207;
  background: #fffbeb;
}

html[data-theme="light"] body.influencer-app .instagram-status {
  border-color: #ded8e8;
  color: #6b6474;
}

html[data-theme="light"] body.influencer-app .instagram-status.connected {
  border-color: rgba(34, 197, 94, 0.35);
  color: #15803d;
  background: #f0fdf4;
}

html[data-theme="light"] body.influencer-app .instagram-status.reauth {
  border-color: rgba(245, 158, 11, 0.4);
  color: #a16207;
  background: #fffbeb;
}

html[data-theme="light"] body.influencer-app .instagram-status.limited {
  border-color: rgba(245, 158, 11, 0.4);
  color: #a16207;
  background: #fffbeb;
}

html[data-theme="light"]
  body.influencer-app
  .connect-list
  .instagram-secondary-action {
  color: #b4232b;
  background: transparent;
}

html[data-theme="light"] body.influencer-app .connect-list .instagram-action {
  color: #6d28d9;
  background: #f7f4ff;
}

html[data-theme="light"]
  body.influencer-app
  .connect-list
  .instagram-action.disconnect {
  color: #b4232b;
  background: #fff1f2;
}

html[data-theme="light"] body.influencer-app .instagram-gate {
  background: rgba(21, 15, 32, 0.48);
}

html[data-theme="light"] body.influencer-app .instagram-gate-dialog {
  color: #0b0b12;
  border-color: #e6ddf8;
  background: #fff;
  box-shadow: 0 30px 90px rgba(41, 24, 69, 0.24);
}

html[data-theme="light"] body.influencer-app .instagram-gate-dialog > p {
  color: #665f70;
}

html[data-theme="light"] body.influencer-app .instagram-gate-secondary {
  color: #332d3d;
  border-color: #e6ddf8 !important;
  background: #f7f4ff;
}

html[data-theme="light"]
  body.influencer-app
  .instagram-gate-dialog
  .instagram-gate-error {
  color: #b4232b;
  background: #fff1f2;
}

@media (prefers-reduced-motion: reduce) {
  body.influencer-app .app-shell,
  .instagram-gate-actions button {
    transition: none;
  }
  .instagram-gate,
  .instagram-gate-dialog {
    animation: none;
  }
}
