:root {
  color-scheme: dark;
  --bg: #030507;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --soft: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #18c8ff;
  --green: #20e0a1;
  --pink: #ff3d8f;
  --gold: #ffbe45;
}

* {
  box-sizing: border-box;
}

html {
  background: #030507;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(115deg, rgba(24, 200, 255, 0.16) 0%, transparent 31%),
    linear-gradient(250deg, rgba(255, 61, 143, 0.14) 0%, transparent 28%),
    linear-gradient(180deg, #071018 0%, #030507 52%, #010203 100%);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.virals-topbar {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(38vw, 250px);
  filter: drop-shadow(0 0 24px rgba(24, 200, 255, 0.2));
}

.topbar-menu,
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-menu {
  display: flex;
}

.topbar-menu a,
.topbar-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: #ffffff;
  border-radius: 999px;
}

.virals-mobile-dock {
  display: none;
}

.virals-shell {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) 0 56px;
}

.hero-workspace {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: auto;
  display: grid;
  gap: clamp(20px, 4vw, 34px);
  justify-items: center;
  background:
    linear-gradient(150deg, rgba(24, 200, 255, 0.16), rgba(255, 61, 143, 0.08) 44%, rgba(32, 224, 161, 0.12)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.36);
}

.hero-workspace::before {
  content: none;
}

.hero-workspace::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold), var(--green));
}

.hero-head {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: clamp(12px, 3vw, 24px);
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-copy {
  position: relative;
  max-width: 760px;
  text-align: center;
}

.hero-asset {
  width: 100%;
  max-width: min(520px, 100%);
  filter:
    drop-shadow(0 0 28px rgba(24, 200, 255, 0.18))
    drop-shadow(0 26px 52px rgba(0, 0, 0, 0.38));
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: #98e9ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 750;
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

h3 {
  font-size: 1rem;
}

.hero-lede {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 700;
  line-height: 1.5;
}

.construction-note {
  width: min(860px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 190, 69, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(255, 190, 69, 0.12), rgba(24, 200, 255, 0.07)),
    rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.construction-note strong {
  color: #ffdc8a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.construction-note span {
  color: var(--muted);
}

.analyzer-form,
.compare-form {
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  min-width: 0;
  background: rgba(3, 5, 7, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(18px);
}

.mode-switch {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  justify-self: center;
}

.mode-button {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 5, 7, 0.72);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 900;
}

.mode-button.is-active {
  border-color: rgba(152, 233, 255, 0.78);
  background: rgba(3, 5, 7, 0.72);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(24, 200, 255, 0.18);
}

.mode-panel,
.mode-results {
  display: none;
}

.mode-panel.is-active {
  display: grid;
  justify-items: center;
  width: 100%;
}

.mode-results.is-active {
  display: block;
}

.is-hidden {
  display: none !important;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 12px;
}

.field-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  outline: none;
}

input,
select {
  min-height: 54px;
}

textarea {
  min-height: 118px;
  padding-top: 14px;
  resize: vertical;
  line-height: 1.5;
}

select {
  color: #ffffff;
  appearance: none;
}

option {
  color: #081018;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(24, 200, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(24, 200, 255, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  color: #041016;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(24, 200, 255, 0.18);
}

button:hover {
  transform: translateY(-1px);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

.analysis-status {
  min-height: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  font-weight: 700;
}

.output-panel,
.library-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.output-panel::after,
.library-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.section-title-row p,
.empty-state,
.mini-copy,
.library-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-top: 18px;
}

.output-panel {
  padding: 22px;
}

.output-panel-large {
  grid-row: span 2;
}

.source-panel {
  grid-column: 1 / -1;
}

.product-panel {
  grid-column: 1 / -1;
}

.panel-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.framework-stack,
.content-stack,
.product-stack {
  display: grid;
  gap: 12px;
}

.product-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(150deg, rgba(24, 200, 255, 0.1), rgba(32, 224, 161, 0.06)),
    rgba(0, 0, 0, 0.2);
}

.product-hero-card h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.1;
}

.product-hero-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.product-confidence {
  min-width: 112px;
  border: 1px solid rgba(152, 233, 255, 0.24);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  background: rgba(24, 200, 255, 0.08);
}

.product-confidence span {
  display: block;
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-confidence strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 0.95rem;
}

.product-meta-grid,
.product-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-meta-grid a {
  color: #98e9ff;
  text-decoration: none;
}

.insight-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.insight-card h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pill-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}

.generated-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.generated-list li {
  border-left: 3px solid var(--cyan);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.script-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.source-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 18px;
  align-items: start;
}

.source-media {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.source-media img,
.source-media video,
.source-media iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.source-media video,
.insight-thumb img {
  object-fit: cover;
}

.source-media video,
.source-media iframe {
  position: absolute;
  inset: 0;
  border: 0;
  opacity: 0;
  transition: opacity 160ms ease;
}

.source-media.has-video-preview,
.source-media.has-embed-preview {
  cursor: pointer;
}

.source-media.is-previewing video,
.source-media.is-embed-previewing iframe {
  opacity: 1;
}

.source-details {
  display: grid;
  gap: 12px;
  align-content: start;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.metric span {
  display: block;
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 1rem;
}

.compare-section {
  margin-top: 18px;
}

.compare-output-grid {
  margin-top: 14px;
}

.source-mini-list {
  display: grid;
  gap: 10px;
}

.source-mini {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.source-mini img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.source-mini p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.script-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.small-button {
  min-height: 36px;
  width: fit-content;
  padding: 0 12px;
  font-size: 0.82rem;
  box-shadow: none;
}

.transcript-action {
  min-height: 42px;
  width: fit-content;
  padding: 0 16px;
}

.library-section {
  margin-top: 42px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}

.section-title-row > p {
  max-width: 420px;
  text-align: right;
}

.library-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.library-card {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 18px;
}

.library-card h3 {
  margin-bottom: 8px;
}

.library-meta {
  font-size: 0.88rem;
}

.empty-library {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
}

.virals-access-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(3, 8, 15, 0.86), rgba(3, 8, 15, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(24, 200, 255, 0.2), transparent 36%),
    radial-gradient(circle at 82% 24%, rgba(255, 61, 143, 0.14), transparent 34%),
    #030507;
  backdrop-filter: blur(12px);
}

.transcript-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(3, 8, 15, 0.82), rgba(3, 8, 15, 0.92)),
    radial-gradient(circle at 22% 18%, rgba(24, 200, 255, 0.2), transparent 36%),
    radial-gradient(circle at 80% 22%, rgba(255, 61, 143, 0.14), transparent 34%),
    #030507;
  backdrop-filter: blur(12px);
}

.virals-account-modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 24px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(3, 8, 15, 0.82), rgba(3, 8, 15, 0.92)),
    radial-gradient(circle at 18% 18%, rgba(24, 200, 255, 0.2), transparent 36%),
    radial-gradient(circle at 82% 24%, rgba(255, 61, 143, 0.14), transparent 34%),
    #030507;
  backdrop-filter: blur(12px);
}

.virals-account-card {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(150deg, rgba(24, 200, 255, 0.13), rgba(255, 61, 143, 0.07) 48%, rgba(32, 224, 161, 0.1)),
    rgba(7, 12, 18, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.virals-account-card h2 {
  margin: 0;
  padding-right: 84px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.virals-account-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.virals-account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.virals-account-stat {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.065);
}

.virals-account-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.virals-account-stat strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.virals-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.virals-account-actions .virals-access-secondary {
  min-height: 46px;
}

.virals-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.virals-plan-card {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 16px;
  background: rgba(3, 5, 7, 0.42);
}

.virals-plan-card.is-current {
  border-color: rgba(24, 200, 255, 0.44);
  background: linear-gradient(150deg, rgba(24, 200, 255, 0.12), rgba(32, 224, 161, 0.08)), rgba(3, 5, 7, 0.5);
}

.virals-plan-card span {
  width: fit-content;
  border: 1px solid rgba(152, 233, 255, 0.3);
  border-radius: 999px;
  padding: 5px 9px;
  color: #98e9ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.virals-plan-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.virals-plan-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.virals-plan-card button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.virals-plan-card.is-current button {
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  color: #041016;
}

.virals-settings-panel,
.virals-admin-application {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 16px;
  background: rgba(3, 5, 7, 0.42);
}

.virals-settings-panel h3,
.virals-admin-application p {
  margin: 0;
}

.virals-settings-disclosure {
  align-content: start;
}

.virals-settings-disclosure summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.virals-settings-disclosure summary::-webkit-details-marker {
  display: none;
}

.virals-settings-disclosure summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(152, 233, 255, 0.3);
  border-radius: 8px;
  color: #98e9ff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.virals-settings-disclosure[open] summary::after {
  content: "-";
}

.virals-settings-disclosure summary .panel-kicker {
  margin: 0;
}

.virals-settings-disclosure summary strong {
  grid-column: 1;
  display: block;
  min-width: 0;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.virals-settings-disclosure > :not(summary) {
  margin-top: 12px;
}

.virals-account-modal .status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.virals-account-modal .status.success {
  color: #9ff2c8;
}

.virals-account-modal .status.error {
  color: #ff9aa8;
}

.virals-creator-form {
  display: grid;
  gap: 10px;
}

.virals-creator-invite {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(152, 233, 255, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(24, 200, 255, 0.1), rgba(32, 224, 161, 0.06)), rgba(255, 255, 255, 0.04);
}

.virals-creator-invite h3,
.virals-creator-invite p {
  margin: 0;
}

.virals-creator-invite p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.virals-creator-invite label {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.virals-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.virals-copy-row input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.virals-creator-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.virals-creator-form input,
.virals-creator-form select,
.virals-creator-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.virals-creator-form button,
.virals-admin-application button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.virals-creator-form button {
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  color: #041016;
}

.virals-admin-application span {
  color: var(--muted);
  font-weight: 800;
}

.virals-admin-application-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.virals-admin-application-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.virals-admin-creator-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  object-fit: cover;
}

.virals-admin-profile-link {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.virals-admin-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.virals-admin-profile-stats span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.virals-admin-profile-bio {
  color: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
}

.virals-founding-countdown {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(152, 233, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(24, 200, 255, 0.1), rgba(32, 224, 161, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.virals-founding-countdown > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.virals-founding-countdown span {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.virals-founding-countdown strong {
  color: var(--ink);
  font-weight: 900;
}

.virals-founding-countdown p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.virals-founding-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.virals-founding-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.virals-admin-application button:disabled,
.virals-creator-form option:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.virals-decision-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
}

.virals-decision-preview-modal.is-hidden {
  display: none;
}

.virals-decision-preview-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  display: grid;
  gap: 14px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(150deg, rgba(24, 200, 255, 0.12), rgba(255, 61, 143, 0.07) 48%, rgba(32, 224, 161, 0.08)),
    rgba(7, 12, 18, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.virals-decision-preview-card h2 {
  margin: 0;
  padding-right: 76px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.virals-decision-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 900;
}

.virals-decision-preview-meta {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.virals-decision-preview-meta span {
  color: var(--muted);
  font-weight: 800;
}

.virals-decision-preview-meta strong {
  overflow-wrap: anywhere;
}

#virals-decision-preview-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

#virals-decision-preview-text {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
}

.transcript-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(76vh, 760px);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(150deg, rgba(24, 200, 255, 0.12), rgba(255, 61, 143, 0.07) 48%, rgba(32, 224, 161, 0.08)),
    rgba(7, 12, 18, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.transcript-card h2 {
  margin: 0;
  padding-right: 80px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
}

.transcript-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.transcript-body {
  max-height: min(52vh, 520px);
  overflow: auto;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.26);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.transcript-section {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.transcript-section h3 {
  margin: 0 0 8px;
  color: #98e9ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.transcript-section p,
.transcript-section ul {
  margin: 0;
}

.transcript-section ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.transcript-clean p {
  white-space: pre-wrap;
}

.script-save-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 5, 7, 0.84);
  backdrop-filter: blur(14px);
}

.script-save-card {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(150deg, rgba(24, 200, 255, 0.14), rgba(255, 61, 143, 0.08) 48%, rgba(32, 224, 161, 0.1)),
    rgba(7, 12, 18, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.script-save-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.script-save-title {
  margin: 12px 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.script-save-form {
  display: grid;
  gap: 12px;
}

.script-save-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.saved-script-list {
  display: grid;
  gap: 16px;
}

.saved-script-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 24px);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(3, 5, 7, 0.68);
  backdrop-filter: blur(18px);
}

.saved-script-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.saved-script-text {
  margin: 0;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  line-height: 1.6;
}

.saved-script-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.virals-access-card {
  position: relative;
  overflow: hidden;
  width: min(980px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(24, 200, 255, 0.14), rgba(255, 61, 143, 0.08) 48%, rgba(32, 224, 161, 0.1)),
    rgba(7, 12, 18, 0.94);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.virals-access-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold), var(--green));
}

.virals-access-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.virals-access-head {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.virals-access-head h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.virals-access-head p:last-child {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  font-weight: 700;
  line-height: 1.45;
}

.virals-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: center;
}

.virals-access-list {
  display: grid;
  gap: 14px;
}

.virals-access-list p {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.virals-access-list span {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 2px solid var(--green);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(32, 224, 161, 0.34);
}

.virals-agent-stack {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(3, 5, 7, 0.52);
}

.virals-agent-stack article {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.075);
}

.virals-agent-stack article:nth-child(1) {
  border-color: rgba(32, 224, 161, 0.32);
}

.virals-agent-stack article:nth-child(2) {
  border-color: rgba(24, 200, 255, 0.34);
}

.virals-agent-stack article:nth-child(3) {
  border-color: rgba(255, 61, 143, 0.3);
}

.virals-agent-stack span {
  color: #98e9ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.virals-agent-stack strong {
  display: block;
  margin-top: 5px;
  font-size: 1.03rem;
}

.virals-agent-stack p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.virals-access-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(620px, 100%);
  margin: 26px auto 0;
}

.virals-access-primary,
.virals-access-secondary {
  min-height: 56px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.virals-access-primary {
  color: #041016;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 18px 42px rgba(24, 200, 255, 0.18);
}

.virals-access-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.insights-shell {
  display: grid;
  gap: 22px;
}

.compact-insights-layout {
  padding-top: 12px;
  padding-bottom: 14px;
  align-content: start;
}

.compact-insights-layout.insights-shell {
  gap: 10px;
}

.compact-insights-layout .insights-hero {
  min-height: 158px;
  padding: 24px 20px;
  gap: 6px;
  place-content: center;
  text-align: center;
}

.compact-insights-layout .insights-hero h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  line-height: 1.06;
}

.compact-insights-layout .insights-hero p:not(.eyebrow) {
  font-size: 0.96rem;
  line-height: 1.45;
}

.compact-insights-layout .insight-empty {
  align-content: start;
  gap: 10px;
  padding: 18px 20px;
}

.compact-insights-layout .insight-empty h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.compact-insights-layout .insight-empty p:not(.panel-kicker) {
  max-width: 520px;
}

.compact-insights-layout .saved-script-list {
  gap: 10px;
}

.compact-insights-layout .saved-script-card {
  padding: 14px;
  gap: 10px;
}

.insights-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 46px);
  background:
    linear-gradient(145deg, rgba(24, 200, 255, 0.14), rgba(255, 61, 143, 0.08) 48%, rgba(32, 224, 161, 0.09)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

.insights-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold), var(--green));
}

.insights-hero h1 {
  max-width: 840px;
}

.insights-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 700;
  line-height: 1.55;
}

.compact-insights-hero {
  width: min(720px, 100%);
  justify-self: center;
  justify-items: center;
  padding: clamp(22px, 4vw, 34px);
  text-align: center;
}

.compact-insights-hero h1 {
  max-width: none;
}

.compact-insights-hero .insight-status {
  margin: 0 auto;
}

.insight-status {
  width: fit-content;
  border: 1px solid rgba(152, 233, 255, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(24, 200, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
}

.insight-grid {
  display: grid;
  gap: 14px;
}

.insight-result-card,
.insight-empty {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(3, 5, 7, 0.68);
  backdrop-filter: blur(18px);
}

.insight-result-card {
  display: grid;
  grid-template-columns: auto 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.insight-rank {
  width: 52px;
  color: #98e9ff;
  font-size: 1.12rem;
  font-weight: 900;
  text-align: center;
}

.insight-thumb {
  position: relative;
  overflow: hidden;
  width: 116px;
  aspect-ratio: 9 / 14;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.insight-thumb img,
.insight-thumb iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.insight-thumb iframe {
  position: absolute;
  inset: 0;
  border: 0;
  opacity: 0;
}

.insight-thumb.has-embed-preview {
  cursor: pointer;
}

.insight-thumb.is-embed-previewing iframe {
  opacity: 1;
}

.insight-thumb-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.insight-result-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.insight-result-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.insight-result-heading h2 {
  font-size: clamp(1.12rem, 2.5vw, 1.65rem);
  line-height: 1.12;
}

.insight-result-heading span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(32, 224, 161, 0.13);
  color: #b9ffe8;
  font-size: 0.78rem;
  font-weight: 900;
}

.insight-result-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.insight-meta-row,
.insight-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.insight-meta-row {
  color: var(--muted);
  font-weight: 900;
}

.insight-stat-row span {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.insight-stat-row strong {
  color: #ffffff;
}

.insight-pill-row {
  gap: 7px;
}

.insight-result-body a,
.insight-cta {
  width: fit-content;
  color: #98e9ff;
  font-weight: 900;
  text-decoration: none;
}

.insight-empty {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.insight-empty p:not(.panel-kicker) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.about-hero h1 {
  display: grid;
  gap: 8px;
  max-width: 880px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
}

.about-hero {
  min-height: 260px;
  place-content: center;
  text-align: center;
}

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

.about-card,
.about-panel,
.about-compare article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(3, 5, 7, 0.68);
  backdrop-filter: blur(18px);
}

.about-card {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2.4vw, 24px);
}

.about-card-accent {
  border-color: rgba(152, 233, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(24, 200, 255, 0.14), rgba(32, 224, 161, 0.08)),
    rgba(3, 5, 7, 0.72);
}

.about-card h2,
.about-panel h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.12;
}

.about-card p:not(.panel-kicker),
.about-panel p:not(.panel-kicker) {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.about-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.about-panel article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
}

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 1.35rem 0;
  color: rgba(255, 255, 255, 0.58);
  background: #030507;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  font-size: 0.86rem;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 920px) {
  .hero-head,
  .form-grid,
  .workspace-grid,
  .product-meta-grid,
  .product-signal-grid,
  .source-card,
  .library-list,
  .insight-result-card,
  .saved-script-grid,
  .about-grid,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .output-panel-large {
    grid-row: auto;
  }

  .section-title-row {
    display: grid;
    align-items: start;
  }

  .section-title-row > p {
    text-align: left;
  }

  .insight-rank {
    width: auto;
    text-align: left;
  }

  .insight-thumb {
    width: min(180px, 100%);
  }

  .source-media {
    width: min(240px, 100%);
    justify-self: start;
  }

  .insight-result-heading {
    display: grid;
  }

  .saved-script-head {
    display: grid;
  }

  .hero-asset {
    max-width: 420px;
    justify-self: start;
  }

  .product-hero-card {
    grid-template-columns: 1fr;
  }

  .product-confidence {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .compact-insights-layout {
    padding-top: 8px;
    padding-bottom: 92px;
  }

  .compact-insights-layout .insights-hero {
    min-height: auto;
    padding: 18px 14px 20px;
  }

  .compact-insights-layout .insights-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .compact-insights-layout .insight-status {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .insight-grid {
    gap: 10px;
  }

  .insight-result-card {
    grid-template-columns: 32px minmax(118px, 34vw) minmax(0, 1fr);
    gap: 9px;
    align-items: stretch;
    padding: 10px;
  }

  .insight-rank {
    width: auto;
    font-size: 1.05rem;
    line-height: 1;
  }

  .insight-thumb {
    width: 100%;
    min-height: 220px;
    height: 100%;
    aspect-ratio: auto;
    align-self: stretch;
  }

  .source-media {
    width: min(230px, 100%);
  }

  .insight-result-body {
    gap: 7px;
  }

  .insight-result-heading {
    display: grid;
    gap: 7px;
  }

  .insight-result-heading h2 {
    font-size: 1rem;
    line-height: 1.12;
  }

  .insight-result-heading span {
    width: fit-content;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .insight-meta-row {
    gap: 4px 8px;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .insight-stat-row {
    gap: 5px;
  }

  .insight-stat-row span {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .insight-pill-row .pill {
    padding: 5px 7px;
    font-size: 0.66rem;
  }

  .insight-result-body a {
    font-size: 0.86rem;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .virals-topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .brand-mark {
    grid-column: 1;
    grid-row: 1;
    line-height: 0;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
  }

  .topbar-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .virals-topbar.is-menu-open .topbar-menu {
    display: flex;
  }

  .topbar-menu::before {
    content: "Navigate";
    flex: 1 0 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
  }

  .topbar-menu a {
    flex: 0 1 180px;
    min-height: 0;
    border-radius: 18px;
    padding: 0.82rem 0.8rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 14px;
  }

  .nav-toggle span {
    margin: 0;
  }

  .virals-topbar.is-menu-open .nav-toggle {
    border-color: rgba(152, 233, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(24, 200, 255, 0.1);
  }

  .topbar-actions a {
    flex: 0 0 auto;
    min-height: 42px;
    min-width: 0;
    padding: 0.45rem 0.7rem;
    font-size: 0.7rem;
  }

  .brand-mark img {
    height: 31px;
    max-width: min(40vw, 180px);
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding-bottom: calc(1.35rem + 108px + env(safe-area-inset-bottom, 0px));
  }

  .virals-topbar {
    width: calc(100% - 24px);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .brand-mark {
    grid-column: 1;
    grid-row: 1;
    flex: 0 0 auto;
    line-height: 0;
  }

  .topbar-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .virals-topbar.is-menu-open .topbar-menu {
    display: flex;
  }

  .topbar-menu::before {
    content: "Navigate";
    flex: 1 0 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
  }

  .topbar-menu a {
    flex: 0 1 180px;
    min-height: 0;
    width: auto;
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    padding: 0.82rem 0.8rem;
    text-align: center;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 14px;
  }

  .nav-toggle span {
    margin: 0;
  }

  .virals-topbar.is-menu-open .nav-toggle {
    border-color: rgba(152, 233, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(24, 200, 255, 0.1);
  }

  .topbar-actions a {
    flex: 0 0 auto;
    min-height: 42px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    font-size: 0.7rem;
    line-height: 1;
  }

  .brand-mark img {
    height: 27px;
    max-width: min(44vw, 152px);
  }

  .virals-shell {
    width: calc(100% - 24px);
    padding: 28px 0;
  }

  .virals-mobile-dock {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    min-height: 72px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background:
      linear-gradient(145deg, rgba(24, 200, 255, 0.08), rgba(255, 61, 143, 0.06)),
      rgba(3, 5, 7, 0.94);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
  }

  .mobile-dock-link {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    text-decoration: none;
  }

  .mobile-dock-link.is-active {
    color: #18c8ff;
  }

  .mobile-dock-link.is-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
  }

  .mobile-dock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: currentColor;
  }

  .mobile-dock-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-dock-icon-play svg circle {
    fill: currentColor;
    stroke: none;
  }

  .mobile-dock-icon-play svg path {
    fill: #030507;
    stroke: none;
  }

  .mobile-dock-icon-analyze svg path {
    fill: currentColor;
    stroke: none;
  }

  .hero-workspace {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 20px;
  }

  .mode-switch {
    width: 100%;
    gap: 8px;
  }

  .mode-button {
    min-height: 50px;
    padding: 10px 8px;
    font-size: 0.82rem;
    line-height: 1.1;
  }

  .hero-workspace::before {
    content: none;
  }

  .hero-asset {
    max-width: min(100%, 360px);
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .construction-note {
    display: grid;
    justify-items: center;
    gap: 6px;
  }

  .analyzer-form,
  .compare-form {
    padding: 14px;
  }

  input,
  select,
  textarea {
    padding-left: 12px;
    padding-right: 12px;
    text-overflow: ellipsis;
  }

  .form-actions button {
    width: 100%;
  }

  .virals-access-modal {
    padding: 14px;
    align-items: start;
    overflow-y: auto;
  }

  .virals-access-card {
    padding: 22px;
  }

  .virals-access-close {
    position: static;
    justify-self: end;
    margin-bottom: 14px;
  }

  .virals-access-grid,
  .virals-access-actions {
    grid-template-columns: 1fr;
  }

  .virals-access-head {
    text-align: left;
  }

  .virals-access-head p:last-child {
    margin-left: 0;
  }

  .virals-account-modal {
    padding: 14px;
    align-items: start;
    overflow-y: auto;
  }

  .virals-account-card {
    max-height: calc(100dvh - 28px);
  }

  .virals-account-close {
    position: static;
    justify-self: end;
  }

  .virals-account-card h2 {
    padding-right: 0;
  }

  .virals-account-grid {
    grid-template-columns: 1fr;
  }

  .virals-plan-grid {
    grid-template-columns: 1fr;
  }

  .virals-account-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .virals-copy-row {
    grid-template-columns: 1fr;
  }
}
