/* Benchmark comparison — Tweakers-inspired layout, GO-EUC brand */

.bm {
  --bm-bg: #0f0e15;
  --bm-surface: #17151e;
  --bm-surface-2: #1e1c28;
  --bm-line: rgba(255, 255, 255, 0.1);
  --bm-line-strong: rgba(255, 255, 255, 0.18);
  --bm-text: #eee;
  --bm-muted: #9a97a8;
  --bm-accent: #b8ec4e;
  --bm-accent-ink: #0f0e15;
  --bm-danger: #ff6b6b;
  --bm-radius: 0;
  --bm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bm-max: 1440px;
  --bm-tray-h: 72px;

  color: var(--bm-text);
  font-family: var(--bm-font);
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(184, 236, 78, 0.08), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgba(80, 120, 255, 0.06), transparent 50%),
    var(--bm-bg);
  min-height: 70vh;
  padding-bottom: calc(var(--bm-tray-h) + 32px);
}

.bm * {
  box-sizing: border-box;
}

.bm .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bm-hero {
  border-bottom: 1px solid var(--bm-line);
}

.bm-hero__inner,
.bm-toolbar__inner,
.bm-layout,
.bm-tray__inner {
  max-width: var(--bm-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.bm-hero__inner {
  padding-top: 48px;
  padding-bottom: 36px;
}

.bm-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--bm-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bm-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.bm-hero__lead {
  margin: 0;
  max-width: 42rem;
  color: var(--bm-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.bm-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 14, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bm-line);
}

.bm-toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
  padding-top: 14px;
  padding-bottom: 14px;
}

.bm-toolbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: var(--bm-muted);
  font-size: 0.9rem;
  padding-bottom: 8px;
}

.bm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.bm-field--grow {
  flex: 1 1 240px;
  min-width: 200px;
}

.bm-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bm-muted);
}

.bm-input,
.bm-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--bm-line-strong);
  border-radius: var(--bm-radius);
  background: var(--bm-surface);
  color: var(--bm-text);
  font: inherit;
  font-size: 0.95rem;
}

.bm-input:focus,
.bm-select:focus {
  outline: 2px solid rgba(184, 236, 78, 0.45);
  outline-offset: 1px;
  border-color: var(--bm-accent);
}

.bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--bm-radius);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bm-btn--primary {
  background: var(--bm-accent);
  color: var(--bm-accent-ink);
}

.bm-btn--primary:hover {
  filter: brightness(1.05);
}

.bm-btn--ghost {
  background: transparent;
  border-color: var(--bm-line-strong);
  color: var(--bm-text);
}

.bm-btn--ghost:hover {
  border-color: var(--bm-accent);
  color: var(--bm-accent);
}

.bm-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--bm-accent);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bm-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 40px;
  align-items: start;
}

.bm-filters {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 16px;
  background: var(--bm-surface);
  border: 1px solid var(--bm-line);
}

.bm-filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bm-line);
}

.bm-filters__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bm-filter-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--bm-line);
}

.bm-filter-group:last-child {
  border-bottom: 0;
}

.bm-filter-group h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bm-muted);
}

.bm-filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bm-input--compact {
  height: 34px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.bm-filter-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--bm-muted);
  font-size: 0.78rem;
}

.bm-filter-pager .bm-link:disabled {
  opacity: 0.35;
  cursor: default;
  text-decoration: none;
}

.bm-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.bm-pager__label {
  color: var(--bm-muted);
  font-size: 0.9rem;
  min-width: 8rem;
  text-align: center;
}

.bm-pager .bm-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.bm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--bm-text);
  cursor: pointer;
}

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

.bm-check__count {
  margin-left: auto;
  color: var(--bm-muted);
  font-size: 0.8rem;
}

.bm-hint {
  margin: 10px 0 0;
  color: var(--bm-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.bm-hint code {
  color: var(--bm-accent);
  font-size: 0.75rem;
}

.bm-main {
  min-width: 0;
}

.bm-status {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
  color: #ffc9c9;
  font-size: 0.92rem;
  line-height: 1.5;
}

.bm-status[data-tone="info"] {
  border-color: rgba(184, 236, 78, 0.35);
  background: rgba(184, 236, 78, 0.08);
  color: #e8f7c4;
}

.bm-table-wrap {
  overflow: auto;
  border: 1px solid var(--bm-line);
  background: var(--bm-surface);
}

.bm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bm-table th,
.bm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bm-line);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.bm-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bm-surface-2);
  color: var(--bm-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bm-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.bm-table tbody tr:hover {
  background: rgba(184, 236, 78, 0.04);
}

.bm-table tbody tr.is-selected {
  background: rgba(184, 236, 78, 0.1);
}

.bm-table tbody tr.is-selected:hover {
  background: rgba(184, 236, 78, 0.14);
}

.bm-col-check {
  width: 44px;
}

.bm-sku-name {
  display: block;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.bm-sku-meta {
  display: block;
  margin-top: 2px;
  color: var(--bm-muted);
  font-size: 0.78rem;
}

.bm-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--bm-line-strong);
  background: var(--bm-surface-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bm-table td {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-badge--azure {
  border-color: rgba(0, 120, 212, 0.5);
  color: #7ec8ff;
}

.bm-badge--aws {
  border-color: rgba(255, 153, 0, 0.5);
  color: #ffc266;
}

.bm-badge--gcp {
  border-color: rgba(52, 168, 83, 0.5);
  color: #8be09d;
}

.bm-num {
  font-variant-numeric: tabular-nums;
}

.bm-muted {
  color: var(--bm-muted);
}

.bm-row--loading td,
.bm-row--empty td {
  text-align: center;
  color: var(--bm-muted);
  padding: 36px 16px;
  white-space: normal;
}

.bm-compare {
  margin-top: 36px;
  scroll-margin-top: 100px;
}

.bm-compare__head h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bm-compare__sub {
  margin: 0 0 16px;
  color: var(--bm-muted);
  font-size: 0.95rem;
}

.bm-compare-scroll {
  overflow: auto;
  border: 1px solid var(--bm-line);
  background: var(--bm-surface);
}

.bm-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bm-compare-table th,
.bm-compare-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--bm-line);
  border-right: 1px solid var(--bm-line);
  text-align: left;
  vertical-align: top;
}

.bm-compare-table th:last-child,
.bm-compare-table td:last-child {
  border-right: 0;
}

.bm-compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bm-surface-2);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.bm-compare-table thead th:first-child,
.bm-compare-table .bm-spec-label {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bm-surface);
  min-width: 160px;
  max-width: 220px;
  color: var(--bm-muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.bm-compare-table thead th:first-child {
  z-index: 3;
  background: var(--bm-surface-2);
}

.bm-compare-table .bm-spec-section td {
  background: rgba(184, 236, 78, 0.06);
  color: var(--bm-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-color: var(--bm-line-strong);
}

.bm-compare-table .is-diff {
  color: #fff;
  font-weight: 600;
}

.bm-compare-table .is-same {
  color: var(--bm-muted);
}

.bm-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(23, 21, 30, 0.96);
  border-top: 1px solid var(--bm-line-strong);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
}

.bm-tray__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--bm-tray-h);
  padding-top: 10px;
  padding-bottom: 10px;
}

.bm-tray__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.bm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 6px 10px;
  border: 1px solid var(--bm-line-strong);
  background: var(--bm-surface-2);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-chip button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--bm-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.bm-chip button:hover {
  color: var(--bm-danger);
}

.bm-tray__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

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

  .bm-filters {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .bm-hero__inner,
  .bm-toolbar__inner,
  .bm-layout,
  .bm-tray__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bm-tray__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .bm-tray__actions {
    justify-content: stretch;
  }

  .bm-tray__actions .bm-btn {
    flex: 1;
  }
}
