/* ══════════════════════════════════════════════════════════════
   CHALLENGES — Dark Section, Tab Switcher, Comparison Tables
   ══════════════════════════════════════════════════════════════ */

/* ── Dark Section Override ── */

.challenges-section {
  background: #0D0B0B;
}

.challenges-section .challenges-header h2 {
  color: #FFFFFF;
}

.challenges-section .challenges-header p {
  color: rgba(255,255,255,0.55);
}

.challenges-section .label-pill--dark {
  background: rgba(255,78,70,0.12);
  border-color: rgba(255,78,70,0.30);
  color: var(--clr-red);
}

/* ── Tab Switcher ── */

.challenge-tabs {
  display: flex;
  justify-content: center;
  margin: 0 auto 48px;
}

.challenge-tabs-inner {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-full);
  padding: 5px;
}

.challenge-tab {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.50);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.challenge-tab:hover {
  color: rgba(255,255,255,0.80);
  border-color: rgba(255,255,255,0.12);
}

.challenge-tab.active {
  background: var(--clr-red);
  color: #FFFFFF;
  box-shadow: var(--shadow-red-sm);
  border-color: var(--clr-red);
}

/* ── Panels ── */

.challenge-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.challenge-panel.active {
  display: block;
  opacity: 1;
}

/* ── Challenge Table ── */

.challenge-table-wrap {
  border: 1px solid rgba(255,78,70,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

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

/* Header row (account sizes) */
.challenge-table thead tr {
  background: rgba(255,255,255,0.03);
}

.challenge-table th {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 16px;
  color: #FFFFFF;
  padding: 16px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.challenge-table th.challenge-table__label-col {
  width: 22%;
  min-width: 0;
}

/* Body rows */
.challenge-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--duration-fast);
}

.challenge-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.015);
}

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

.challenge-table td {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  padding: 12px 10px;
  text-align: center;
}

/* Feature label column */
.challenge-table__feature {
  text-align: left !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.60) !important;
  font-size: 13px !important;
}

.info-tip {
  font-size: 14px;
  color: rgba(255,255,255,0.25);
  cursor: help;
  margin-left: 2px;
  vertical-align: middle;
}

/* ── Footer: Price + CTA ── */

.challenge-table tfoot tr {
  border: none;
}

.challenge-table tfoot td {
  font-family: var(--font-primary);
  padding: 10px 10px;
  text-align: center;
  color: #FFFFFF;
}

/* Price row */
.challenge-table__price-row td {
  padding-top: 16px;
  padding-bottom: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.price-orig {
  text-decoration: line-through;
  color: rgba(255,255,255,0.30);
  font-size: 14px;
  font-weight: 500;
  margin-right: 8px;
}

.price-sale {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}

.price-current {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

/* CTA row */
.challenge-table__cta-row td {
  padding-top: 6px;
  padding-bottom: 20px;
}

.btn-cta-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  max-width: 120px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .challenge-tabs-inner {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .challenge-tab {
    justify-content: center;
    padding: 12px 20px;
  }

  .challenge-table th.challenge-table__label-col {
    width: 28%;
  }

  .challenge-table th {
    font-size: 14px;
    padding: 12px 8px;
  }

  .challenge-table td {
    font-size: 12px;
    padding: 10px 8px;
  }

  .price-current {
    font-size: 14px;
  }

  .btn-cta-table {
    max-width: 100px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .challenge-table th.challenge-table__label-col {
    width: 32%;
  }

  .challenge-table th {
    font-size: 12px;
    padding: 10px 6px;
  }

  .challenge-table td {
    font-size: 11px;
    padding: 8px 6px;
  }

  .btn-cta-table {
    max-width: 90px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .price-current {
    font-size: 13px;
  }
}
