body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  background: radial-gradient(
      circle at 100% 0%,
      rgba(255, 85, 85, 0.16),
      transparent 26%
    ),
    radial-gradient(circle at 0% 100%, rgba(255, 85, 85, 0.24), transparent 42%),
    linear-gradient(90deg, #f3efef 0%, #f2eeee 48%, #f2d4d4 100%);
  color: #1a1a1a;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.trend-page-shell {
  min-height: 100vh;
}

.top-nav {
  padding: 16px 24px;
  max-width: none;
  margin: 0;
}

.trend-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 40px 32px;
}

.hero {
  padding: 4px 0 8px;
}

.title {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 70px;
  line-height: 1.05;
  font-weight: 700;
  color: #bf1a1a;
  letter-spacing: -1.1px;
  margin-top: 70px;
}

.subtitle {
  font-weight: 300;
  font-size: 20px;
  margin-top: -10px;
  line-height: 2;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 34px;
  padding: 6px 0 0;
}

.summary-card {
  min-height: 100px;
  border-radius: 16px;
  box-shadow: 8px 10px 0 rgba(84, 66, 66, 0.18);
  padding: 14px 22px 12px;
  text-align: center;
}

.summary-card h3 {
  margin: 0 0 8px;
  font-family: "Roboto", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.summary-value {
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  font-family: "Roboto", sans-serif;
}

.summary-card.total {
  background: #ead9d9;
}

.summary-card.total .summary-value {
  color: #d10000;
}

.summary-card.high {
  background: #ef5d5d;
}

.summary-card.high h3,
.summary-card.high .summary-value {
  color: #ffffff;
}

.summary-card.medium {
  background: #f2b56b;
}

.summary-card.medium h3,
.summary-card.medium .summary-value {
  color: #ffffff;
}

.summary-card.low {
  background: #84d36e;
}

.summary-card.low h3,
.summary-card.low .summary-value {
  color: #ffffff;
}

.search-shell {
  padding: 28px 0 8px;
}

.search-controls-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-controls-column > * {
  min-width: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 6px 6px 6px 20px;
  border: 4px solid #bf1a1a;
  border-radius: 999px;
  background: #f2f2f2;
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.25);
}

.search-bar input {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 20px;
  font-style: normal;
  color: #838181;
  outline: none;
}

.search-bar input::placeholder {
  color: #838181;
}

.search-btn {
  margin-left: 0;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #bf1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.search-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #111111;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #111111;
  border-radius: 999px;
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
}

.filter-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 28px;
  background: #f2eaea;
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.18);
}

.filter-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.filter-control label {
  font-size: 13px;
  font-weight: 700;
  color: #7c5f5f;
  padding-left: 4px;
}

.filter-control select {
  width: 100%;
  border: 3px solid #c51d1d;
  border-radius: 999px;
  background: #f4f1f1;
  padding: 12px 16px;
  font-size: 14px;
  color: #5f5f5f;
  outline: none;
  cursor: pointer;
}

.filter-reset-btn {
  border: none;
  border-radius: 999px;
  background: #d31919;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 1px;
}

.table-panel {
  margin: 22px 0 0;
  background: #f2e0e0;
  border-radius: 18px;
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.18);
  padding: 18px 18px 22px;
}

.panel-heading {
  text-align: center;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 30px;
  color: #c81616;
}

.table-wrap {
  overflow-x: auto;
}

.flagged-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8efef;
  border-radius: 14px;
  overflow: hidden;
}

.flagged-table thead th {
  background: #e6c8c8;
  color: #5f3f3f;
  text-align: left;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 700;
}

.flagged-table tbody td {
  padding: 16px 18px;
  border-top: 1px solid rgba(120, 85, 85, 0.12);
  font-size: 15px;
  color: #3c2b2b;
}

.flagged-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.45);
}

.sort-mark {
  font-size: 12px;
  color: #9a7777;
  margin-left: 4px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ead9d9;
  font-weight: 600;
}

.severity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.severity-badge.high {
  background: #d63c3c;
}

.severity-badge.medium {
  background: #e39a43;
}

.severity-badge.low {
  background: #68b856;
}

.empty-state {
  padding: 22px 8px 8px;
  text-align: center;
  color: #7a6666;
  font-size: 15px;
}

.hidden {
  display: none;
}

@media (max-width: 1200px) {
  .summary-row {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .filter-control {
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .trend-page {
    padding: 0 16px 24px;
  }

  .hero,
  .summary-row,
  .search-shell {
    padding-left: 0;
    padding-right: 0;
  }

  .title {
    font-size: 44px;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-control {
    min-width: 100%;
  }

  .filter-reset-btn {
    align-self: stretch;
  }

  .table-panel {
    margin-left: 0;
    margin-right: 0;
  }
}
