/* ============================================================
   Mood — страница бонусов
   Разделы: Бонусы, Кэшбэк, FreeSpin (фриспины за проигрыш).
   Разметка: index.html #pageBonuses + генерация в casino.js.
   ============================================================ */

#pageBonuses {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-bottom: var(--space-7);
}

/* ---------- Шапка страницы и промокод ---------- */

.bp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.bp-head-titles {
  min-width: 0;
}

.bp-head-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bp-head-sub {
  margin: var(--space-2) 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.bp-promo {
  flex: 0 1 380px;
  min-width: 260px;
}

.bp-promo-input {
  display: flex;
  gap: var(--space-2);
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.bp-promo-input:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.bp-promo-input:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong));
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-sm);
}

.bp-promo-field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: background-color var(--transition), color var(--transition);
}

.bp-promo-field:hover {
  background: color-mix(in srgb, var(--surface-3) 42%, transparent);
}

.bp-promo-input:focus-within .bp-promo-field {
  background: transparent;
}

.bp-promo-field:focus {
  outline: none;
}

.bp-promo-field::placeholder {
  color: var(--text-dim);
  opacity: 0.85;
}

/* Chrome autofill: убираем бело-голубой фон и сохраняем ховер/фокус */
.bp-promo-field:-webkit-autofill,
.bp-promo-field:-webkit-autofill:hover,
.bp-promo-field:-webkit-autofill:focus,
.bp-promo-field:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  border-radius: var(--radius-pill);
  -webkit-box-shadow: 0 0 0 60px var(--surface) inset !important;
  box-shadow: 0 0 0 60px var(--surface) inset !important;
  transition: background-color 99999s ease-out, color 99999s ease-out;
}

.bp-promo-input:hover .bp-promo-field:-webkit-autofill,
.bp-promo-input:focus-within .bp-promo-field:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 60px var(--surface-2) inset !important;
  box-shadow: 0 0 0 60px var(--surface-2) inset !important;
}

.bp-promo-btn,
.bp-promo-deposit-btn {
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: var(--btn-primary-text);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.bp-promo-btn:hover,
.bp-promo-deposit-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta-hover);
  filter: brightness(1.04);
}

.bp-promo-btn:active,
.bp-promo-deposit-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.bp-promo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.bp-promo-msg {
  margin-top: var(--space-2);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.bp-promo-msg.error {
  background: var(--danger-dim);
  color: var(--danger);
}

.bp-promo-msg.success {
  background: var(--success-dim);
  color: var(--success);
}

/* ---------- Навигация разделов и вкладки ---------- */

.bp-nav,
.bp-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bp-nav::-webkit-scrollbar,
.bp-tabs::-webkit-scrollbar {
  display: none;
}

.bp-nav {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.bp-nav-btn,
.bp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.bp-nav-btn:hover,
.bp-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.bp-nav-btn.active {
  background: var(--grad-brand);
  color: var(--btn-primary-text);
}

.bp-tabs {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

.bp-tab {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 12px 18px;
  position: relative;
}

.bp-tab.active {
  color: var(--text);
  background: transparent;
}

.bp-tab.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -3px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}

.bp-badge:empty {
  display: none;
}

.bp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.bp-nav-btn.active .bp-badge {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

/* ---------- Общие блоки секций ---------- */

.bp-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bp-section.hidden,
.bp-panel.hidden {
  display: none;
}

.bp-subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}

.bp-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bp-empty,
.bp-loading {
  grid-column: 1 / -1;
  padding: var(--space-6) var(--space-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.92rem;
}

.bp-history-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.88rem;
}

.bp-history-table th {
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.bp-history-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.bp-history-table tbody tr:hover td {
  background: var(--bg-card-hover);
}

/* ---------- Карточки бонусов (Mood engage-card) ---------- */

.bonus-available-grid,
.bonus-cards-row,
.bp-pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

/* Тональные переменные — разные оттенки как у engage-карточек футера */
.bonus-card.bonus-card--tone-champagne,
.bp-active-card.bonus-card--tone-champagne,
.bp-pending-card.bonus-card--tone-champagne {
  --bc-accent: #f5c76a;
  --bc-accent-2: #44ebd5;
  --bc-glow-a: rgba(245, 199, 106, 0.24);
  --bc-glow-b: rgba(68, 235, 213, 0.16);
  --bc-cta-from: #f5c76a;
  --bc-cta-to: #44ebd5;
  --bc-surface-a: rgba(245, 199, 106, 0.1);
  --bc-surface-b: rgba(68, 235, 213, 0.06);
  --bc-border-mix: 34%;
}

.bonus-card.bonus-card--tone-steel,
.bp-active-card.bonus-card--tone-steel,
.bp-pending-card.bonus-card--tone-steel {
  --bc-accent: #8eb4d4;
  --bc-accent-2: #5eead4;
  --bc-glow-a: rgba(126, 170, 210, 0.26);
  --bc-glow-b: rgba(94, 234, 212, 0.14);
  --bc-cta-from: #5eead4;
  --bc-cta-to: #7da3c4;
  --bc-surface-a: rgba(126, 170, 210, 0.12);
  --bc-surface-b: rgba(94, 234, 212, 0.07);
  --bc-border-mix: 32%;
}

.bonus-card.bonus-card--tone-plum,
.bp-active-card.bonus-card--tone-plum,
.bp-pending-card.bonus-card--tone-plum {
  --bc-accent: #f08bb8;
  --bc-accent-2: #c084fc;
  --bc-glow-a: rgba(240, 139, 184, 0.24);
  --bc-glow-b: rgba(192, 132, 252, 0.16);
  --bc-cta-from: #f08bb8;
  --bc-cta-to: #c084fc;
  --bc-surface-a: rgba(240, 139, 184, 0.11);
  --bc-surface-b: rgba(192, 132, 252, 0.08);
  --bc-border-mix: 36%;
}

.bonus-card.bonus-card--tone-moss,
.bp-active-card.bonus-card--tone-moss,
.bp-pending-card.bonus-card--tone-moss {
  --bc-accent: #6ee7a8;
  --bc-accent-2: #44ebd5;
  --bc-glow-a: rgba(110, 231, 168, 0.22);
  --bc-glow-b: rgba(68, 235, 213, 0.14);
  --bc-cta-from: #44ebd5;
  --bc-cta-to: #6ee7a8;
  --bc-surface-a: rgba(110, 231, 168, 0.11);
  --bc-surface-b: rgba(68, 235, 213, 0.07);
  --bc-border-mix: 30%;
}

.bonus-card {
  --bc-accent: var(--accent);
  --bc-accent-2: var(--accent-2);
  --bc-glow-a: rgba(68, 235, 213, 0.16);
  --bc-glow-b: rgba(243, 83, 107, 0.1);
  --bc-cta-from: #44ebd5;
  --bc-cta-to: #f3536b;
  --bc-surface-a: rgba(68, 235, 213, 0.08);
  --bc-surface-b: rgba(243, 83, 107, 0.06);
  --bc-border-mix: 28%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid color-mix(in srgb, var(--bc-accent) var(--bc-border-mix), var(--border));
  border-radius: 20px;
  background:
    radial-gradient(ellipse 88% 78% at 0% 100%, var(--bc-surface-a) 0%, transparent 58%),
    radial-gradient(ellipse 72% 64% at 100% 0%, var(--bc-surface-b) 0%, transparent 54%),
    linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition:
    transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s ease,
    box-shadow 0.24s ease;
}

.bonus-card[class*="bonus-card--tone-"]::before,
.bp-active-card.bonus-card--engage[class*="bonus-card--tone-"]::before,
.bp-pending-card.bonus-card--engage[class*="bonus-card--tone-"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(
    100deg,
    var(--bc-cta-from) 0%,
    var(--bc-cta-to) 32%,
    color-mix(in srgb, #ffffff 72%, var(--bc-cta-to)) 50%,
    var(--bc-cta-to) 68%,
    var(--bc-cta-from) 100%
  );
  background-size: 220% 100%;
  opacity: 0.95;
  z-index: 2;
  pointer-events: none;
  animation: mood-bonus-stripe-shimmer 3.2s ease-in-out infinite;
}

@keyframes mood-bonus-stripe-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

.bonus-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--bc-accent) 38%, var(--border-strong));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.22),
    0 0 0 1px color-mix(in srgb, var(--bc-accent) 22%, transparent);
}

.bonus-card__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 85% at 0% 100%, var(--bc-glow-a) 0%, transparent 56%),
    radial-gradient(ellipse 78% 68% at 100% 0%, var(--bc-glow-b) 0%, transparent 52%);
}

.bonus-card__deco::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -48px;
  top: -64px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--bc-accent) 24%, transparent);
  box-shadow: 0 0 0 20px color-mix(in srgb, var(--bc-accent) 6%, transparent);
}

.bonus-card__main {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px 18px;
}

.bonus-card--has-media .bonus-card__main {
  padding-top: 14px;
}

.bonus-card--no-media .bonus-card-media,
.bonus-card--no-media .bonus-card-gift,
.bonus-card--no-media .bonus-card__visual {
  display: none;
}

.bonus-card__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bonus-card__tag {
  margin: 0;
}

.bonus-card-tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--bc-accent) 36%, transparent);
  background: color-mix(in srgb, var(--bc-accent) 14%, transparent);
  color: var(--bc-accent);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.bonus-card__title,
.bonus-card-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.bonus-card-value--large {
  font-size: 1.34rem;
}

.bonus-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  padding: 2px 0 8px;
}

.bonus-card-desc,
.bonus-card-conditions {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.bonus-card-desc--html p {
  margin: 0 0 10px;
}

.bonus-card-desc--html p:last-child {
  margin-bottom: 0;
}

.bonus-card-conditions--met {
  color: var(--success);
  font-weight: 600;
}

.bonus-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out), transform 0.35s ease;
}

.bonus-card-media--ready img {
  opacity: 1;
}

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

.bonus-card-illustration {
  width: 48px;
  height: 48px;
  color: var(--bc-accent);
}

.bonus-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bonus-card-deadline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--bc-accent) 22%, var(--border));
  background: color-mix(in srgb, var(--bc-accent) 8%, var(--surface-2));
}

.bonus-card-deadline--expired {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background: var(--danger-dim);
}

.bonus-card-deadline-label {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bonus-card-deadline-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.bcd-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: 700 0.82rem/1 var(--font-mono, monospace);
  font-variant-numeric: tabular-nums;
}

.bcd-sep {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.82rem;
}

.bonus-card-reg-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bonus-card-reg-progress-bar {
  flex: 1 1 auto;
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.bonus-card-reg-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bc-cta-from), var(--bc-cta-to));
  transition: width var(--dur-3) var(--ease-out);
}

.bonus-card-reg-progress-text {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bonus-card__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--bc-accent) 14%, var(--border));
}

.bonus-card-footer-primary {
  width: 100%;
}

.bonus-card-footer-primary .btn-bonus-get,
.bonus-card-footer-primary .btn-bonus-get-xp,
.bonus-card-footer-primary .btn-bonus-locked,
.bonus-card-footer-primary button,
.bp-fs-choice-open-btn,
.bp-pr-deposit-btn,
.bp-pending-card-actions--primary .btn-primary,
.bp-pending-card-actions--primary .btn-outline {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bc-cta-from) 0%, var(--bc-cta-to) 100%);
  color: var(--btn-primary-text);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--bc-cta-from) 32%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.bp-pending-card-actions--primary .btn-outline {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--bc-accent) 42%, var(--border-strong));
  color: var(--text);
  box-shadow: none;
}

.bonus-card-footer-primary .btn-bonus-get:hover:not(:disabled),
.bonus-card-footer-primary .btn-bonus-get-xp:hover:not(:disabled),
.bonus-card-footer-primary button:hover:not(:disabled),
.bp-fs-choice-open-btn:hover,
.bp-pr-deposit-btn:hover,
.bp-pending-card-actions--primary .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--bc-cta-from) 0%, var(--bc-cta-to) 100%);
  color: var(--btn-primary-text);
  border-color: transparent;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--bc-cta-from) 42%, transparent);
}

.bp-pending-card-actions--primary .btn-outline:hover:not(:disabled) {
  background: color-mix(in srgb, var(--bc-accent) 10%, transparent);
  color: var(--text);
  border-color: color-mix(in srgb, var(--bc-accent) 55%, var(--border-strong));
  transform: translateY(-2px);
  filter: none;
  box-shadow: none;
}

.bonus-card-footer-primary .btn-bonus-get:active:not(:disabled),
.bonus-card-footer-primary .btn-bonus-get-xp:active:not(:disabled),
.bonus-card-footer-primary button:active:not(:disabled) {
  background: linear-gradient(135deg, var(--bc-cta-from) 0%, var(--bc-cta-to) 100%);
  color: var(--btn-primary-text);
  transform: translateY(0);
  filter: brightness(0.98);
}

.bonus-card-footer-primary .btn-bonus-get:disabled,
.bonus-card-footer-primary .btn-bonus-locked,
.bonus-card-footer-primary button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bonus-card-instruction-btn,
.bonus-card__terms-link {
  position: relative;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--bc-accent) 24%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--bc-accent) 5%, transparent);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.bonus-card-instruction-btn::after,
.bonus-card__terms-link::after {
  content: "→";
  font-size: 0.92em;
  line-height: 1;
  opacity: 0.55;
  transform: translateX(0);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.bonus-card-instruction-btn::before,
.bonus-card__terms-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    color-mix(in srgb, var(--bc-accent) 28%, transparent) 48%,
    transparent 100%
  );
  pointer-events: none;
  transition: left 0.5s ease;
}

.bonus-card-instruction-btn:hover,
.bonus-card__terms-link:hover,
.bonus-card-instruction-btn:focus-visible,
.bonus-card__terms-link:focus-visible {
  color: var(--bc-accent);
  border-color: color-mix(in srgb, var(--bc-accent) 48%, var(--border-strong));
  background: color-mix(in srgb, var(--bc-accent) 14%, var(--surface));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--bc-accent) 20%, transparent);
}

.bonus-card-instruction-btn:hover::after,
.bonus-card__terms-link:hover::after,
.bonus-card-instruction-btn:focus-visible::after,
.bonus-card__terms-link:focus-visible::after {
  opacity: 1;
  transform: translateX(2px);
}

.bonus-card-instruction-btn:hover::before,
.bonus-card__terms-link:hover::before,
.bonus-card-instruction-btn:focus-visible::before,
.bonus-card__terms-link:focus-visible::before {
  left: 130%;
}

.bonus-card-instruction-btn:active,
.bonus-card__terms-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.bonus-card--awaiting-claim {
  border-color: color-mix(in srgb, var(--bc-accent) 42%, var(--border));
  animation: mood-bonus-await-pulse 2.4s ease-in-out infinite;
}

@keyframes mood-bonus-await-pulse {
  0%, 100% { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16); }
  50% { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16), 0 0 0 6px color-mix(in srgb, var(--bc-accent) 14%, transparent); }
}

/* ---------- Активные бонусы ---------- */

.bp-active-card.bonus-card--engage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--bc-accent) var(--bc-border-mix, 28%), var(--border));
  border-radius: 20px;
  background:
    radial-gradient(ellipse 88% 78% at 0% 100%, var(--bc-surface-a) 0%, transparent 58%),
    radial-gradient(ellipse 72% 64% at 100% 0%, var(--bc-surface-b) 0%, transparent 54%),
    linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.bp-active-card.bonus-card--engage:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--bc-accent) 36%, var(--border-strong));
}

.bp-active-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 18px;
}

.bp-active-card-head,
.bp-active-card-toprow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.bp-active-card-head-main {
  min-width: 0;
  flex: 1 1 auto;
}

.bp-active-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bp-active-card-type {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--bc-accent) 32%, transparent);
  background: color-mix(in srgb, var(--bc-accent) 12%, transparent);
  color: var(--bc-accent);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bp-active-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bc-accent) 7%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--bc-accent) 14%, var(--border));
  color: var(--text-muted);
  font-size: 0.8rem;
}

.bp-active-card-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 12px;
}

.bp-active-card-indicators--single {
  grid-template-columns: minmax(108px, 160px);
}

.bp-active-fs-badge {
  padding: 4px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bc-accent) 16%, transparent);
  color: var(--bc-accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.bp-active-card-split {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-active-card-split-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bc-accent) 6%, var(--surface-2));
  border: 1px solid var(--border);
}

.bp-active-card-split-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.bp-active-card-split-val {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bp-active-card-progress {
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bc-accent) 5%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--bc-accent) 12%, var(--border));
}

.bp-active-card-ring-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bp-active-ring {
  position: relative;
  width: 88px;
  height: 88px;
}

.bp-active-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bp-active-ring-track {
  stroke: var(--surface-3);
}

.bp-active-ring-prog {
  stroke: var(--bc-accent);
  transition: stroke-dashoffset var(--dur-3) var(--ease-out);
}

.bp-active-ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.bp-active-card-ring-label,
.bp-active-card-ring-caption {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-align: center;
}

.bp-active-card-wager-phase-banner {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--warning-dim);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
  color: var(--warning);
  font-size: 0.84rem;
  font-weight: 600;
}

.bp-active-card-fs-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--bc-accent) 28%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--bc-accent) 10%, transparent);
}

.bp-active-card-fs-cta-title {
  font-weight: 800;
  color: var(--text);
}

.bp-active-card-fs-cta-text,
.bp-active-card-fs-cta-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.bp-active-slot-thumb-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.bp-active-slot-thumb,
.bp-active-slot-thumb-ph {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  flex: 0 0 auto;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bp-active-slot-thumb:hover {
  transform: scale(1.04);
  border-color: color-mix(in srgb, var(--bc-accent) 40%, var(--border));
}

.bp-active-slot-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-active-slot-ph-svg {
  width: 100%;
  height: 100%;
  color: var(--text-dim);
}

.bp-active-slot-title {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 600;
}

.bp-active-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-top: 4px;
}

.bp-active-card-actions .btn-primary,
.bp-active-card-actions .btn-primary:hover,
.bp-active-card-actions .btn-primary:active,
.bp-use-fs-btn,
.bp-use-fs-btn:hover,
.bp-use-fs-btn:active {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--bc-cta-from), var(--bc-cta-to));
  border: 0;
  color: var(--btn-primary-text);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--bc-cta-from) 28%, transparent);
}

.bp-active-card-actions .btn-primary:hover,
.bp-use-fs-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--bc-cta-from) 38%, transparent);
}

.bp-cancel-bonus-btn,
.bp-cancel-pending-btn {
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bp-cancel-bonus-btn:hover,
.bp-cancel-pending-btn:hover {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
  background: var(--danger-dim);
}

/* ---------- Ожидающие бонусы ---------- */

.bp-pending-card.bonus-card--engage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--bc-accent) var(--bc-border-mix, 28%), var(--border));
  border-radius: 20px;
  background:
    radial-gradient(ellipse 88% 78% at 0% 100%, var(--bc-surface-a) 0%, transparent 58%),
    radial-gradient(ellipse 72% 64% at 100% 0%, var(--bc-surface-b) 0%, transparent 54%),
    linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.bp-pending-card.bonus-card--engage:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--bc-accent) 34%, var(--border-strong));
}

.bp-pending-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-3);
  padding: 18px;
}

.bp-pending-card__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-pending-card__status {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--warning);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.bp-pending-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.bp-pending-card__body {
  flex: 1 1 auto;
}

.bp-pending-card-offer {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.bp-pending-card-offer--promo-deposit {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--bc-accent) 24%, var(--border));
  background: color-mix(in srgb, var(--bc-accent) 8%, transparent);
  color: var(--text);
}

.bp-pending-card__meta .bonus-card-deadline {
  width: 100%;
}

.bp-pending-card__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--bc-accent) 12%, var(--border));
}

.bp-pending-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-pending-card-actions--secondary {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bp-pending-card-actions--secondary .bonus-card-instruction-btn {
  align-self: flex-start;
}

.btn-ghost.bp-cancel-pending-btn {
  margin-left: auto;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-ghost.bp-cancel-pending-btn:hover {
  color: var(--danger);
  background: transparent;
  border-color: transparent;
}

.bp-pending-eligible-hint {
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--border));
  background: color-mix(in srgb, var(--success) 10%, transparent);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Персональные бонусы ---------- */

.bp-personalized-retention.hidden,
.bp-personalized-training.hidden,
.bp-personalized-next.hidden {
  display: none;
}

.bp-pr-banner {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
}

.bp-pr-banner-glow {
  position: absolute;
  inset: -40% 40% 40% -20%;
  background: var(--grad-soft);
  filter: blur(60px);
  pointer-events: none;
}

.bp-pr-banner-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bp-pr-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.bp-pr-ribbon {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-2-dim);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bp-pr-greeting {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bp-pr-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
}

.bp-pr-top-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 220px;
}

.bp-pr-cta-amount {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.bp-pr-cta-amount__label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.bp-pr-cta-amount__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.bp-pr-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-pr-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.bp-pr-fact-label {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.bp-pr-fact-value {
  color: var(--text);
  font-weight: 700;
}

.bp-pr-slots-label {
  margin: 0 0 var(--space-2);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.bp-pr-slots-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

.bp-pr-slots {
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0 0 var(--space-2);
  list-style: none;
}

.bp-pr-slot {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bp-pr-slot-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
}

.bp-pr-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-pr-slot-name {
  font-size: 0.8rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-pr-slot-fs,
.bp-pr-slot-bet {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.bp-pr-next-card .bp-pr-next-hint {
  color: var(--text-dim);
}

.bp-pr-training-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.bp-pr-training-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.bp-pr-training-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.bp-pr-training-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
}

.bp-pr-training-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.bp-pr-training-progress-bar,
.bp-pr-training-step-bar {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.bp-pr-training-progress-fill,
.bp-pr-training-step-fill {
  height: 100%;
  background: var(--grad-brand);
  transition: width var(--dur-3) var(--ease-out);
}

.bp-pr-training-progress-text,
.bp-pr-training-step-count {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.bp-pr-training-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-pr-training-step {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: var(--space-3);
}

.bp-pr-training-step-label {
  color: var(--text);
  font-size: 0.84rem;
}

.bp-pr-training-step.done .bp-pr-training-step-label {
  color: var(--success);
}

.bp-pr-training-how-btn {
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.bp-pr-training-how-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.bp-pr-training-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.6);
}

.bp-pr-training-modal-dialog {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: var(--space-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.bp-pr-training-modal-body p {
  color: var(--text-muted);
  line-height: 1.55;
}

.bp-pr-training-modal-lead--last {
  margin-bottom: 0;
}

/* ---------- Кэшбэк (Mood) ---------- */

.mood-cb {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bp-cb-disabled-banner,
.bp-fs-disabled-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--warning) 12%, var(--surface-2));
  color: var(--warning);
}

.bp-cb-disabled-banner.hidden,
.bp-fs-disabled-banner.hidden {
  display: none;
}

.bp-cb-disabled-banner p,
.bp-fs-disabled-banner p {
  margin: 0;
  font-size: 0.88rem;
}

.mood-cb-guide {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 90% 80% at 0% 100%, rgba(68, 235, 213, 0.12) 0%, transparent 55%),
    linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.mood-cb-guide__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mood-cb-guide__eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mood-cb-guide__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.mood-cb-guide__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-cb-guide__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}

.mood-cb-guide__nav-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--text);
}

.mood-cb-guide__nav-btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
  color: var(--accent);
}

.mood-cb-guide__nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--surface-3);
  font-size: 0.72rem;
  font-weight: 800;
}

.mood-cb-guide__panel {
  min-height: 120px;
}

.mood-cb-guide__panel-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mood-cb-guide__step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(68, 235, 213, 0.22), rgba(243, 83, 107, 0.16));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.mood-cb-guide__panel-copy {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.mood-cb-guide__panel-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.mood-cb-guide__panel-copy p {
  margin: 0 0 8px;
}

.mood-cb-guide__example {
  margin: 10px 0 0 !important;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--text);
  font-size: 0.82rem !important;
}

.mood-cb-wallet {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.mood-cb-wallet__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 85% at 100% 0%, rgba(243, 83, 107, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 78% 68% at 0% 100%, rgba(68, 235, 213, 0.14) 0%, transparent 56%);
}

.mood-cb-wallet__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 20px;
}

.mood-cb-wallet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.mood-cb-wallet__rate {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #44ebd5 0%, #f5c76a 55%, #f3536b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mood-cb-wallet__rate-label {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.mood-cb-wallet__level {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.mood-cb-wallet__level-badge {
  padding: 4px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.mood-cb-wallet__level-title {
  font-weight: 700;
  color: var(--text);
}

.mood-cb-wallet__level-xp {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.mood-cb-formula {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}

.mood-cb-formula__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mood-cb-formula__node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.mood-cb-formula__node--result {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.mood-cb-formula__icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

.mood-cb-formula__label {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mood-cb-formula__value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.mood-cb-formula__hint {
  color: var(--text-dim);
  font-size: 0.68rem;
}

.mood-cb-formula__curr {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.mood-cb-formula__op {
  color: var(--text-dim);
  font-size: 1.1rem;
  font-weight: 700;
}

.mood-cb-formula__viz {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mood-cb-formula__bar-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.mood-cb-formula__bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.mood-cb-formula__bar-in,
.mood-cb-formula__bar-out,
.mood-cb-formula__bar-net {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.mood-cb-formula__bar-in {
  background: linear-gradient(90deg, rgba(68, 235, 213, 0.55), rgba(68, 235, 213, 0.25));
  z-index: 1;
}

.mood-cb-formula__bar-out {
  left: auto;
  right: 0;
  background: linear-gradient(270deg, rgba(243, 83, 107, 0.5), rgba(243, 83, 107, 0.2));
  z-index: 2;
}

.mood-cb-formula__bar-net {
  background: linear-gradient(90deg, #44ebd5, #6ee7a8);
  z-index: 3;
  box-shadow: 0 0 12px rgba(68, 235, 213, 0.35);
}

.mood-cb-formula__bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.72rem;
}

.mood-cb-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  vertical-align: middle;
}

.mood-cb-dot--in { background: #44ebd5; }
.mood-cb-dot--out { background: #f3536b; }
.mood-cb-dot--net { background: #6ee7a8; }

.mood-cb-period {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.mood-cb-period__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.mood-cb-period__title {
  font-weight: 700;
  color: var(--text);
}

.mood-cb-period__days {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.mood-cb-period__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.mood-cb-period__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #44ebd5, #f3536b);
  transition: width 0.4s ease;
}

.mood-cb-period__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mood-cb-period__date-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mood-cb-period__date-value {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.mood-cb-period__hint {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.mood-cb-claim-progress__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.mood-cb-claim-progress__track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.mood-cb-claim-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #44ebd5, #f5c76a);
  transition: width 0.35s ease;
}

.mood-cb-wager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-2) 8%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent-2) 20%, var(--border));
}

.mood-cb-wager__label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.mood-cb-wager__value {
  font-weight: 800;
  color: var(--text);
}

.mood-cb-wager__tip {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 800;
  cursor: pointer;
}

.mood-cb-actions {
  margin-top: 4px;
}

.mood-cb-claim-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #44ebd5 0%, #f3536b 100%);
  color: var(--btn-primary-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(68, 235, 213, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.mood-cb-claim-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.mood-cb-claim-btn.is-ready {
  animation: mood-cb-claim-pulse 2.2s ease-in-out infinite;
}

@keyframes mood-cb-claim-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(68, 235, 213, 0.28); }
  50% { box-shadow: 0 14px 36px rgba(243, 83, 107, 0.35); }
}

.mood-cb-claim-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  animation: none;
  background: var(--surface-3);
  color: var(--text-dim);
  box-shadow: none;
}

.mood-cb-claim-btn__sub {
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.9;
}

.mood-cb-claim-btn__sub.hidden {
  display: none;
}

.mood-cb-levels__head {
  margin-bottom: 12px;
}

.mood-cb-levels__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.mood-cb-levels__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.mood-cb-levels__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.mood-cb-lv-card {
  position: relative;
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  transition: border-color 0.2s, transform 0.2s;
}

.mood-cb-lv-card:hover {
  transform: translateY(-2px);
}

.mood-cb-lv-card.is-current {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.mood-cb-lv-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mood-cb-lv-card__num {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.mood-cb-lv-card__pct {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.mood-cb-lv-card__name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}

.mood-cb-lv-card__meta {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.4;
}

.mood-cb-lv-card__badge {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mood-cb-history__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.mood-cb-history__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mood-cb-history-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color 0.15s;
}

.mood-cb-history-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.mood-cb-history-card__main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.mood-cb-history-card__date {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.mood-cb-history-card__amount {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.mood-cb-history-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.mood-cb-history-card__status {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mood-cb-history-card__status--paid,
.mood-cb-history-card__status--completed {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.mood-cb-history-empty {
  padding: 24px 16px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.bp-fs-hero {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
}

.bp-fs-hero-glow {
  position: absolute;
  inset: -50% 30% 30% -25%;
  background: var(--grad-soft);
  filter: blur(70px);
  pointer-events: none;
}

.bp-fs-claim-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 32px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: var(--btn-primary-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.bp-fs-claim-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.bp-fs-claim-btn:disabled {
  background: var(--surface-3);
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
}

.bp-cb-faq,
.bp-fs-history,
.bp-fs-rules,
.bp-fs-tiers-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ---------- FAQ ---------- */

.bp-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.bp-faq-q {
  padding: 14px 18px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  transition: background var(--transition);
}

.bp-faq-q::after {
  content: '▾';
  color: var(--text-dim);
  transition: transform var(--transition);
}

.bp-faq-item.open .bp-faq-q::after {
  transform: rotate(180deg);
}

.bp-faq-q:hover {
  background: var(--bg-card-hover);
}

.bp-faq-a {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.bp-faq-a.hidden {
  display: none;
}

/* ---------- FreeSpin: фриспины за проигрыш ---------- */

.bp-fs-hero--muted {
  opacity: 0.72;
}

.bp-fs-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr);
  gap: var(--space-6);
  align-items: center;
}

.bp-fs-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-fs-title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.bp-fs-lead {
  margin: var(--space-2) 0 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.bp-fs-progress {
  margin-top: var(--space-5);
}

.bp-fs-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.bp-fs-progress-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.bp-fs-progress-value {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bp-fs-bar {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.bp-fs-bar-fill {
  width: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  transition: width var(--dur-3) var(--ease-out);
}

.bp-fs-progress-hint {
  margin: var(--space-2) 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.bp-fs-hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
}

.bp-fs-reward-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  text-align: center;
}

.bp-fs-reward-label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.bp-fs-reward-count {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bp-fs-reward-meta {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.bp-fs-claim-btn {
  width: 100%;
}

.bp-fs-claim-btn.is-ready {
  animation: bpFsPulse 2.4s var(--ease-out) infinite;
}

@keyframes bpFsPulse {
  0%, 100% { box-shadow: var(--shadow-cta); }
  50% { box-shadow: var(--shadow-cta-hover); }
}

.bp-fs-claim-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.bp-fs-notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.bp-fs-notice.hidden {
  display: none;
}

.bp-fs-notice--warn {
  border-color: var(--warning-dim);
  background: var(--warning-dim);
}

.bp-fs-notice-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
}

.bp-fs-notice--warn .bp-fs-notice-icon {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning);
}

.bp-fs-notice-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bp-fs-notice-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.bp-fs-notice-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.bp-fs-cap-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.bp-fs-cap-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.82rem;
}

.bp-fs-cap-fact span {
  color: var(--text-muted);
}

.bp-fs-cap-fact b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bp-fs-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.bp-fs-tier {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.bp-fs-tier.reached {
  border-color: var(--accent-dim);
}

.bp-fs-tier.current {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bp-fs-tier.current::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-brand);
}

.bp-fs-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  min-height: 24px;
}

.bp-fs-tier-threshold {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.bp-fs-tier-badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--btn-primary-text);
  font-size: 0.7rem;
  font-weight: 800;
}

.bp-fs-tier-count {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.bp-fs-tier-facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-fs-tier-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.82rem;
}

.bp-fs-tier-facts span {
  color: var(--text-muted);
}

.bp-fs-tier-facts b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bp-fs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.bp-fs-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.bp-fs-step-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--btn-primary-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
}

.bp-fs-step-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.bp-fs-step-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.bp-fs-note {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--accent-dim);
  color: var(--text);
  font-size: 0.86rem;
}

.bp-fs-note.hidden {
  display: none;
}

/* Выбор слота для фриспинов (модалка из casino.js) */
.bp-fs-slot-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: 0.84rem;
}

.bp-fs-slot-notice__title {
  font-weight: 700;
  color: var(--text);
}

.bp-fs-slot-notice__hint,
.bp-fs-slot-notice__id {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.bp-fs-slot-notice__list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

/* Статусы в истории бонусов */
.bp-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bp-status-badge--active,
.bp-status-badge--pending {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.bp-status-badge--completed {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
}

.bp-status-badge--cancelled,
.bp-status-badge--expired {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 26%, transparent);
}

/* ---------- SEO-блоки страницы ---------- */

.bonuses-seo-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.bonuses-seo-wrap.hidden,
.bonuses-seo-block.hidden,
.bonuses-faq-block.hidden {
  display: none;
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .bp-fs-hero-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .bp-fs-hero,
  .bp-pr-banner {
    padding: var(--space-5);
  }

  .mood-cb-wallet__inner {
    padding: 16px;
  }

  .mood-cb-formula__flow {
    gap: 6px;
  }
}

@media (max-width: 640px) {
  #pageBonuses {
    gap: var(--space-4);
  }

  .bp-head {
    align-items: stretch;
  }

  .bp-promo {
    flex: 1 1 100%;
  }

  .bp-nav {
    border-radius: var(--radius-lg);
  }

  .bp-nav-btn,
  .bp-tab {
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .bonus-available-grid,
  .bonus-cards-row,
  .bp-pending-grid,
  .bp-fs-tiers {
    grid-template-columns: 1fr;
  }

  .bp-fs-reward-count {
    font-size: 1.7rem;
  }

  .mood-cb-guide__head {
    flex-direction: column;
  }

  .mood-cb-period__dates {
    grid-template-columns: 1fr;
  }

  .mood-cb-lv-card {
    flex: 0 0 160px;
  }

  .bp-history-table,
  .bp-history-table tbody,
  .bp-history-table tr,
  .bp-history-table td {
    display: block;
  }

  .bp-history-table {
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .bp-history-table thead {
    display: none;
  }

  .bp-history-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
  }

  .bp-history-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 10px 14px;
    text-align: right;
  }

  .bp-history-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: left;
  }

  .bp-history-table td:not([data-label]) {
    justify-content: flex-end;
  }

  .bp-history-table tbody tr:hover td {
    background: none;
  }

  .bp-pr-training-step {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #bonusTermsModal .bonus-terms-modal-dialog,
  .bonus-terms-modal-dialog.bonus-terms-modal-dialog--offer-sheet {
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
  }

  .bonus-terms-modal.modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .bonus-terms-modal-body .bto-kv-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .bonus-terms-modal-body .bto-kv-label,
  .bonus-terms-modal-body .bto-kv-value {
    max-width: none;
    text-align: left;
  }
}

/* ---------- Модалка «Инструкция / условия бонуса» ---------- */

.bonus-terms-modal.modal {
  z-index: 520;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0));
}

.bonus-terms-modal-dialog {
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100vw - 24px));
  max-width: min(520px, calc(100vw - 24px));
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    linear-gradient(168deg, var(--bg-elevated) 0%, var(--surface) 52%, #12141a 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.bonus-terms-modal-dialog.bonus-terms-modal-dialog--offer-sheet {
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    linear-gradient(168deg, var(--bg-elevated) 0%, var(--surface) 52%, #12141a 100%);
  border-color: color-mix(in srgb, var(--accent) 14%, var(--border));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.bonus-terms-modal-dialog .modal-close {
  top: 14px;
  right: 14px;
  z-index: 3;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-muted);
}

.bonus-terms-modal-dialog .modal-close:hover {
  background: var(--accent-dim);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}

.bonus-terms-modal-title {
  margin: 0;
  padding: 22px 52px 16px 22px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 100%);
}

.bonus-terms-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 20px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bonus-terms-modal-body::-webkit-scrollbar {
  width: 5px;
}

.bonus-terms-modal-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
}

.bonus-terms-modal-body .bt-bonus-name {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.bonus-terms-modal-footer {
  flex-shrink: 0;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.bonus-terms-modal-footer--offer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bonus-terms-modal-cta-btn.btn-primary {
  width: 100%;
  min-height: 48px;
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 12px;
}

.bonus-terms-modal-footer-btn {
  width: 100%;
  min-height: 46px;
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.bonus-terms-modal-footer-btn:hover {
  background: var(--bg-card-hover);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-strong));
  color: var(--accent);
}

/* Лист условий (bto-*) */

.bto-sheet {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.bto-fallback {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.bto-section {
  margin: 0;
}

.bto-section--how {
  margin-top: 2px;
}

.bto-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.bto-section-head::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent);
}

.bto-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.bto-section-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.bto-kv-card {
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bto-kv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.bto-kv-row:last-child {
  border-bottom: 0;
}

.bto-kv-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.bto-kv-row--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.bto-kv-row--stack .bto-kv-label,
.bto-kv-row--stack .bto-kv-value {
  max-width: none;
  text-align: left;
}

.bto-kv-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 48%;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
}

.bto-kv-label-text {
  flex: 1 1 auto;
  min-width: 0;
}

.bto-kv-value {
  max-width: 52%;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  text-align: right;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.bto-kv-row:first-child .bto-kv-value {
  color: var(--accent);
}

.bto-kv-hint-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 1px;
}

.bto-kv-hint {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  cursor: help;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bto-kv-hint:hover,
.bto-kv-hint:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent-hover);
  outline: none;
}

.bto-kv-hint-tip {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10060;
  box-sizing: border-box;
  min-width: 200px;
  max-width: min(300px, calc(100vw - 20px));
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f1218;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.1));
  color: #f2f0ec;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.bto-kv-hint-wrap--open .bto-kv-hint-tip {
  display: block;
}

.bto-slot-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.bto-slot-link:hover {
  color: var(--accent-hover);
}

.bto-level-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bto-level-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-card) 90%, transparent);
  border: 1px solid var(--border);
}

.bto-level-tier {
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.bto-level-reward {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
}

.bto-level-slot {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.bto-level-slots-multi {
  margin: 10px 0 0;
}

.bto-level-slots-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bto-level-slots-list {
  margin: 0;
  padding: 0 0 0 1.2em;
  list-style: disc;
}

.bto-level-slot-item {
  margin: 0 0 6px;
  padding-left: 0.15em;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: left;
}

.bto-level-slot-item:last-child {
  margin-bottom: 0;
}

/* Шаги «Как получить» */

.bto-how-body .bt-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bto-how-body .bt-step {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.bto-how-body .bt-step:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.bto-how-body .bt-step-num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.bto-how-body .bt-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bto-how-body .bt-step-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.bto-how-body .bt-step-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Плавающий попап (десктоп) */

.bonus-floating-popover {
  position: fixed;
  z-index: 550;
  top: 0;
  left: 0;
  pointer-events: none;
}

.bonus-floating-popover:not(.hidden) {
  pointer-events: auto;
}

.bonus-floating-popover-inner {
  pointer-events: auto;
  min-width: min(320px, calc(100vw - 24px));
  max-width: min(480px, calc(100vw - 24px));
  max-height: min(72vh, 640px);
  padding: 16px 18px;
  overflow: auto;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bonus-floating-popover-inner .bto-sheet {
  gap: 16px;
}

.bonus-terms-modal-body .bonus-levels-popover {
  max-width: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* ---------- Светлая тема ---------- */

html[data-theme="light"] .bp-head-sub,
html[data-theme="light"] .bp-empty,
html[data-theme="light"] .bp-loading {
  color: #5A6478;
}

html[data-theme="light"] .bp-nav {
  background: #FFFFFF;
  border-color: rgba(16, 24, 40, 0.08);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

html[data-theme="light"] .bp-nav-btn,
html[data-theme="light"] .bp-tab {
  color: #667085;
}

html[data-theme="light"] .bp-nav-btn:hover,
html[data-theme="light"] .bp-tab:hover {
  color: #101828;
  background: #F0F2F5;
}

html[data-theme="light"] .bp-tab.active {
  color: #101828;
}

html[data-theme="light"] .bp-tab.active::after {
  background: var(--grad-brand);
}

html[data-theme="light"] .bonus-card,
html[data-theme="light"] .bp-active-card.bonus-card--engage,
html[data-theme="light"] .bp-pending-card.bonus-card--engage,
html[data-theme="light"] .bp-fs-tier,
html[data-theme="light"] .mood-cb-guide,
html[data-theme="light"] .mood-cb-wallet {
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

html[data-theme="light"] .bonus-card__deco {
  opacity: 0.5;
}

html[data-theme="light"] .bonus-card__deco::after {
  opacity: 0.28;
}

html[data-theme="light"] .bonus-card__title,
html[data-theme="light"] .bonus-card-value,
html[data-theme="light"] .bonus-card-value--large {
  color: #101828;
}

html[data-theme="light"] .bonus-card-desc,
html[data-theme="light"] .bonus-card-conditions,
html[data-theme="light"] .bonus-card-desc--html,
html[data-theme="light"] .bp-pending-card-offer {
  color: #5A6478;
}

html[data-theme="light"] .bonus-card-instruction-btn,
html[data-theme="light"] .bonus-card__terms-link {
  color: #667085;
  background: rgba(16, 24, 40, 0.03);
  border-color: rgba(16, 24, 40, 0.1);
}

html[data-theme="light"] .bonus-card-instruction-btn:hover,
html[data-theme="light"] .bonus-card__terms-link:hover,
html[data-theme="light"] .bonus-card-instruction-btn:focus-visible,
html[data-theme="light"] .bonus-card__terms-link:focus-visible {
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--bc-accent) 10%, #FFFFFF);
  border-color: color-mix(in srgb, var(--bc-accent) 32%, rgba(16, 24, 40, 0.12));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--bc-accent) 14%, transparent);
}

html[data-theme="light"] .bonus-card.bonus-card--tone-champagne {
  --bc-accent: #B45309;
  --bc-accent-2: #0D9488;
  --bc-glow-a: rgba(255, 163, 37, 0.18);
  --bc-glow-b: rgba(243, 83, 107, 0.1);
  --bc-cta-from: #FFA325;
  --bc-cta-to: #F3536B;
  --bc-surface-a: rgba(255, 163, 37, 0.12);
  --bc-surface-b: rgba(243, 83, 107, 0.06);
  --bc-border-mix: 22%;
  background:
    radial-gradient(ellipse 88% 78% at 0% 100%, var(--bc-surface-a) 0%, transparent 58%),
    radial-gradient(ellipse 72% 64% at 100% 0%, var(--bc-surface-b) 0%, transparent 54%),
    linear-gradient(155deg, #FFFFFF 0%, #FFFBF3 100%);
}

html[data-theme="light"] .bonus-card.bonus-card--tone-steel {
  --bc-accent: #0369A1;
  --bc-accent-2: #0D9488;
  --bc-glow-a: rgba(56, 189, 248, 0.16);
  --bc-glow-b: rgba(99, 102, 241, 0.1);
  --bc-cta-from: #38BDF8;
  --bc-cta-to: #6366F1;
  --bc-surface-a: rgba(56, 189, 248, 0.1);
  --bc-surface-b: rgba(99, 102, 241, 0.06);
  --bc-border-mix: 20%;
  background:
    radial-gradient(ellipse 88% 78% at 0% 100%, var(--bc-surface-a) 0%, transparent 58%),
    radial-gradient(ellipse 72% 64% at 100% 0%, var(--bc-surface-b) 0%, transparent 54%),
    linear-gradient(155deg, #FFFFFF 0%, #F5FAFF 100%);
}

html[data-theme="light"] .bonus-card.bonus-card--tone-plum {
  --bc-accent: #BE185D;
  --bc-accent-2: #7C3AED;
  --bc-glow-a: rgba(244, 114, 182, 0.16);
  --bc-glow-b: rgba(167, 139, 250, 0.1);
  --bc-cta-from: #F472B6;
  --bc-cta-to: #A78BFA;
  --bc-surface-a: rgba(244, 114, 182, 0.1);
  --bc-surface-b: rgba(167, 139, 250, 0.07);
  --bc-border-mix: 24%;
  background:
    radial-gradient(ellipse 88% 78% at 0% 100%, var(--bc-surface-a) 0%, transparent 58%),
    radial-gradient(ellipse 72% 64% at 100% 0%, var(--bc-surface-b) 0%, transparent 54%),
    linear-gradient(155deg, #FFFFFF 0%, #FFF7FA 100%);
}

html[data-theme="light"] .bonus-card.bonus-card--tone-moss {
  --bc-accent: #047857;
  --bc-accent-2: #0D9488;
  --bc-glow-a: rgba(52, 211, 153, 0.14);
  --bc-glow-b: rgba(45, 212, 191, 0.1);
  --bc-cta-from: #34D399;
  --bc-cta-to: #2DD4BF;
  --bc-surface-a: rgba(52, 211, 153, 0.1);
  --bc-surface-b: rgba(45, 212, 191, 0.06);
  --bc-border-mix: 20%;
  background:
    radial-gradient(ellipse 88% 78% at 0% 100%, var(--bc-surface-a) 0%, transparent 58%),
    radial-gradient(ellipse 72% 64% at 100% 0%, var(--bc-surface-b) 0%, transparent 54%),
    linear-gradient(155deg, #FFFFFF 0%, #F3FCF8 100%);
}

html[data-theme="light"] .bp-active-card.bonus-card--tone-champagne,
html[data-theme="light"] .bp-pending-card.bonus-card--tone-champagne {
  --bc-accent: #B45309;
  --bc-cta-from: #FFA325;
  --bc-cta-to: #F3536B;
  --bc-surface-a: rgba(255, 163, 37, 0.12);
  --bc-surface-b: rgba(243, 83, 107, 0.06);
  --bc-border-mix: 22%;
}

html[data-theme="light"] .bp-active-card.bonus-card--tone-steel,
html[data-theme="light"] .bp-pending-card.bonus-card--tone-steel {
  --bc-accent: #0369A1;
  --bc-cta-from: #38BDF8;
  --bc-cta-to: #6366F1;
  --bc-surface-a: rgba(56, 189, 248, 0.1);
  --bc-surface-b: rgba(99, 102, 241, 0.06);
  --bc-border-mix: 20%;
}

html[data-theme="light"] .bp-active-card.bonus-card--tone-plum,
html[data-theme="light"] .bp-pending-card.bonus-card--tone-plum {
  --bc-accent: #BE185D;
  --bc-cta-from: #F472B6;
  --bc-cta-to: #A78BFA;
  --bc-surface-a: rgba(244, 114, 182, 0.1);
  --bc-surface-b: rgba(167, 139, 250, 0.07);
  --bc-border-mix: 24%;
}

html[data-theme="light"] .bp-active-card.bonus-card--tone-moss,
html[data-theme="light"] .bp-pending-card.bonus-card--tone-moss {
  --bc-accent: #047857;
  --bc-cta-from: #34D399;
  --bc-cta-to: #2DD4BF;
  --bc-surface-a: rgba(52, 211, 153, 0.1);
  --bc-surface-b: rgba(45, 212, 191, 0.06);
  --bc-border-mix: 20%;
}

html[data-theme="light"] .bp-active-card.bonus-card--engage,
html[data-theme="light"] .bp-pending-card.bonus-card--engage {
  background:
    radial-gradient(ellipse 88% 78% at 0% 100%, var(--bc-surface-a) 0%, transparent 58%),
    radial-gradient(ellipse 72% 64% at 100% 0%, var(--bc-surface-b) 0%, transparent 54%),
    linear-gradient(155deg, #FFFFFF 0%, #FAFBFC 100%);
  border-color: color-mix(in srgb, var(--bc-accent) var(--bc-border-mix, 22%), rgba(16, 24, 40, 0.08));
}

html[data-theme="light"] .bonus-card-tier-pill {
  background: color-mix(in srgb, var(--bc-accent) 10%, #FFFFFF);
  border-color: color-mix(in srgb, var(--bc-accent) 24%, rgba(16, 24, 40, 0.08));
  color: var(--bc-accent);
}

html[data-theme="light"] .bonus-card-deadline {
  background: color-mix(in srgb, var(--bc-accent) 6%, #FFFFFF);
  border-color: color-mix(in srgb, var(--bc-accent) 16%, rgba(16, 24, 40, 0.08));
}

html[data-theme="light"] .bonus-card-deadline-label,
html[data-theme="light"] .bonus-card-reg-progress-text {
  color: #8A93A5;
}

html[data-theme="light"] .bcd-pill {
  background: #FFFFFF;
  border-color: rgba(16, 24, 40, 0.1);
  color: #101828;
}

html[data-theme="light"] .bonus-card__footer {
  border-top-color: rgba(16, 24, 40, 0.08);
}

html[data-theme="light"] .bonus-card-footer-primary .btn-bonus-get:hover:not(:disabled),
html[data-theme="light"] .bonus-card-footer-primary .btn-bonus-get-xp:hover:not(:disabled),
html[data-theme="light"] .bonus-card-footer-primary button:hover:not(:disabled),
html[data-theme="light"] .bp-active-card-actions .btn-primary:hover,
html[data-theme="light"] .bp-pending-card-actions--primary .btn-primary:hover:not(:disabled) {
  color: var(--btn-primary-text);
}

html[data-theme="light"] .mood-cb-guide,
html[data-theme="light"] .mood-cb-wallet,
html[data-theme="light"] .mood-cb-lv-card,
html[data-theme="light"] .mood-cb-history-card {
  background: linear-gradient(155deg, #FFFFFF 0%, #FAFBFC 100%);
  border-color: rgba(16, 24, 40, 0.08);
}

/* ---------- Кэшбэк: светлая тема ---------- */

html[data-theme="light"] .bp-cb-disabled-banner {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.22);
  color: #B45309;
}

html[data-theme="light"] .bp-cb-disabled-banner p {
  color: #92400E;
}

html[data-theme="light"] .mood-cb-guide__eyebrow {
  color: var(--accent-deep);
}

html[data-theme="light"] .mood-cb-guide__title,
html[data-theme="light"] .mood-cb-guide__panel-title {
  color: #101828;
}

html[data-theme="light"] .mood-cb-guide__panel-copy,
html[data-theme="light"] .mood-cb-levels__hint,
html[data-theme="light"] .mood-cb-period__hint {
  color: #5A6478;
}

html[data-theme="light"] .mood-cb-guide__nav-btn {
  background: #FFFFFF;
  border-color: rgba(16, 24, 40, 0.1);
  color: #667085;
}

html[data-theme="light"] .mood-cb-guide__nav-btn:hover {
  color: #101828;
  border-color: rgba(16, 24, 40, 0.16);
  background: #F9FAFB;
}

html[data-theme="light"] .mood-cb-guide__nav-btn.is-active {
  background: rgba(243, 83, 107, 0.08);
  border-color: rgba(243, 83, 107, 0.24);
  color: var(--accent-deep);
}

html[data-theme="light"] .mood-cb-guide__nav-num {
  background: #F0F2F5;
  color: #344054;
}

html[data-theme="light"] .mood-cb-guide__nav-btn.is-active .mood-cb-guide__nav-num {
  background: rgba(243, 83, 107, 0.14);
  color: var(--accent-deep);
}

html[data-theme="light"] .mood-cb-guide__step-num {
  background: linear-gradient(135deg, rgba(255, 163, 37, 0.16), rgba(243, 83, 107, 0.12));
  border-color: rgba(243, 83, 107, 0.22);
  color: var(--accent-deep);
}

html[data-theme="light"] .mood-cb-guide__example {
  background: rgba(243, 83, 107, 0.05);
  border-color: rgba(243, 83, 107, 0.18);
  color: #344054;
}

html[data-theme="light"] .mood-cb-wallet__deco {
  opacity: 0.42;
  background:
    radial-gradient(ellipse 92% 85% at 100% 0%, rgba(243, 83, 107, 0.08) 0%, transparent 52%),
    radial-gradient(ellipse 78% 68% at 0% 100%, rgba(255, 163, 37, 0.1) 0%, transparent 56%);
}

html[data-theme="light"] .mood-cb-wallet__rate {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="light"] .mood-cb-wallet__rate-label,
html[data-theme="light"] .mood-cb-formula__bar-label,
html[data-theme="light"] .mood-cb-history-card__date {
  color: #667085;
}

html[data-theme="light"] .mood-cb-wallet__level {
  background: #FFFFFF;
  border-color: rgba(16, 24, 40, 0.1);
}

html[data-theme="light"] .mood-cb-wallet__level-badge {
  background: var(--accent-dim);
  color: var(--accent-deep);
}

html[data-theme="light"] .mood-cb-wallet__level-title {
  color: #101828;
}

html[data-theme="light"] .mood-cb-wallet__level-xp {
  color: #667085;
}

html[data-theme="light"] .mood-cb-formula {
  background: #F9FAFB;
  border-color: rgba(16, 24, 40, 0.08);
}

html[data-theme="light"] .mood-cb-formula__node {
  background: #FFFFFF;
  border-color: rgba(16, 24, 40, 0.1);
}

html[data-theme="light"] .mood-cb-formula__node--result {
  background: rgba(243, 83, 107, 0.06);
  border-color: rgba(243, 83, 107, 0.2);
}

html[data-theme="light"] .mood-cb-formula__label,
html[data-theme="light"] .mood-cb-formula__hint,
html[data-theme="light"] .mood-cb-formula__bar-legend {
  color: #8A93A5;
}

html[data-theme="light"] .mood-cb-formula__value,
html[data-theme="light"] .mood-cb-formula__curr {
  color: #101828;
}

html[data-theme="light"] .mood-cb-formula__op {
  color: #98A2B3;
}

html[data-theme="light"] .mood-cb-formula__bar,
html[data-theme="light"] .mood-cb-period__track,
html[data-theme="light"] .mood-cb-claim-progress__track {
  background: #E6E9EF;
}

html[data-theme="light"] .mood-cb-period {
  background: #FFFFFF;
  border-color: rgba(16, 24, 40, 0.08);
}

html[data-theme="light"] .mood-cb-period__title,
html[data-theme="light"] .mood-cb-period__date-value {
  color: #101828;
}

html[data-theme="light"] .mood-cb-period__days {
  color: var(--accent-deep);
}

html[data-theme="light"] .mood-cb-period__date-label,
html[data-theme="light"] .mood-cb-claim-progress__head {
  color: #8A93A5;
}

html[data-theme="light"] .mood-cb-wager {
  background: rgba(255, 163, 37, 0.08);
  border-color: rgba(255, 163, 37, 0.2);
}

html[data-theme="light"] .mood-cb-wager__label {
  color: #667085;
}

html[data-theme="light"] .mood-cb-wager__value {
  color: #101828;
}

html[data-theme="light"] .mood-cb-wager__tip {
  background: #FFFFFF;
  border-color: rgba(16, 24, 40, 0.12);
  color: #667085;
}

html[data-theme="light"] .mood-cb-claim-btn {
  background: var(--grad-brand);
  color: var(--btn-primary-text);
  box-shadow: 0 10px 24px rgba(243, 83, 107, 0.2);
}

html[data-theme="light"] .mood-cb-claim-btn:hover:not(:disabled) {
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(243, 83, 107, 0.26);
}

html[data-theme="light"] .mood-cb-claim-btn.is-ready {
  animation: mood-cb-claim-pulse-light 2.2s ease-in-out infinite;
}

@keyframes mood-cb-claim-pulse-light {
  0%, 100% { box-shadow: 0 10px 24px rgba(243, 83, 107, 0.2); }
  50% { box-shadow: 0 14px 32px rgba(255, 163, 37, 0.28); }
}

html[data-theme="light"] .mood-cb-claim-btn:disabled {
  opacity: 1;
  background: #E6E9EF;
  color: #667085;
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: none;
}

html[data-theme="light"] .mood-cb-levels__title,
html[data-theme="light"] .mood-cb-history__title {
  color: #101828;
}

html[data-theme="light"] .mood-cb-lv-card.is-current {
  border-color: rgba(243, 83, 107, 0.28);
  box-shadow: 0 0 0 1px rgba(243, 83, 107, 0.1);
}

html[data-theme="light"] .mood-cb-lv-card__num,
html[data-theme="light"] .mood-cb-lv-card__meta {
  color: #8A93A5;
}

html[data-theme="light"] .mood-cb-lv-card__name {
  color: #101828;
}

html[data-theme="light"] .mood-cb-lv-card__pct {
  color: var(--accent-deep);
}

html[data-theme="light"] .mood-cb-lv-card__badge {
  background: var(--accent-dim);
  color: var(--accent-deep);
}

html[data-theme="light"] .mood-cb-history-card {
  background: #FFFFFF;
}

html[data-theme="light"] .mood-cb-history-card__amount {
  color: var(--accent-deep);
}

html[data-theme="light"] .mood-cb-history-card__meta {
  color: #8A93A5;
}

html[data-theme="light"] .mood-cb-history-empty {
  color: #667085;
  border-color: rgba(16, 24, 40, 0.12);
  background: #FAFBFC;
}

html[data-theme="light"] .bp-fs-notice--warn {
  border-color: rgba(217, 119, 6, 0.24);
}

html[data-theme="light"] .bp-fs-notice--warn .bp-fs-notice-icon {
  background: rgba(217, 119, 6, 0.16);
}

html[data-theme="light"] .bonus-terms-modal-dialog,
html[data-theme="light"] .bonus-terms-modal-dialog.bonus-terms-modal-dialog--offer-sheet {
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    linear-gradient(168deg, #FFFFFF 0%, #F8FAFC 100%);
  border-color: rgba(16, 24, 40, 0.1);
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.14);
}

html[data-theme="light"] .bonus-terms-modal-title {
  color: #101828;
  border-bottom-color: rgba(16, 24, 40, 0.08);
}

html[data-theme="light"] .bonus-terms-modal-body .bt-bonus-name {
  color: #101828;
  background: rgba(16, 24, 40, 0.03);
  border-color: rgba(16, 24, 40, 0.08);
}

html[data-theme="light"] .bto-section-title,
html[data-theme="light"] .bto-kv-value,
html[data-theme="light"] .bto-how-body .bt-step-title {
  color: #101828;
}

html[data-theme="light"] .bto-kv-card,
html[data-theme="light"] .bto-level-card {
  background: #FFFFFF;
  border-color: rgba(16, 24, 40, 0.08);
}

html[data-theme="light"] .bto-kv-row:nth-child(even) {
  background: rgba(16, 24, 40, 0.02);
}

html[data-theme="light"] .bto-kv-label,
html[data-theme="light"] .bto-section-note,
html[data-theme="light"] .bto-how-body .bt-step-desc,
html[data-theme="light"] .bto-level-slot,
html[data-theme="light"] .bto-level-slots-label,
html[data-theme="light"] .bto-level-slot-item {
  color: #5A6478;
}

html[data-theme="light"] .bto-kv-row:first-child .bto-kv-value,
html[data-theme="light"] .bto-level-reward {
  color: var(--accent-deep);
}

html[data-theme="light"] .bto-kv-hint {
  background: #FFFFFF;
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(16, 24, 40, 0.12));
  color: var(--accent-deep);
}

html[data-theme="light"] .bto-kv-hint-tip {
  background: #101828;
  color: #F9FAFB;
}

html[data-theme="light"] .bonus-terms-modal-footer {
  background: #F8FAFC;
  border-top-color: rgba(16, 24, 40, 0.08);
}

html[data-theme="light"] .bonus-terms-modal-footer-btn {
  background: #FFFFFF;
  border-color: rgba(16, 24, 40, 0.14);
  color: #101828;
}

html[data-theme="light"] .bonus-terms-modal-footer-btn:hover {
  background: #F0F2F5;
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(16, 24, 40, 0.14));
  color: var(--accent-deep);
}

html[data-theme="light"] .bonus-floating-popover-inner {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(16, 24, 40, 0.1);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .bp-fs-claim-btn.is-ready {
    animation: none;
  }

  .bonus-card:hover,
  .mood-cb-claim-btn:hover:not(:disabled),
  .bp-cb-claim-btn:hover:not(:disabled),
  .bp-fs-claim-btn:hover:not(:disabled) {
    transform: none;
  }

  .mood-cb-claim-btn.is-ready {
    animation: none;
  }

  .bonus-card[class*="bonus-card--tone-"]::before,
  .bp-active-card.bonus-card--engage[class*="bonus-card--tone-"]::before,
  .bp-pending-card.bonus-card--engage[class*="bonus-card--tone-"]::before {
    animation: none;
  }

  .bonus-card-instruction-btn::before,
  .bonus-card__terms-link::before {
    display: none;
  }
}
