/* Bonuses lobby */

.bn-page {
  padding-bottom: 36px;
}

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

.bn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 14px;
  align-items: start;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.bn-layout > * {
  min-width: 0;
  max-width: 100%;
}

.bn-main {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.bn-top {
  margin-bottom: 14px;
}

.bn-title h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.bn-title p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 54ch;
}

.bn-banners {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 168px;
  background: var(--card);
  margin: 14px 0 18px;
}

.bn-banners .hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.bn-banners .hero-track::-webkit-scrollbar {
  display: none;
}

.bn-slide {
  position: relative;
  min-width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 1280 / 360;
  min-height: 180px;
  isolation: isolate;
}

.bn-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bn-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 14, 28, 0.88) 0%, rgba(6, 14, 28, 0.55) 42%, rgba(6, 14, 28, 0.15) 72%, transparent 100%),
    linear-gradient(0deg, rgba(6, 14, 28, 0.45), transparent 40%);
  pointer-events: none;
}

.bn-slide-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: clamp(16px, 3vw, 32px);
  max-width: min(480px, 62%);
}

.bn-slide-copy .eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 223, 0, 0.16);
  color: #ffe566;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bn-slide-copy h2 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.bn-slide-copy p {
  color: #d7e4f5;
  font-size: clamp(13px, 1.5vw, 15px);
  max-width: 38ch;
}

.bn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.bn-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bn-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bn-tab[aria-selected="true"] {
  background: #0581ff;
  color: #fff;
}

.bn-tab:hover:not([aria-selected="true"]) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.bn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.bn-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 28, 48, 0.85);
  color: #c8d4e6;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bn-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.bn-chip[aria-pressed="true"] {
  border-color: rgba(5, 129, 255, 0.75);
  background: rgba(5, 129, 255, 0.18);
  color: #fff;
}

.bn-chip:hover {
  border-color: rgba(5, 129, 255, 0.45);
  color: #fff;
}

.bn-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
}

.bn-section-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
}

.bn-section-head span {
  color: var(--muted);
  font-size: 13px;
}

.bn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #101d31;
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bn-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 129, 255, 0.45);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.bn-card.is-hidden {
  display: none;
}

.bn-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a1424;
}

.bn-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bn-card:hover .bn-card-media img {
  transform: scale(1.04);
}

.bn-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, #101d31, transparent);
  pointer-events: none;
}

.bn-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 223, 0, 0.92);
  color: #1a1400;
}

.bn-badge.badge-new {
  background: rgba(46, 204, 113, 0.95);
  color: #04150b;
}

.bn-badge.badge-ex {
  background: rgba(155, 89, 255, 0.95);
  color: #fff;
}

.bn-badge.badge-hot {
  background: rgba(231, 76, 60, 0.95);
  color: #fff;
}

.bn-cat-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(6, 14, 28, 0.72);
  color: #cfe3ff;
  backdrop-filter: blur(4px);
}

.bn-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 14px 14px;
  flex: 1;
}

.bn-card-body h3 {
  font-size: 17px;
  line-height: 1.25;
}

.bn-card-body p {
  color: #b7c6da;
  font-size: 13px;
  line-height: 1.45;
  flex: 1;
}

.bn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px;
}

.bn-meta span {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #9eb4cf;
}

.bn-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.bn-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  padding: 10px 12px;
}

.bn-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #d7e4f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bn-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bn-rail {
  position: sticky;
  top: 84px;
  align-self: start;
}

.bn-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 14px;
  background: rgba(15, 28, 48, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bn-rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  border-radius: 10px;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
}

.bn-rail a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.bn-rail img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.bn-seo {
  margin-top: 28px;
}

.bn-seo-box {
  position: relative;
  background: #0f1c30;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 22px 22px 18px;
}

.bn-seo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bn-seo-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
}

.bn-seo-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(5, 129, 255, 0.45);
  background: rgba(5, 129, 255, 0.12);
  color: #9ed0ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bn-seo-toggle:hover {
  background: rgba(5, 129, 255, 0.22);
  border-color: rgba(5, 129, 255, 0.7);
}

.bn-seo-toggle .chev {
  display: inline-block;
  transition: transform 0.28s ease;
}

.bn-seo-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.bn-seo-body {
  position: relative;
  overflow: hidden;
  max-height: 240px;
  transition: max-height 0.45s ease;
}

.bn-seo-body.is-open {
  max-height: 8000px;
}

.bn-seo-body:not(.is-open)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 28, 48, 0), #0f1c30 88%);
}

.bn-seo-body h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.bn-seo-body p {
  color: #c8d4e6;
  margin-bottom: 10px;
  max-width: 78ch;
}

.bn-seo-body ul {
  margin: 8px 0 14px 18px;
  list-style: disc;
  color: #c8d4e6;
}

.bn-seo-body li {
  margin: 4px 0;
}

.bn-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.bn-step {
  position: relative;
  padding: 16px 14px 14px;
  border-radius: 14px;
  background: rgba(5, 129, 255, 0.08);
  border: 1px solid rgba(5, 129, 255, 0.18);
}

.bn-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0581ff;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.bn-step h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.bn-step p {
  font-size: 13px;
  margin: 0;
  max-width: none;
}

.bn-table-wrap {
  overflow-x: auto;
  margin: 16px 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bn-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 13px;
}

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

.bn-table th {
  background: rgba(5, 129, 255, 0.12);
  color: #d7ecff;
  font-weight: 700;
  white-space: nowrap;
}

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

.bn-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.bn-faq details {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.15);
}

.bn-faq summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  list-style: none;
}

.bn-faq summary::-webkit-details-marker {
  display: none;
}

.bn-faq details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bn-faq details p {
  padding: 10px 14px 14px;
  margin: 0;
  max-width: none;
}

@keyframes bn-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bn-card {
  animation: bn-fade-up 0.45s ease both;
}

.bn-card:nth-child(1) { animation-delay: 0.02s; }
.bn-card:nth-child(2) { animation-delay: 0.06s; }
.bn-card:nth-child(3) { animation-delay: 0.1s; }
.bn-card:nth-child(4) { animation-delay: 0.14s; }
.bn-card:nth-child(5) { animation-delay: 0.18s; }
.bn-card:nth-child(6) { animation-delay: 0.22s; }
.bn-card:nth-child(7) { animation-delay: 0.26s; }
.bn-card:nth-child(8) { animation-delay: 0.3s; }

@media (max-width: 1100px) {
  .bn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .bn-rail {
    position: static;
    order: -1;
  }

  .bn-rail-inner {
    flex-direction: row;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .bn-rail a {
    min-width: 68px;
  }

  .bn-steps {
    grid-template-columns: 1fr;
  }

  .bn-seo-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .bn-grid {
    grid-template-columns: 1fr;
  }

  .bn-slide {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .bn-slide-copy {
    max-width: 88%;
  }

  .bn-actions {
    flex-direction: column;
  }

  .bn-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bn-card,
  .bn-card-media img,
  .bn-seo-body {
    animation: none;
    transition: none;
  }
}
