/* /assets/css/prop-firm-match.css */

body.prop-match-page {
  background:
    radial-gradient(1200px 420px at 12% 0%, rgba(255, 196, 82, 0.12), transparent 58%),
    radial-gradient(980px 420px at 88% 0%, rgba(88, 166, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #090d13 0%, #0d1117 18%, #0d1117 100%);
}

body.prop-match-page.panel-open {
  overflow: hidden;
}

.prop-match-page .site-header {
  backdrop-filter: blur(16px);
  background: rgba(13, 17, 23, 0.86);
}

.prop-match {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 120px;
}

.prop-match section {
  margin-top: 28px;
}

.prop-match-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 124, 0.16), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(88, 166, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(17, 23, 31, 0.98), rgba(10, 14, 20, 0.96));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

@media (min-width: 980px) {
  .prop-match-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: stretch;
  }
}

.prop-match-hero::after {
  content: '';
  position: absolute;
  inset: auto -16% -48% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 198, 96, 0.16), transparent 72%);
  pointer-events: none;
}

.prop-match-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 205, 108, 0.36);
  background: rgba(62, 45, 14, 0.34);
  color: #ffe5aa;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prop-match-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd06a;
  box-shadow: 0 0 12px rgba(255, 208, 106, 0.64);
}

.prop-match-title {
  margin: 16px 0 14px;
  max-width: 11ch;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 4.65rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.prop-match-lead {
  max-width: 62ch;
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: rgba(230, 237, 243, 0.88);
}

.prop-match-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.prop-match-hero-actions .btn {
  min-width: 180px;
}

.prop-match-hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-pill {
  display: grid;
  gap: 3px;
  min-width: 160px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.hero-pill strong {
  font-size: 1.06rem;
}

.hero-pill span {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.prop-match-hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-stats-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 620px) {
  .hero-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-stat-card,
.hero-story-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(155deg, rgba(26, 34, 45, 0.96), rgba(12, 16, 22, 0.97));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.hero-stat-card {
  padding: 18px;
}

.hero-stat-card .label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-card .value {
  margin-top: 8px;
  font-size: 1.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-card .subtext {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hero-story-card {
  padding: 18px 18px 22px;
}

.hero-story-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-story-card p {
  margin: 0;
  font-size: 0.95rem;
}

.prop-match-disclosure {
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 205, 108, 0.18);
  background: rgba(255, 205, 108, 0.08);
  color: #ffe0a0;
}

.promo-watch-section {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(112, 210, 174, 0.18);
  background:
    radial-gradient(circle at 14% 8%, rgba(103, 255, 192, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(81, 163, 255, 0.12), transparent 30%),
    linear-gradient(150deg, rgba(11, 20, 22, 0.98), rgba(8, 15, 17, 0.96));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.promo-watch-section[hidden] {
  display: none !important;
}

.promo-watch-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.promo-watch-header h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.promo-watch-header p {
  margin: 0;
  color: rgba(230, 237, 243, 0.76);
}

.promo-watch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(71, 180, 141, 0.14);
  border: 1px solid rgba(103, 255, 192, 0.26);
  color: #bbffe2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-watch-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67ffc0;
  box-shadow: 0 0 12px rgba(103, 255, 192, 0.55);
}

.promo-watch-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .promo-watch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.promo-card,
.promo-empty-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(165deg, rgba(18, 30, 33, 0.96), rgba(10, 18, 20, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.promo-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.promo-card-eyebrow {
  display: grid;
  gap: 6px;
}

.promo-card-eyebrow strong {
  font-size: 1rem;
}

.promo-card-eyebrow span {
  color: rgba(230, 237, 243, 0.62);
  font-size: 0.84rem;
}

.promo-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(233, 240, 245, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.promo-pill.is-new {
  border-color: rgba(255, 210, 106, 0.34);
  background: rgba(255, 210, 106, 0.12);
  color: #ffe4a0;
}

.promo-pill.is-watch {
  border-color: rgba(103, 255, 192, 0.26);
  background: rgba(103, 255, 192, 0.1);
  color: #baffdf;
}

.promo-pill.is-expiry {
  border-color: rgba(255, 144, 144, 0.24);
  background: rgba(255, 144, 144, 0.1);
  color: #ffcbcb;
}

.promo-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.promo-card p,
.promo-empty-card p {
  margin: 0;
  color: rgba(230, 237, 243, 0.8);
}

.promo-meta {
  display: grid;
  gap: 6px;
}

.promo-meta strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.86rem;
}

.promo-meta span {
  color: rgba(230, 237, 243, 0.6);
  font-size: 0.8rem;
}

.promo-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.promo-link {
  color: #8ed3ff;
  font-weight: 700;
}

.promo-link:hover {
  color: #c4ebff;
}

.prop-match-shell {
  display: grid;
  gap: 20px;
}

@media (min-width: 1040px) {
  .prop-match-shell {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
  }
}

.prop-match-sidebar {
  display: grid;
  gap: 18px;
}

@media (min-width: 1040px) {
  .prop-match-sidebar {
    position: sticky;
    top: 82px;
  }
}

.filter-card,
.results-surface {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(165deg, rgba(22, 27, 34, 0.96), rgba(9, 13, 18, 0.96));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.filter-card {
  padding: 18px;
}

.filter-card-header,
.results-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-card-header h2,
.results-header-title h2 {
  margin: 0;
  font-size: 1.02rem;
}

.filter-card-header p,
.results-header-title p {
  margin: 0;
  font-size: 0.88rem;
}

.filter-stack {
  display: grid;
  gap: 16px;
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-group h3 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.filter-chip-grid,
.segment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip,
.segment-btn,
.quick-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.filter-chip:hover,
.segment-btn:hover,
.quick-action-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-chip.is-active,
.segment-btn.is-active,
.quick-action-btn.is-active {
  border-color: rgba(88, 166, 255, 0.45);
  background: rgba(88, 166, 255, 0.14);
  color: #d6ebff;
}

.filter-chip.is-warm {
  border-color: rgba(255, 205, 108, 0.22);
  background: rgba(255, 205, 108, 0.08);
}

.quick-action-btn.is-disabled,
.quick-action-btn:disabled {
  cursor: default;
  color: rgba(230, 237, 243, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.028);
  opacity: 1;
}

.quick-action-btn.is-warm {
  border-color: rgba(255, 205, 108, 0.34);
  background: rgba(255, 205, 108, 0.12);
  color: #ffe6b0;
}

.quick-action-btn.is-disabled:hover,
.quick-action-btn:disabled:hover {
  transform: none;
  text-decoration: none;
  color: rgba(230, 237, 243, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.filter-chip-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 205, 108, 0.14);
  border: 1px solid rgba(255, 205, 108, 0.26);
  color: #ffe2a3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-shell {
  position: relative;
}

.country-select-shell {
  display: block;
}

.country-select-shell select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 205, 108, 0.2);
  background:
    linear-gradient(160deg, rgba(17, 22, 30, 0.98), rgba(10, 13, 19, 0.96));
  color: var(--text-primary);
  padding: 12px 14px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.country-select-shell select:focus {
  outline: none;
  border-color: rgba(255, 205, 108, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 205, 108, 0.12);
}

.filter-helper {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.search-shell input,
.wizard-shell input,
.wizard-shell select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(7, 10, 14, 0.78);
  color: var(--text-primary);
  padding: 12px 14px;
  font: inherit;
}

.search-shell input:focus,
.wizard-shell input:focus,
.wizard-shell select:focus {
  outline: none;
  border-color: rgba(88, 166, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.14);
}

.results-surface {
  padding: 20px;
}

.asset-type-banner {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 205, 108, 0.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 205, 108, 0.1), transparent 34%),
    linear-gradient(160deg, rgba(20, 25, 32, 0.96), rgba(10, 13, 19, 0.96));
}

.asset-type-banner-groups {
  display: grid;
  gap: 16px;
}

.asset-type-banner-group {
  display: grid;
  gap: 10px;
}

.asset-type-banner-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-type-banner-helper {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
}

.asset-type-banner-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.asset-type-banner-row .filter-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  white-space: nowrap;
}

.results-toolbar {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .results-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.results-toolbar-main,
.results-toolbar-side {
  display: grid;
  gap: 12px;
}

.results-toolbar-side {
  justify-items: start;
}

@media (min-width: 860px) {
  .results-toolbar-side {
    justify-items: end;
  }
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
}

.market-tab.is-active {
  border-color: rgba(255, 205, 108, 0.38);
  background: rgba(255, 205, 108, 0.12);
  color: #ffe4a1;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.toolbar-controls label {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toolbar-controls select {
  min-height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 10, 14, 0.78);
  color: var(--text-primary);
  padding: 0 12px;
  font: inherit;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.results-meta p {
  margin: 0;
}

.results-meta .summary-strong {
  color: var(--text-primary);
  font-weight: 700;
}

.active-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.22);
  color: #d7ebff;
}

.active-filter-pill button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
}

.results-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.firm-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(255, 208, 106, 0.08), transparent 32%),
    linear-gradient(165deg, rgba(12, 17, 24, 0.96), rgba(7, 10, 14, 0.98));
}

.firm-group-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.firm-group-kicker {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.firm-group-header h3 {
  margin: 6px 0 6px;
  font-size: 1.4rem;
}

.firm-group-header p {
  margin: 0;
  color: var(--text-secondary);
}

.firm-group-description {
  margin-top: 8px;
  max-width: 64ch;
  color: rgba(230, 237, 243, 0.72);
  font-size: 0.94rem;
}

.firm-group-meta,
.firm-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.firm-group-meta {
  margin-top: 12px;
}

.firm-group-actions {
  align-items: center;
  justify-content: flex-end;
}

.vote-cluster {
  display: grid;
  gap: 6px;
}

.vote-cluster.is-compact {
  gap: 0;
}

.vote-cluster-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vote-cluster-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.vote-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  color: var(--text-primary);
}

.vote-btn.is-up.is-active {
  color: #d8ffdf;
  border-color: rgba(63, 185, 80, 0.44);
  background: rgba(63, 185, 80, 0.14);
}

.vote-btn.is-down.is-active {
  color: #ffd9d4;
  border-color: rgba(248, 81, 73, 0.44);
  background: rgba(248, 81, 73, 0.14);
}

.vote-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.vote-glyph {
  font-size: 0.75rem;
  line-height: 1;
}

.vote-count {
  min-width: 0.9rem;
  text-align: center;
}

.firm-status-pill,
.firm-group-link,
.firm-reputation-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.firm-status-pill {
  color: #d6ebff;
  border-color: rgba(88, 166, 255, 0.22);
  background: rgba(88, 166, 255, 0.1);
}

.firm-asset-pill {
  color: #ffe4a1;
  border-color: rgba(255, 205, 108, 0.28);
  background: rgba(255, 205, 108, 0.1);
}

.firm-group-link:hover,
.firm-reputation-pill:hover {
  text-decoration: none;
  color: var(--text-primary);
  border-color: rgba(255, 205, 108, 0.28);
  background: rgba(255, 205, 108, 0.1);
}

.firm-reputation-pill {
  color: #baffdf;
  border-color: rgba(103, 255, 192, 0.24);
  background: rgba(103, 255, 192, 0.08);
}

.firm-group-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.offer-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.08), transparent 34%),
    linear-gradient(165deg, rgba(18, 23, 31, 0.97), rgba(7, 10, 14, 0.98));
}

.offer-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.offer-card-utility {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.offer-card-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-card-eyebrow .badge,
.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
}

.offer-card-eyebrow .badge.is-accent {
  border-color: rgba(255, 205, 108, 0.3);
  background: rgba(255, 205, 108, 0.12);
  color: #ffe4a1;
}

.offer-card-eyebrow .badge.is-cool {
  border-color: rgba(88, 166, 255, 0.28);
  background: rgba(88, 166, 255, 0.12);
  color: #d6ebff;
}

.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  cursor: pointer;
}

.compare-toggle.is-active {
  border-color: rgba(63, 185, 80, 0.44);
  background: rgba(63, 185, 80, 0.13);
  color: #d6ffe0;
}

.offer-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.offer-card h3 .firm-name {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-card-summary {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.offer-card-summary.is-scoreless {
  grid-template-columns: minmax(0, 1fr);
}

.score-orb {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 217, 130, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(88, 166, 255, 0.18), rgba(88, 166, 255, 0.06)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.score-orb strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.score-orb span {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: baseline;
}

.offer-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.offer-price-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.offer-match-copy p {
  margin: 10px 0 0;
}

.metric-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.metric-tile {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.metric-tile .label {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-tile .value {
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 700;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-actions .btn {
  min-width: 0;
}

.offer-actions a.btn {
  text-decoration: none;
}

.empty-state {
  margin-top: 18px;
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  text-align: center;
}

.compare-tray {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(8, 12, 18, 0.96), rgba(22, 27, 34, 0.94));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46);
}

.vote-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 140;
  display: grid;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(155deg, rgba(16, 22, 30, 0.98), rgba(10, 13, 19, 0.96));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.vote-toast[hidden] {
  display: none;
}

.vote-toast-copy {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.vote-toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-tray[hidden] {
  display: none;
}

.compare-tray-shell {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .compare-tray-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.compare-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-selected-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-selected-card button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}

.compare-tray-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(10px);
}

.panel-backdrop[hidden] {
  display: none;
}

.detail-drawer,
.wizard-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 140;
  width: min(540px, 100vw);
  height: 100vh;
  padding: 22px 18px 28px;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.98), rgba(15, 20, 27, 0.98));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  box-shadow: -28px 0 56px rgba(0, 0, 0, 0.42);
}

.detail-drawer[hidden],
.wizard-drawer[hidden] {
  display: none;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.drawer-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
}

.drawer-stack {
  display: grid;
  gap: 16px;
}

.drawer-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.drawer-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.detail-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.detail-stage-grid {
  display: grid;
  gap: 12px;
}

.detail-stage-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
}

.detail-stage-card .stage-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-stage-card .stage-title strong {
  font-size: 1rem;
}

.detail-stage-metrics {
  display: grid;
  gap: 8px;
}

@media (min-width: 540px) {
  .detail-stage-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-stage-metric {
  display: grid;
  gap: 4px;
}

.detail-stage-metric .label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.detail-stage-metric .value {
  color: var(--text-primary);
  font-weight: 700;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.wizard-progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.wizard-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 205, 108, 0.82), rgba(88, 166, 255, 0.82));
}

.wizard-shell {
  display: grid;
  gap: 14px;
}

.wizard-mode-row,
.wizard-option-grid,
.wizard-permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-option-btn,
.wizard-mode-btn,
.wizard-permission-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
}

.wizard-option-btn.is-active,
.wizard-mode-btn.is-active,
.wizard-permission-btn.is-active {
  border-color: rgba(88, 166, 255, 0.44);
  background: rgba(88, 166, 255, 0.14);
  color: #d6ebff;
}

.wizard-permission-btn.must-avoid {
  border-color: rgba(248, 81, 73, 0.22);
}

.wizard-permission-btn.must-avoid.is-active {
  border-color: rgba(248, 81, 73, 0.5);
  background: rgba(248, 81, 73, 0.14);
  color: #ffd5d2;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-modal {
  position: fixed;
  inset: 40px 16px 16px;
  z-index: 150;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.98), rgba(15, 20, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
  overflow: hidden;
}

.compare-modal[hidden] {
  display: none;
}

.compare-modal-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-modal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.compare-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-table-wrap {
  overflow: auto;
  padding: 0 12px 18px;
}

.compare-table {
  min-width: 840px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  background: rgba(9, 13, 18, 0.96);
  z-index: 1;
}

.compare-table thead th:first-child,
.compare-table tbody td:first-child {
  position: sticky;
  left: 0;
  background: rgba(9, 13, 18, 0.96);
  z-index: 1;
}

.compare-cell-better {
  color: #d6ffe0;
}

.compare-cell-worse {
  color: #ffdad7;
}

.compare-cell-unknown {
  color: var(--text-muted);
}

.source-link {
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: none;
  border-color: rgba(255, 205, 108, 0.32);
  background: rgba(255, 205, 108, 0.1);
  color: var(--text-primary);
}

.detail-inline-link {
  color: #9dd9ff;
  font-weight: 700;
}

.detail-inline-link:hover {
  color: #d7efff;
}

.diagnostic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 205, 108, 0.24);
  background: rgba(255, 205, 108, 0.1);
  color: #ffe2a0;
  font-size: 0.82rem;
  font-weight: 700;
}

.micro-note {
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (max-width: 719px) {
  .prop-match {
    padding: 22px 14px 120px;
  }

  .prop-match-hero,
  .filter-card,
  .results-surface {
    border-radius: 22px;
  }

  .asset-type-banner {
    padding: 14px;
    border-radius: 18px;
  }

  .offer-card-summary {
    grid-template-columns: 1fr;
  }

  .score-orb {
    width: 92px;
    height: 92px;
  }

  .compare-modal {
    inset: 12px;
    border-radius: 22px;
  }
}
