.stream-test-page {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 28%, #eef4fb 100%);
  min-height: 100vh;
}

.stream-hero {
  padding: 150px 0 48px;
}

.stream-hero-grid {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 430px);
}

.stream-kicker {
  color: #2563eb;
  display: inline-block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.stream-hero-copy h1 {
  color: #0f172a;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.45rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
  margin: 0;
  max-width: 12ch;
}

.stream-hero-copy p {
  color: #5f6f87;
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 1.4rem 0 0;
  max-width: 66ch;
}

.stream-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.stream-secondary-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.stream-secondary-button:hover {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.14);
  transform: translateY(-1px);
}

.stream-hero-pills {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.stream-hero-pill {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
  padding: 1rem 1.1rem;
}

.stream-hero-pill span {
  color: #7b8aa1;
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.stream-hero-pill strong {
  color: #0f172a;
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.stream-score-card {
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.26), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #eff5fd 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 1.9rem;
  position: relative;
}

.stream-score-card::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(14, 165, 233, 0.02));
  border-radius: 28px;
  content: "";
  inset: 14px;
  opacity: 0.7;
  position: absolute;
  z-index: 0;
}

.stream-score-card > * {
  position: relative;
  z-index: 1;
}

.stream-score-ring {
  align-items: center;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-radius: 999px;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 164px;
  justify-content: center;
  margin: 0 auto 1.3rem;
  width: 164px;
}

.stream-score-value {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stream-score-ring small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.stream-score-copy {
  text-align: center;
}

.stream-score-label {
  color: #0f172a;
  display: inline-block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.stream-score-copy p {
  color: #5f6f87;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 34ch;
}

.stream-thresholds {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.stream-thresholds div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 0.95rem 1rem;
}

.stream-thresholds span {
  color: #7b8aa1;
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.stream-thresholds strong {
  color: #0f172a;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.stream-score-card[data-tier="excellent"] .stream-score-ring {
  background: linear-gradient(180deg, #0f172a 0%, #065f46 100%);
}

.stream-score-card[data-tier="good"] .stream-score-ring {
  background: linear-gradient(180deg, #0f172a 0%, #1d4ed8 100%);
}

.stream-score-card[data-tier="fair"] .stream-score-ring {
  background: linear-gradient(180deg, #0f172a 0%, #b45309 100%);
}

.stream-score-card[data-tier="poor"] .stream-score-ring {
  background: linear-gradient(180deg, #0f172a 0%, #991b1b 100%);
}

.stream-dashboard {
  padding: 0 0 90px;
}

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

.metric-card,
.stream-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow:
    0 20px 30px rgba(15, 23, 42, 0.06),
    0 8px 20px rgba(15, 23, 42, 0.03);
}

.metric-card {
  padding: 1.4rem 1.35rem;
}

.metric-label {
  color: #7b8aa1;
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.metric-value {
  color: #0f172a;
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric-note {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0.75rem 0 0;
}

.dashboard-grid,
.detail-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.8fr);
}

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

.stream-panel {
  padding: 1.6rem;
}

.stream-panel-main {
  min-height: 100%;
}

.stream-panel-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.stream-panel-head.compact h2 {
  font-size: 1.65rem;
}

.stream-panel-head h2 {
  color: #0f172a;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0.3rem 0 0;
}

.stream-panel-badge {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.7rem 0.95rem;
  white-space: nowrap;
}

.stream-panel-copy {
  color: #5f6f87;
  font-size: 1rem;
  line-height: 1.85;
  margin: 1.05rem 0 0;
}

.stream-progress {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.stream-step {
  align-items: center;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1rem 1.05rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.stream-step-icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  color: #64748b;
  display: inline-flex;
  font-size: 1rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.stream-step strong {
  color: #0f172a;
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.stream-step p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0.2rem 0 0;
}

.stream-step.is-active {
  background: #f8fbff;
  border-color: rgba(59, 130, 246, 0.24);
  transform: translateY(-1px);
}

.stream-step.is-active .stream-step-icon {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.18);
  color: #2563eb;
}

.stream-step.is-done {
  background: #f5fbf8;
  border-color: rgba(16, 185, 129, 0.24);
}

.stream-step.is-done .stream-step-icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.18);
  color: #059669;
}

.stream-step.is-error {
  background: #fff7f7;
  border-color: rgba(239, 68, 68, 0.24);
}

.stream-step.is-error .stream-step-icon {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.18);
  color: #dc2626;
}

.stream-insight-box {
  background: linear-gradient(180deg, #0f172a 0%, #162033 100%);
  border-radius: 28px;
  color: #ffffff;
  margin-top: 1.5rem;
  padding: 1.4rem;
}

.stream-insight-box h3 {
  color: #ffffff;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.3rem 0 0;
}

.stream-insight-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 1rem 0 0;
}

.stream-recommendations {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}

.stream-recommendations li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  line-height: 1.7;
  padding-left: 1.65rem;
  position: relative;
}

.stream-recommendations li::before {
  color: #10b981;
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-size: 0.82rem;
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 0.18rem;
}

.stream-side-stack {
  display: grid;
  gap: 1.25rem;
}

.mini-info-grid,
.device-grid {
  display: grid;
  gap: 0.9rem;
}

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

.mini-info-item,
.device-item,
.benchmark-item {
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  padding: 1rem 1.05rem;
}

.mini-info-item span,
.device-item span {
  color: #7b8aa1;
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.mini-info-item strong,
.device-item strong {
  color: #0f172a;
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.stream-map-link {
  align-items: center;
  color: #2563eb;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 0.45rem;
  margin-top: 1rem;
  text-decoration: none;
}

.stream-map-link::after {
  content: "\f35d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.device-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.4rem;
}

.benchmark-stack {
  display: grid;
  gap: 0.9rem;
}

.benchmark-item strong {
  color: #0f172a;
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
}

.benchmark-item span {
  color: #2563eb;
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.benchmark-item p {
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.72;
  margin: 0.55rem 0 0;
}

.privacy-callout {
  align-items: start;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 24px;
  color: #0f172a;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 1rem;
  padding: 1.1rem 1.15rem;
}

.privacy-callout i {
  color: #2563eb;
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.privacy-callout p {
  color: #5f6f87;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

.whatsapp-float {
  align-items: center;
  background-color: #25d366;
  border-radius: 999px;
  bottom: 20px;
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.28);
  color: #fff;
  display: flex;
  font-size: 30px;
  height: 60px;
  justify-content: center;
  position: fixed;
  right: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 60px;
  z-index: 1000;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  color: #fff;
  transform: scale(1.06);
}

@media (max-width: 1120px) {
  .stream-hero-grid,
  .dashboard-grid,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stream-score-card {
    max-width: 520px;
  }

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

@media (max-width: 720px) {
  .stream-hero {
    padding: 118px 0 38px;
  }

  .stream-hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
    max-width: 13ch;
  }

  .stream-hero-copy p {
    font-size: 1rem;
  }

  .stream-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .stream-hero-pills,
  .metric-grid,
  .mini-info-grid,
  .device-grid,
  .stream-thresholds {
    grid-template-columns: minmax(0, 1fr);
  }

  .stream-score-card,
  .stream-panel,
  .metric-card {
    border-radius: 24px;
  }

  .stream-score-ring {
    height: 148px;
    width: 148px;
  }

  .stream-score-value {
    font-size: 3rem;
  }

  .stream-panel {
    padding: 1.25rem;
  }

  .stream-panel-head {
    flex-direction: column;
  }

  .stream-panel-badge {
    white-space: normal;
  }

  .stream-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .stream-step-icon {
    height: 42px;
    width: 42px;
  }

  .whatsapp-float {
    bottom: 16px;
    font-size: 26px;
    height: 54px;
    right: 16px;
    width: 54px;
  }
}
