.traffic-main {
  min-height: calc(100vh - 210px);
  padding-top: 84px;
  background: #fff;
}

.traffic-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 62px;
  background: linear-gradient(135deg, #062d71 0%, #0759b3 54%, #0a91d2 100%);
  color: #fff;
}

.traffic-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.traffic-hero .shell {
  position: relative;
}

.traffic-eyebrow {
  margin: 0 0 14px;
  color: #1371d1;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.traffic-hero .traffic-eyebrow {
  color: #bfe1ff;
}

.traffic-hero h1 {
  max-width: 800px;
  margin: 0 0 16px;
  font-size: var(--type-h1);
}

.traffic-hero .shell > p:last-child {
  max-width: 800px;
  margin: 0;
  color: #d9eaff;
  font-size: 1.05rem;
  line-height: 1.65;
}

.traffic-section {
  padding: 68px 0 76px;
}

.traffic-map-section {
  background: #f4f8fe;
}

.traffic-technology-section {
  border-top: 1px solid #e2eaf4;
  border-bottom: 1px solid #e2eaf4;
  background: #f8fbff;
}

.traffic-errors {
  background: #fff;
}

.traffic-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 30px;
}

.traffic-section-heading > div:first-child {
  max-width: 800px;
}

.traffic-section-heading h2 {
  margin: 0 0 12px;
}

.traffic-section-heading p:last-child {
  margin: 0;
  color: #5d6f86;
  line-height: 1.65;
}

.traffic-signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.traffic-signal-list li {
  position: relative;
  padding: 12px 14px 12px 32px;
  border: 1px solid #dce5f0;
  border-radius: 11px;
  background: #f8fbff;
  color: #344e68;
  font-size: .86rem;
  line-height: 1.5;
}

.traffic-signal-list li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3343d;
  box-shadow: 0 0 0 4px rgba(211, 52, 61, .1);
  content: "";
}

.traffic-section-heading .traffic-analysis-method {
  padding-left: 15px;
  border-left: 3px solid #1371d1;
  color: #294865;
}

.traffic-methodology {
  padding: 46px 0 60px;
  background: #f4f8fe;
}

.traffic-methodology-panel {
  padding: 24px;
  border: 1px solid #d8e3ef;
  border-radius: 16px;
  background: #fff;
}

.traffic-attack-map-panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #d8e3ef;
  border-radius: 16px;
  background: #fff;
}

.traffic-attack-map-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.traffic-attack-map-status {
  margin-top: 0;
}

.traffic-methodology-heading {
  max-width: 900px;
  margin-bottom: 18px;
}

.traffic-methodology-heading h2 {
  margin: 0 0 8px;
  font-size: var(--type-h3);
}

.traffic-methodology-heading > p:last-child {
  margin: 0;
  color: #5d6f86;
  font-size: .9rem;
  line-height: 1.55;
}

.traffic-signal-list--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.traffic-signal-list--compact li {
  padding: 10px 12px 10px 28px;
  font-size: .77rem;
  line-height: 1.4;
}

.traffic-signal-list--compact li::before {
  top: 13px;
  left: 12px;
  width: 7px;
  height: 7px;
}

.traffic-correlation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 19px 21px;
  border: 1px solid #103b68;
  border-left: 4px solid #e35043;
  border-radius: 12px;
  background: linear-gradient(135deg, #071a2c 0%, #0a3153 68%, #075e93 100%);
  box-shadow: 0 14px 30px rgba(8, 40, 68, .14);
  color: #fff;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.traffic-correlation-card:hover,
.traffic-correlation-card:focus-visible {
  border-color: #5cb9ef;
  box-shadow: 0 18px 38px rgba(8, 40, 68, .22);
  color: #fff;
  outline: 3px solid rgba(25, 135, 210, .22);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.traffic-correlation-card__copy {
  display: grid;
  gap: 5px;
}

.traffic-correlation-card__copy b {
  color: #ff9b88;
  font-size: .64rem;
  letter-spacing: .14em;
}

.traffic-correlation-card__copy strong {
  color: #fff;
  font-size: 1.12rem;
}

.traffic-correlation-card__copy small {
  max-width: 760px;
  color: #c6dcec;
  font-size: .78rem;
  line-height: 1.5;
}

.traffic-correlation-card__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.traffic-correlation-card__action i {
  font-style: normal;
}

.traffic-refresh-group {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.traffic-refresh-group span {
  color: #6a7889;
  font-size: .75rem;
}

.traffic-refresh {
  appearance: none;
  padding: 10px 15px;
  border: 1px solid #b9cce1;
  border-radius: 999px;
  background: #fff;
  color: #0754b5;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.traffic-refresh:hover,
.traffic-refresh:focus-visible {
  border-color: #0754b5;
  background: #edf5ff;
}

.traffic-refresh:disabled {
  opacity: .65;
  cursor: wait;
}

.traffic-status {
  margin: 28px 0 0;
  padding: 28px;
  border: 1px dashed #b9c9dc;
  border-radius: 14px;
  background: #fff;
  color: #52647c;
  text-align: center;
}

.traffic-status.is-error {
  border-color: #dca8ad;
  background: #fff7f7;
  color: #8b2631;
}

.traffic-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.traffic-stats article {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  background: #fff;
}

.traffic-stats strong {
  display: block;
  color: #0754b5;
  font: 800 1.55rem Manrope, sans-serif;
}

.traffic-stats span {
  display: block;
  margin-top: 3px;
  color: #66768a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.traffic-stats small {
  display: block;
  margin-top: 8px;
  color: #274865;
  font-size: .78rem;
  font-weight: 800;
}

.traffic-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 22px;
  align-items: stretch;
}

.traffic-map-figure {
  min-width: 0;
  margin: 0;
}

.traffic-map-viewport {
  overflow: hidden;
  border: 1px solid #cbd9e8;
  border-radius: 16px;
  background: #ddecfa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.traffic-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
}

.traffic-map-ocean {
  fill: #dcecf8;
}

.traffic-map-graticule {
  opacity: .7;
  stroke: #b5cfe2;
  stroke-width: .7;
}

.traffic-map-land {
  fill: #fff;
  stroke: #9db5c9;
  stroke-width: .75;
  vector-effect: non-scaling-stroke;
}

.traffic-map-point {
  outline: none;
  cursor: pointer;
}

.traffic-map-point-halo {
  opacity: .14;
  fill: #0b68d4;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .2s, transform .2s;
}

.traffic-map-point-circle {
  fill: #0754b5;
  stroke: #fff;
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .2s, transform .2s;
  vector-effect: non-scaling-stroke;
}

.traffic-map-point:hover .traffic-map-point-halo,
.traffic-map-point:focus .traffic-map-point-halo,
.traffic-map-point.is-active .traffic-map-point-halo {
  opacity: .32;
  transform: scale(1.3);
}

.traffic-map-point:hover .traffic-map-point-circle,
.traffic-map-point:focus .traffic-map-point-circle,
.traffic-map-point.is-active .traffic-map-point-circle {
  fill: #00a6d9;
  transform: scale(1.12);
}

.traffic-map-viewport--attack {
  border-color: #d9c5c8;
  background: #f3e8e9;
}

.traffic-map--attack .traffic-map-ocean {
  fill: #f3e8e9;
}

.traffic-map--attack .traffic-map-graticule {
  stroke: #dbc8ca;
}

.traffic-map--attack .traffic-map-land {
  fill: #fff;
  stroke: #c5aeb2;
}

.traffic-map-point--attack .traffic-map-point-halo {
  fill: #d3343d;
}

.traffic-map-point--attack .traffic-map-point-circle {
  fill: #b52631;
}

.traffic-map-point--attack:hover .traffic-map-point-circle,
.traffic-map-point--attack:focus .traffic-map-point-circle,
.traffic-map-point--attack.is-active .traffic-map-point-circle {
  fill: #ef4a51;
}

.traffic-map-figure figcaption {
  margin-top: 8px;
  color: #6a7889;
  font-size: .67rem;
}

.traffic-location-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #d9e3ee;
  border-radius: 16px;
  background: #fff;
}

.traffic-location-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.traffic-location-list {
  display: flex;
  max-height: 430px;
  overflow: auto;
  flex-direction: column;
  gap: 7px;
  padding-right: 4px;
}

.traffic-location {
  appearance: none;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e0e7f0;
  border-radius: 10px;
  background: #f9fbfd;
  color: #1d3854;
  text-align: left;
  cursor: pointer;
}

.traffic-location:hover,
.traffic-location:focus-visible,
.traffic-location.is-active {
  border-color: #8bbbe9;
  background: #edf6ff;
}

.traffic-location strong,
.traffic-location span {
  display: block;
}

.traffic-location strong {
  font-size: .8rem;
}

.traffic-location span {
  margin-top: 3px;
  color: #66778c;
  font-size: .67rem;
  line-height: 1.4;
}

.traffic-attack-location-panel {
  border-color: #ead9db;
}

.traffic-attack-location {
  border-color: #eadfe0;
  background: #fffafa;
}

.traffic-attack-location:hover,
.traffic-attack-location:focus-visible,
.traffic-attack-location.is-active {
  border-color: #d88e94;
  background: #fff1f2;
}

.traffic-attack-location .traffic-attack-location-ips {
  color: #9d2630;
  font-family: Consolas, "Courier New", monospace;
  font-size: .65rem;
  overflow-wrap: anywhere;
}

.traffic-error-stats {
  margin-bottom: 20px;
}

.traffic-technology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.traffic-technology-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #dce5f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 55, 90, .06);
}

.traffic-technology-heading {
  position: relative;
  padding-right: 88px;
}

.traffic-technology-heading p {
  margin: 0 0 6px;
  color: #1371d1;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.traffic-technology-heading h3 {
  margin: 0;
  font-size: 1.08rem;
}

.traffic-technology-heading > span {
  position: absolute;
  top: 2px;
  right: 0;
  color: #67788c;
  font-size: .7rem;
  font-weight: 800;
}

.traffic-donut {
  position: relative;
  display: grid;
  width: 174px;
  margin: 26px auto 24px;
  border-radius: 50%;
  aspect-ratio: 1;
  background: #e7edf5;
  place-items: center;
}

.traffic-donut::before {
  position: absolute;
  width: 59%;
  border-radius: 50%;
  aspect-ratio: 1;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(211, 222, 234, .55);
  content: "";
}

.traffic-donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  color: #5e7085;
  text-align: center;
}

.traffic-donut-center strong {
  color: #123e6d;
  font: 800 1.42rem Manrope, sans-serif;
  line-height: 1;
}

.traffic-donut-center small {
  margin-top: 5px;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.traffic-technology-legend {
  display: grid;
  gap: 2px;
}

.traffic-technology-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 0;
  border-top: 1px solid #edf1f6;
  color: #243f5b;
  font-size: .76rem;
}

.traffic-technology-marker {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic-technology-row strong {
  overflow-wrap: anywhere;
  font-size: .78rem;
}

.traffic-technology-percent {
  min-width: 51px;
  color: #173c62;
  text-align: right;
}

.traffic-technology-count {
  min-width: 72px;
  color: #5d6f83;
  text-align: right;
  white-space: nowrap;
}

.traffic-technology-empty {
  margin: 0;
  padding: 16px 0 2px;
  border-top: 1px solid #edf1f6;
  color: #66768a;
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
}

.traffic-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.traffic-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 16px;
  background: #fff;
}

.traffic-panel-heading {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e5ebf2;
}

.traffic-panel-heading p {
  margin: 0 0 6px;
  color: #1371d1;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.traffic-panel-heading h3 {
  margin: 0;
  font-size: 1.08rem;
}

.traffic-panel-heading span {
  display: block;
  margin-top: 7px;
  color: #66768a;
  font-size: .76rem;
}

.traffic-table-wrap {
  max-height: 440px;
  overflow: auto;
}

.traffic-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.traffic-panel th,
.traffic-panel td {
  padding: 12px 15px;
  border-bottom: 1px solid #e8edf3;
  text-align: left;
  vertical-align: top;
}

.traffic-panel th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f8fd;
  color: #50647b;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.traffic-panel th:last-child,
.traffic-panel td:last-child {
  width: 92px;
  color: #0754b5;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.traffic-panel td:first-child {
  overflow-wrap: anywhere;
  color: #29445f;
}

.traffic-country-cell {
  display: grid;
  gap: 6px;
}

.traffic-country-bar {
  display: block;
  width: var(--country-share, 0%);
  min-width: 3px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0754b5, #19a7d8);
}

.traffic-empty-row td {
  padding: 24px;
  color: #66768a !important;
  text-align: center !important;
}

.traffic-noscript {
  margin: 18px 0 0;
  color: #8b2e1e;
  font-weight: 700;
}

@media (max-width: 900px) {
  .traffic-main {
    padding-top: 84px;
  }

  .traffic-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .traffic-refresh-group {
    align-items: flex-start;
  }

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

  .traffic-map-layout,
  .traffic-analysis-grid {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 600px) {
  .traffic-main {
    padding-top: 74px;
  }

  .traffic-hero {
    padding: 44px 0 48px;
  }

  .traffic-section {
    padding: 50px 0 60px;
  }

  .traffic-stats {
    grid-template-columns: 1fr;
  }

  .traffic-signal-list {
    grid-template-columns: 1fr;
  }

  .traffic-methodology {
    padding: 38px 0 48px;
  }

  .traffic-methodology-panel {
    padding: 19px;
  }

  .traffic-attack-map-panel {
    padding: 19px;
  }

  .traffic-correlation-card {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 17px;
  }

  .traffic-correlation-card__action {
    justify-content: center;
    width: 100%;
  }

  .traffic-map-layout {
    gap: 14px;
  }

  .traffic-location-list {
    max-height: 330px;
  }

  .traffic-panel th,
  .traffic-panel td {
    padding: 11px 12px;
  }

  .traffic-technology-grid {
    grid-template-columns: 1fr;
  }

  .traffic-technology-card {
    padding: 19px;
  }

  .traffic-technology-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }

  .traffic-technology-count {
    grid-column: 2 / -1;
    min-width: 0;
    margin-top: -7px;
    text-align: left;
  }
}
