:root {
  --bn-bg: #0b1220;
  --bn-card: #131d33;
  --bn-text: #e8efff;
  --bn-muted: #9fb0d4;
  --bn-accent: #35c9ff;
  --bn-ok: #28c76f;
  --bn-warn: #ffb020;
  --bn-line: rgba(159, 176, 212, 0.2);
  --bn-radius: 16px;
}

* { box-sizing: border-box; }

body.bundles-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--bn-text);
  background:
    radial-gradient(80% 80% at 10% 0%, #17315f 0%, transparent 60%),
    var(--bn-bg);
}

.bn-wrap {
  width: min(1180px, 94vw);
  margin: 28px auto 64px;
}

.bn-topbar,
.bn-filters,
.bn-cycle,
.bn-card-head,
.bn-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.bn-hero h1 {
  margin: 18px 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.bn-hero p {
  color: var(--bn-muted);
  margin: 0 0 18px;
  max-width: 62ch;
}

.bn-filters {
  margin: 8px 0 20px;
}

.bn-filters input,
.bn-filters select,
.bn-field input,
.bn-field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bn-line);
  color: var(--bn-text);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
  font: inherit;
}

.bn-filters input { flex: 1 1 220px; }

.bn-cycle {
  display: inline-flex;
  border: 1px solid var(--bn-line);
  border-radius: 10px;
  overflow: hidden;
}

.bn-cycle button {
  border: 0;
  background: transparent;
  color: var(--bn-muted);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.bn-cycle button[aria-pressed="true"] {
  background: rgba(53, 201, 255, 0.2);
  color: var(--bn-text);
}

.bn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.bn-card,
.bn-panel {
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius);
  background: var(--bn-card);
  padding: 20px;
}

.bn-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.bn-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.bn-meta,
.bn-muted {
  color: var(--bn-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bn-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(53, 201, 255, 0.16);
}

.bn-badge.popular { background: rgba(255, 176, 32, 0.18); color: #ffd58a; }
.bn-badge.value { background: rgba(40, 199, 111, 0.16); color: #8ef0b6; }
.bn-badge.new { background: rgba(244, 114, 182, 0.16); color: #f9a8d4; }

.bn-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bn-mods li {
  border: 1px solid var(--bn-line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.78rem;
}

.bn-price-block strong {
  display: block;
  font-size: 1.45rem;
}

.bn-save {
  color: var(--bn-ok);
  font-weight: 700;
}

.bn-btn,
.bn-link {
  border: 1px solid var(--bn-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bn-text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.bn-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.bn-btn-primary {
  background: linear-gradient(135deg, #35c9ff, #6a7cff);
  border: 0;
}

.bn-btn:focus-visible,
.bn-cycle button:focus-visible,
.bn-filters input:focus-visible,
.bn-filters select:focus-visible,
.bn-mod-toggle:focus-visible {
  outline: 2px solid var(--bn-accent);
  outline-offset: 2px;
}

.bn-warn {
  color: var(--bn-warn);
  background: rgba(255, 176, 32, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
}

.bn-error {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
}

.bn-detail-grid,
.bn-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.bn-mod-list {
  display: grid;
  gap: 8px;
}

.bn-mod-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--bn-line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.bn-mod-toggle[aria-pressed="true"] {
  border-color: rgba(53, 201, 255, 0.6);
}

.bn-summary dt {
  color: var(--bn-muted);
  font-size: 0.86rem;
}

.bn-summary dd {
  margin: 0 0 10px;
  font-weight: 700;
}

.bn-faq details {
  border-bottom: 1px solid var(--bn-line);
  padding: 8px 0;
}

.bn-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.bn-hidden { display: none !important; }

@media (max-width: 800px) {
  .bn-detail-grid,
  .bn-builder {
    grid-template-columns: 1fr;
  }
  .bn-grid {
    grid-template-columns: 1fr;
  }
}
