.socialdash-wrap {
  --sd-bg: #060816;
  --sd-panel: #0f1630;
  --sd-card: #111b3f;
  --sd-primary: #55a7ff;
  --sd-accent: #946cff;
  --sd-highlight: #24d6b0;
  --sd-text: #f4f7ff;
  --sd-muted: #b8c3ea;
  --sd-border: #243468;
  --sd-success: #4ade80;
  --sd-danger: #ff6b8a;
  --sd-warning: #fbbf24;
  color: var(--sd-text);
  font-family: inherit;
}

.socialdash-wrap * {
  box-sizing: border-box;
}

.socialdash-shell {
  background:
    radial-gradient(circle at top left, rgba(85,167,255,.16), transparent 30%),
    radial-gradient(circle at top right, rgba(148,108,255,.18), transparent 35%),
    linear-gradient(180deg, var(--sd-bg), #050711 100%);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.socialdash-panel {
  background: linear-gradient(180deg, rgba(17,27,63,.92), rgba(10,16,36,.96));
  border: 1px solid var(--sd-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: none;
  content-visibility: auto;
  contain-intrinsic-size: 1px 240px;
}

.socialdash-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  align-items: stretch;
}

.socialdash-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.socialdash-hero-badge,
.socialdash-section-kicker,
.socialdash-report-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  width: fit-content;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sd-text);
  background: rgba(85,167,255,.12);
  border: 1px solid rgba(85,167,255,.28);
}

.socialdash-copy h2,
.socialdash-report h3 {
  margin: 0;
  line-height: 1.04;
}

.socialdash-copy h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.socialdash-subtitle,
.socialdash-helper,
.socialdash-note,
.socialdash-empty,
.socialdash-metric-sub,
.socialdash-overall-meta small {
  color: var(--sd-muted);
}

.socialdash-subtitle {
  font-size: 17px;
  margin: 0;
}

.socialdash-helper,
.socialdash-note,
.socialdash-loading,
.socialdash-metric-sub,
.socialdash-report-meta span,
.socialdash-signal-label,
.socialdash-metric-label,
.socialdash-compare-top span,
.socialdash-heat-row span,
.socialdash-table-head {
  font-size: 13px;
}

.socialdash-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.socialdash-form label,
.socialdash-section-title,
.socialdash-report-meta span,
.socialdash-signal-label,
.socialdash-table-head,
.socialdash-compare-top span,
.socialdash-heat-row span {
  color: var(--sd-muted);
}

.socialdash-form input {
  width: 100%;
  min-height: 56px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--sd-text);
  border-radius: 18px;
  padding: 0 18px;
  font-size: 16px;
  outline: none;
  transition: .2s ease;
}

.socialdash-form input:focus {
  border-color: var(--sd-primary);
  box-shadow: 0 0 0 4px rgba(85,167,255,.12);
}

.socialdash-form button,
.socialdash-tabs button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.socialdash-form button {
  min-height: 56px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--sd-primary), var(--sd-accent));
  box-shadow: 0 18px 32px rgba(85,167,255,.18);
}

.socialdash-form.is-loading button {
  opacity: .72;
  pointer-events: none;
}

.socialdash-loading {
  color: var(--sd-highlight);
}

.socialdash-results {
  margin-top: 18px;
}

.socialdash-report {
  overflow: hidden;
}

.socialdash-report-top {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
}

.socialdash-report-main h3 {
  font-size: clamp(26px, 4vw, 38px);
  margin-top: 12px;
}

.socialdash-report-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.socialdash-report-meta,
.socialdash-signal-card,
.socialdash-compare-card,
.socialdash-metric-card,
.socialdash-overall-card,
.socialdash-pair-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
}

.socialdash-report-meta {
  padding: 14px 16px;
}

.socialdash-report-meta strong,
.socialdash-signal-value,
.socialdash-overall-meta strong,
.socialdash-compare-top strong,
.socialdash-heat-row strong,
.socialdash-table-row,
.socialdash-verdict-big,
.socialdash-verdict-sub,
.socialdash-insight-item,
.socialdash-pill,
.socialdash-list li,
.socialdash-badge {
  color: var(--sd-text);
}

.socialdash-report-meta strong {
  display: block;
  margin-top: 6px;
}

.socialdash-overall-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.socialdash-overall-ring,
.socialdash-metric-ring {
  --value: 50;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--sd-primary) calc(var(--value) * 1%), var(--sd-accent) calc(var(--value) * 1%), rgba(255,255,255,.08) 0);
}

.socialdash-overall-ring::before,
.socialdash-metric-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(8,13,28,.98), rgba(11,17,36,.95));
  border: 1px solid rgba(255,255,255,.06);
}

.socialdash-overall-ring {
  width: 142px;
  height: 142px;
  flex: 0 0 142px;
}

.socialdash-overall-ring span,
.socialdash-metric-ring span {
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.socialdash-overall-ring span {
  font-size: 40px;
}

.socialdash-overall-meta strong {
  display: block;
  font-size: 22px;
  margin-top: 8px;
}

.socialdash-overall-aura {
  margin-top: 8px;
  color: var(--sd-highlight);
  font-size: 14px;
}

.socialdash-tabs {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.socialdash-tabs button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--sd-text);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
}

.socialdash-tabs button.is-active {
  background: linear-gradient(135deg, rgba(85,167,255,.18), rgba(148,108,255,.18));
  border-color: rgba(148,108,255,.5);
}

.socialdash-tab-panel {
  display: none;
}

.socialdash-tab-panel.is-active {
  display: block;
}

.socialdash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.socialdash-signal-grid,
.socialdash-compare-grid,
.socialdash-metrics-grid {
  display: grid;
  gap: 14px;
}

.socialdash-signal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.socialdash-compare-grid,
.socialdash-metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.socialdash-metrics-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.socialdash-signal-card,
.socialdash-compare-card,
.socialdash-metric-card {
  padding: 16px;
}

.socialdash-signal-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 10px;
}

.socialdash-metric-card {
  display: block;
}

.socialdash-metric-card--compact {
  padding: 14px;
}

.socialdash-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.socialdash-metric-head strong {
  font-size: 18px;
  color: var(--sd-text);
}

.socialdash-metric-ring {
  display: none;
}

.socialdash-metric-label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 0;
}

.socialdash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.socialdash-section-kicker {
  margin-bottom: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--sd-muted);
}

.socialdash-section-title {
  font-size: 20px;
  font-weight: 800;
}

.socialdash-verdict-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.socialdash-verdict-big {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.05;
}

.socialdash-verdict-sub {
  margin-top: 10px;
  font-size: 15px;
  color: var(--sd-highlight);
}

.socialdash-list {
  margin: 0;
  padding-left: 20px;
}

.socialdash-list li {
  margin: 0 0 12px;
  line-height: 1.45;
}

.socialdash-list.is-positive li::marker {
  color: var(--sd-success);
}

.socialdash-list.is-negative li::marker {
  color: var(--sd-danger);
}

.socialdash-badges,
.socialdash-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socialdash-badge,
.socialdash-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(85,167,255,.1);
  border: 1px solid rgba(85,167,255,.24);
  font-size: 14px;
}

.socialdash-pill {
  background: rgba(36,214,176,.1);
  border-color: rgba(36,214,176,.24);
}

.socialdash-insights {
  display: grid;
  gap: 12px;
}

.socialdash-insight-item {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  padding: 16px;
  line-height: 1.5;
}

.socialdash-progress {
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: 12px;
}

.socialdash-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sd-primary), var(--sd-accent));
}

.socialdash-progress--metric {
  margin-top: 10px;
  height: 9px;
}

.socialdash-progress--heat span {
  background: linear-gradient(90deg, var(--sd-highlight), var(--sd-primary));
}

.socialdash-compare-top,
.socialdash-heat-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.socialdash-compare-top {
  grid-template-columns: 1fr auto;
}

.socialdash-heatmap {
  display: grid;
  gap: 14px;
}

.socialdash-heat-row .socialdash-progress {
  margin-top: 0;
}

.socialdash-recent {
  margin-top: 18px;
}

.socialdash-results,
.socialdash-recent {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.socialdash-table {
  display: grid;
  gap: 10px;
}

.socialdash-table-head,
.socialdash-table-row {
  display: grid;
  grid-template-columns: 1.1fr .95fr .6fr .4fr 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.socialdash-table-row {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.socialdash-table-row .is-score {
  font-weight: 800;
  color: var(--sd-highlight);
}

.socialdash-note {
  text-align: center;
  padding: 18px 6px 4px;
}

@media (max-width: 1180px) {
  .socialdash-report-top,
  .socialdash-hero,
  .socialdash-grid-2 {
    grid-template-columns: 1fr;
  }

  .socialdash-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .socialdash-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .socialdash-shell {
    padding: 16px;
    border-radius: 24px;
  }

  .socialdash-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .socialdash-report-meta-grid,
  .socialdash-compare-grid,
  .socialdash-metrics-grid,
  .socialdash-signal-grid,
  .socialdash-table-head,
  .socialdash-table-row {
    grid-template-columns: 1fr;
  }

  .socialdash-overall-card {
    flex-direction: column;
    text-align: center;
  }

  .socialdash-metric-card {
    align-items: center;
  }
}
