.challenges-hero {
  padding: 4rem 0 2rem;
}

.challenges-hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.challenges-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.challenges-hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.challenge-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.challenge-stat {
  min-height: 86px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 22, 34, 0.72);
}

.challenge-stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.challenge-stat span {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.challenges-app {
  width: 100%;
  max-width: none;
  padding: 1rem 0 4rem;
}

.challenges-app.container {
  max-width: none;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.challenges-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.challenge-filters {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 22, 34, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.challenge-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.challenge-filters h2 {
  margin: 0;
  font-size: 1rem;
}

[data-challenge-filters] {
  display: grid;
  gap: 1rem;
}

.filter-group {
  display: grid;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.filter-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.filter-label,
.filter-group legend {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.filter-group fieldset {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 42px;
  padding: 0.68rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(13, 16, 24, 0.96);
  color: var(--text);
  font: inherit;
}

.filter-input:focus,
.filter-select:focus {
  outline: 2px solid rgba(0, 255, 135, 0.25);
  border-color: rgba(0, 255, 135, 0.55);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.filter-row label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.filter-reset {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.filter-reset:hover {
  border-color: rgba(0, 255, 135, 0.5);
  color: var(--accent);
}

.challenge-list-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 22, 34, 0.74);
  overflow: hidden;
}

.challenge-list-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.challenge-list-toolbar strong {
  display: block;
  line-height: 1.2;
}

.challenge-list-toolbar span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.active-sort-pill {
  min-width: 138px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(0, 255, 135, 0.36);
  border-radius: 999px;
  color: var(--accent);
  text-align: center;
  font-size: 0.8rem;
  white-space: nowrap;
  background: rgba(0, 255, 135, 0.08);
}

.challenge-table-wrap {
  overflow-x: visible;
}

.challenge-cards-mobile {
  display: none;
}

.challenge-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.challenge-table th,
.challenge-table td {
  padding: 0.78rem 0.62rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.challenge-table th:nth-child(1),
.challenge-table td:nth-child(1) {
  width: 24%;
}

.challenge-table th:nth-child(2),
.challenge-table td:nth-child(2) {
  width: 9%;
}

.challenge-table th:nth-child(3),
.challenge-table td:nth-child(3),
.challenge-table th:nth-child(4),
.challenge-table td:nth-child(4) {
  width: 6.5%;
}

.challenge-table th:nth-child(5),
.challenge-table td:nth-child(5) {
  width: 9%;
}

.challenge-table th:nth-child(6),
.challenge-table td:nth-child(6),
.challenge-table th:nth-child(7),
.challenge-table td:nth-child(7) {
  width: 11%;
}

.challenge-table th:nth-child(8),
.challenge-table td:nth-child(8) {
  width: 13%;
}

.challenge-table th:nth-child(9),
.challenge-table td:nth-child(9) {
  width: 10%;
}

.challenge-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #121622;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.challenge-table tbody tr:last-child td {
  border-bottom: 0;
}

.sort-button {
  display: inline-flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sort-button:hover,
.sort-button.is-active {
  color: var(--accent);
}

.sort-indicator {
  display: inline-grid;
  width: 34px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 800;
}

.sort-button.is-active .sort-indicator {
  background: rgba(0, 255, 135, 0.16);
  color: var(--accent);
}

.challenge-name {
  min-width: 0;
}

.challenge-name strong {
  display: block;
  line-height: 1.3;
  font-size: 0.9rem;
}

.challenge-title-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
}

.challenge-firm-logo {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  object-fit: contain;
  padding: 0.25rem;
}

.firm-badge {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(0, 255, 135, 0.22);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(0, 255, 135, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
}

.price-cell {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.price-cell strong {
  color: var(--text);
  font-size: 1rem;
}

.old-price {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-decoration: line-through;
}

.price-note {
  color: var(--accent);
  font-size: 0.72rem;
}

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

.numeric-cell,
.text-cell {
  white-space: normal;
  font-size: 0.9rem;
}

.loss-none {
  color: var(--accent);
}

.cta-cell {
  text-align: right;
}

.challenge-cta {
  display: inline-flex;
  min-height: 38px;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 255, 135, 0.52);
  border-radius: 8px;
  background: var(--accent);
  color: #07100c;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.challenge-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 255, 135, 0.14);
}

.challenge-mobile-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(13, 16, 24, 0.64);
}

.challenge-mobile-card-head {
  display: grid;
  gap: 0.8rem;
}

.challenge-mobile-card-head .price-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: baseline;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.challenge-mobile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.challenge-mobile-details div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.challenge-mobile-details dt {
  margin: 0 0 0.18rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.challenge-mobile-details dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.3;
}

.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.challenge-disclaimer {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.challenges-faq {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.challenges-faq h2 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.18;
}

.challenges-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.challenge-faq-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 22, 34, 0.74);
}

.challenge-faq-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.challenge-faq-item p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .challenges-hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 1180px) {
  .challenges-layout {
    grid-template-columns: 1fr;
  }

  .challenge-filters {
    position: static;
  }
}

@media (max-width: 900px) {
  .challenge-table-wrap {
    display: none;
  }

  .challenge-cards-mobile {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .challenge-table,
  .challenge-table thead,
  .challenge-table tbody,
  .challenge-table th,
  .challenge-table td,
  .challenge-table tr {
    display: block;
  }

  .challenge-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .challenge-table tbody {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .challenge-table tbody tr {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(13, 16, 24, 0.5);
    overflow: hidden;
  }

  .challenge-table th:nth-child(n),
  .challenge-table td:nth-child(n) {
    width: auto;
  }

  .challenge-table td {
    display: grid;
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.72rem 0.85rem;
  }

  .challenge-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .challenge-table td.challenge-name {
    grid-template-columns: 1fr;
  }

  .challenge-table td.challenge-name::before {
    display: none;
  }

  .challenge-table td.cta-cell {
    display: block;
  }

  .challenge-table td.cta-cell::before {
    display: none;
  }

  .challenge-cta {
    width: 100%;
  }

  .challenge-title-cell {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .challenge-firm-logo {
    width: 42px;
    height: 42px;
  }

  .challenges-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .challenges-hero {
    padding-top: 2.7rem;
  }

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

  .challenge-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .active-sort-pill {
    width: 100%;
  }

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

  .challenges-app.container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .challenge-table tbody {
    padding: 0.5rem;
  }

  .challenge-table td {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .challenge-cards-mobile {
    padding: 0.5rem;
  }

  .challenge-mobile-details {
    grid-template-columns: 1fr;
  }
}
