/* /bonus redesign — tokens from :root only */
.bnx {
  --bnx-text: rgba(255, 255, 255, 0.92);
  --bnx-muted: rgba(255, 255, 255, 0.55);
  --bnx-faint: rgba(255, 255, 255, 0.35);
  max-width: var(--site-content-max, 1500px);
  margin: 0 auto;
  padding: 12px var(--site-gutter, 50px) 48px;
  color: var(--bnx-text);
  box-sizing: border-box;
}

.bnx *,
.bnx *::before,
.bnx *::after { box-sizing: border-box; }

.bnx.is-guest .timer-container,
.bnx.is-guest .fw-timer-block,
.bnx.is-guest .fw-modal__timer-row,
.bnx.is-guest .fw-promo-validity {
  display: none !important;
}

@keyframes bnx-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.bnx__section {
  animation: bnx-rise 0.45s ease both;
}
.bnx__section:nth-child(2) { animation-delay: 0.05s; }
.bnx__section:nth-child(3) { animation-delay: 0.1s; }
.bnx__section:nth-child(4) { animation-delay: 0.15s; }
.bnx__section:nth-child(5) { animation-delay: 0.2s; }

/* —— Hero —— */
.bnx-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--global-border-radius, 20px);
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--global-brand) 28%, transparent), transparent 55%),
    radial-gradient(90% 70% at 100% 20%, color-mix(in srgb, var(--global-lime) 12%, transparent), transparent 50%),
    linear-gradient(165deg, var(--bg-secondary) 0%, var(--bg-classic) 100%);
  padding: 28px 28px 32px;
  margin-bottom: 22px;
}

.bnx-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bnx-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  transition: color 0.15s ease;
}
.bnx-hero__back:hover { color: #fff; }

.bnx-hero__title {
  margin: 0 0 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.bnx-hero__sub {
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--bnx-muted);
}

.bnx-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: none;
  border-radius: var(--mini-border-radius, 10px);
  background: var(--global-brand);
  color: #04140a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bnx-hero__cta:hover {
  background: var(--global-lime);
  transform: translateY(-1px);
}

/* —— Welcome steps track —— */
.bnx-steps {
  margin-bottom: 28px;
}

.bnx-steps__head {
  margin-bottom: 14px;
}

.bnx-steps__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bnx-faint);
  margin: 0 0 6px;
}

.bnx-steps__title {
  margin: 0;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bnx-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.bnx-step {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 168px;
  padding: 18px 16px;
  border-radius: var(--global-border-radius, 20px);
  background: var(--bg-secondary);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.bnx-step--active {
  border-color: color-mix(in srgb, var(--global-brand) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--global-brand) 25%, transparent),
    0 0 28px color-mix(in srgb, var(--global-brand) 18%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--global-brand) 14%, var(--bg-secondary)), var(--bg-secondary));
}

.bnx-step--done {
  border-color: color-mix(in srgb, var(--global-brand) 35%, transparent);
}

.bnx-step--locked {
  opacity: 0.55;
  background: var(--under-seconadary);
}

.bnx-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bnx-step__num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--base-alfa-neutral);
  color: #fff;
}

.bnx-step--active .bnx-step__num {
  background: var(--global-brand);
  color: #04140a;
}

.bnx-step__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bnx-faint);
}

.bnx-step--done .bnx-step__status { color: var(--global-brand); }
.bnx-step--active .bnx-step__status { color: var(--global-lime); }

.bnx-step__title {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bnx-step__fs {
  margin: 0;
  font-size: 13px;
  color: var(--bnx-muted);
}

.bnx-step__timer {
  display: flex;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  color: var(--bnx-muted);
}

.bnx-step__timer .time-block {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.bnx-step__timer .time-value { color: #fff; }
.bnx-step__timer .time-label { color: var(--bnx-faint); }

.bnx-step__actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bnx-step__link {
  flex: 1 1 auto;
  color: var(--bnx-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bnx-step__link:hover { color: #fff; }

.bnx-step__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 14px;
  border-radius: var(--mini-border-radius, 10px);
  background: var(--global-brand);
  color: #04140a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.bnx-step__btn:hover { background: var(--global-lime); }

.bnx-step__btn--done {
  background: color-mix(in srgb, var(--global-brand) 35%, var(--base-neutral));
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.bnx-step__btn--locked {
  background: var(--base-alfa-neutral);
  color: var(--bnx-faint);
  cursor: default;
  pointer-events: none;
}

.bnx-step__lock-note {
  margin: 0;
  font-size: 12px;
  color: var(--bnx-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* —— Fortune wheel panel —— */
.bnx-wheel {
  margin-bottom: 28px;
}

.bnx-wheel__frame {
  border-radius: var(--global-border-radius, 20px);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid color-mix(in srgb, var(--global-lime) 12%, transparent);
}

.bnx .fw-page { margin: 0; }
.bnx .fw-banner {
  border-radius: 0;
  min-height: 200px;
}

/* —— Promo —— */
.bnx-promo {
  margin-bottom: 28px;
}

.bnx-promo__head { margin-bottom: 12px; }

.bnx-promo__title {
  margin: 0 0 6px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bnx-promo__sub {
  margin: 0;
  font-size: 14px;
  color: var(--bnx-muted);
}

.bnx-promo__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 10px 10px 14px;
  border: none;
  border-radius: var(--global-border-radius, 20px);
  background: var(--bg-secondary);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
  appearance: none;
}
.bnx-promo__trigger:hover {
  background: color-mix(in srgb, var(--bg-secondary) 70%, var(--top-secondary));
}

.bnx-promo__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--mini-border-radius, 10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--global-lime);
  background: var(--base-alfa-neutral);
}

.bnx-promo__field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--mini-border-radius, 10px);
  background: var(--bg-classic);
  color: var(--bnx-faint);
  font-size: 15px;
  pointer-events: none;
  user-select: none;
}

.bnx-promo__action {
  flex-shrink: 0;
  min-width: 108px;
  padding: 14px 18px;
  border-radius: var(--mini-border-radius, 10px);
  background: var(--global-brand);
  color: #04140a;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 640px) {
  .bnx-promo__trigger { flex-wrap: wrap; }
  .bnx-promo__field,
  .bnx-promo__action { width: 100%; flex: 1 1 100%; }
}

/* —— Tasks —— */
.bnx-tasks { margin-bottom: 28px; }

.bnx-tasks__head { margin-bottom: 14px; }

.bnx-tasks__title {
  margin: 0 0 6px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bnx-tasks__sub {
  margin: 0;
  font-size: 14px;
  color: var(--bnx-muted);
}

.bnx-tasks__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--global-border-radius, 20px);
  background: var(--bg-secondary);
  padding: 8px;
}

.bnx-task {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 12px;
  border-radius: var(--mini-border-radius, 10px);
  transition: background 0.15s ease;
}
.bnx-task:hover {
  background: var(--base-alfa-neutral-hover);
}

.bnx-task__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--base-alfa-neutral);
  color: var(--global-brand);
  font-size: 18px;
}

.bnx-task__body { min-width: 0; }

.bnx-task__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.bnx-task__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--bnx-muted);
}

.bnx-task__side {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 12px;
}

.bnx-task__reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5em;
  padding: 8px 12px;
  border-radius: var(--mini-border-radius, 10px);
  background: color-mix(in srgb, var(--global-brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--global-brand) 28%, transparent);
  font-size: 13px;
  font-weight: 800;
  color: var(--global-lime);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.bnx-task__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 9px 16px;
  border-radius: var(--mini-border-radius, 10px);
  border: none;
  background: var(--global-brand);
  color: #04140a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.bnx-task__btn:hover { background: var(--global-lime); }

.bnx-task__btn--ghost {
  background: var(--base-alfa-neutral);
  color: #fff;
}
.bnx-task__btn--ghost:hover {
  background: var(--base-alfa-neutral-hover);
}

@media (max-width: 640px) {
  .bnx-task {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .bnx-task__side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
  }
  .bnx-task__reward {
    min-width: 0;
  }
  .bnx-task__btn {
    min-width: 0;
    flex: 0 0 auto;
  }
}
}

/* —— FAQ —— */
.bnx-faq { margin-bottom: 12px; }

.bnx-faq__title {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bnx-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bnx-faq__item {
  border-radius: var(--mini-border-radius, 10px);
  background: var(--bg-secondary);
  overflow: hidden;
}

.bnx-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  list-style: none;
  user-select: none;
}
.bnx-faq__summary::-webkit-details-marker { display: none; }
.bnx-faq__summary::marker { content: ''; }

.bnx-faq__chev {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--bnx-faint);
  border-bottom: 2px solid var(--bnx-faint);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.22s ease;
}
.bnx-faq__item[open] .bnx-faq__chev {
  transform: rotate(225deg);
  margin-top: 2px;
  border-color: var(--global-brand);
}

.bnx-faq__body {
  padding: 0 16px 16px;
  color: var(--bnx-muted);
  font-size: 14px;
  line-height: 1.55;
}
.bnx-faq__body p { margin: 0; }
.bnx-faq__body ol {
  margin: 0;
  padding-left: 1.25em;
}
.bnx-faq__body li + li { margin-top: 0.55em; }

@media (max-width: 768px) {
  .bnx { padding: 8px var(--site-gutter, 15px) 36px; }
  .bnx-hero { padding: 22px 18px 26px; }
}
