/* ==========================================================
   RUSTY NAIL — BATTLE PASS
   ========================================================== */

.bp-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================
   HERO — сезон
   ========================================================== */
.bp-hero {
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 80% 100%, var(--accent-15), transparent 60%),
    linear-gradient(135deg, #2a1512 0%, var(--bg-1) 50%, #1f1512 100%);
  border: 1px solid rgba(224, 52, 44, 0.2);
  border-radius: var(--r);
  padding: 32px 36px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.bp-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 52, 44, 0.2), transparent 65%);
  pointer-events: none;
  animation: bpHeroGlow 6s ease-in-out infinite;
}

@keyframes bpHeroGlow {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.bp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: inherit;
  pointer-events: none;
  mask-image: radial-gradient(circle at 30% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, black, transparent 80%);
}

.bp-hero-left { position: relative; z-index: 1; }

.bp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-08);
  border: 1px solid var(--accent-30);
  border-radius: var(--r);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bp-hero-badge i { font-size: 12px; }

.bp-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.1;
}

.bp-hero-sub {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  font-weight: 500;
}

.bp-hero-sub b { color: var(--text); font-weight: 700; }

.bp-hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bp-hero-level,
.bp-hero-xp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  min-width: 110px;
}

.bp-hero-level {
  border-color: var(--border);
  background: var(--bg-1);
}

.bp-hero-level-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bp-hero-level-label,
.bp-hero-xp-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-top: 6px;
}

.bp-hero-xp-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .bp-hero { padding: 24px; }
  .bp-hero-right { width: 100%; }
  .bp-hero-level,
  .bp-hero-xp { flex: 1; min-width: 0; padding: 12px 14px; }
  .bp-hero-level-value { font-size: 1.7rem; }
  .bp-hero-xp-value { font-size: 1.15rem; }
}

/* ==========================================================
   ПЛАШКА "ТОЛЬКО X2" (в стиле сайта)
   ========================================================== */
.bp-server-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.bp-server-note i {
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

.bp-server-note b {
  color: var(--text);
  font-weight: 700;
}

/* ==========================================================
   ПАНЕЛЬ ПРОГРЕССА
   ========================================================== */
.bp-progress-panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.bp-progress-panel::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--accent-08), transparent 60%);
  pointer-events: none;
}

.bp-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.bp-progress-head-left { flex: 1; min-width: 0; }

.bp-progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.bp-progress-label i { font-size: 13px; color: var(--accent); }

.bp-progress-xp {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bp-progress-xp b { color: var(--accent); font-weight: 800; }

.bp-progress-percent {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bp-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.bp-progress-fill {
  height: 100%;
  background: var(--accent-grad);
  border-radius: 100px;
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
  min-width: 0;
}

/* ==========================================================
   ДНЕВНОЙ КАП
   ========================================================== */
.bp-daily {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 22px;
}

.bp-daily.is-limit {
  border-color: rgba(224, 52, 44, 0.4);
  background: linear-gradient(180deg, rgba(224, 52, 44, 0.04), var(--bg-1));
}

.bp-daily-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.bp-daily-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bp-daily-label i { font-size: 14px; color: var(--accent); }

.bp-daily.is-limit .bp-daily-label i { color: var(--accent); }

.bp-daily-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bp-daily-value b { color: var(--accent); font-weight: 800; }

.bp-daily-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 100px;
  overflow: hidden;
}

.bp-daily-fill {
  height: 100%;
  background: var(--accent-grad);
  border-radius: 100px;
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

.bp-daily.is-limit .bp-daily-fill {
  background: linear-gradient(90deg, #f0483e, #e0342c);
}

.bp-daily-limit-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(224, 52, 44, 0.08);
  border: 1px solid rgba(224, 52, 44, 0.3);
  border-radius: var(--r);
  color: var(--accent-hi);
  font-size: 13px;
  font-weight: 700;
}

.bp-daily-limit-badge i { color: var(--accent); font-size: 15px; }

.bp-daily-harvest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(123, 201, 111, 0.06);
  border: 1px solid rgba(123, 201, 111, 0.2);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 600;
}

.bp-daily-harvest i { color: var(--green); font-size: 12px; }

.bp-daily-harvest b {
  color: var(--green);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   КНОПКИ В ПАНЕЛИ ПРОГРЕССА
   ========================================================== */
.bp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s cubic-bezier(.34, 1.4, .64, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.bp-btn i { font-size: 15px; }

.bp-btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(224, 52, 44, 0.3);
}

.bp-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left .6s ease;
}

.bp-btn-primary:hover:not(:disabled)::before { left: 100%; }

.bp-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(224, 52, 44, 0.45);
}

.bp-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.bp-btn-ghost {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.bp-btn-ghost:hover:not(:disabled) {
  background: var(--bg-3);
  border-color: var(--accent-30);
  color: var(--accent);
}

.bp-btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bp-btn-premium {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
  animation: bpPremiumPulse 2.5s ease-in-out infinite;
}

@keyframes bpPremiumPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35); }
  50%      { box-shadow: 0 6px 32px rgba(168, 85, 247, 0.55); }
}

.bp-btn-premium:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(168, 85, 247, 0.55);
}

.bp-premium-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--r);
  color: #c4a3ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.bp-premium-active i { font-size: 15px; }

/* ==========================================================
   ДОРОЖКА УРОВНЕЙ
   ========================================================== */
.bp-track {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 0 0;
  overflow: hidden;
}

.bp-track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.bp-track-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-track-title i { color: var(--accent); font-size: 16px; }

.bp-track-progress {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  padding: 6px 14px;
  background: var(--bg-2);
  border-radius: 100px;
  font-variant-numeric: tabular-nums;
}

.bp-track-progress b { color: var(--accent); font-size: 16px; }

.bp-track-scroll-wrap {
  position: relative;
  padding: 0 4px 18px;
}

.bp-track-scroll {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 16px 50px 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.bp-track-scroll::-webkit-scrollbar { display: none; }

.bp-track-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.bp-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.95);
  border: 1px solid var(--border-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(8px);
  font-size: 1rem;
}

.bp-scroll-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.bp-scroll-btn-left { left: 6px; }
.bp-scroll-btn-right { right: 6px; }

/* ==========================================================
   РАЗДЕЛИТЕЛЬ FREE/PREMIUM
   ========================================================== */
.bp-premium-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
  width: 20px;
}

.bp-premium-divider-line {
  width: 2px;
  border-radius: 100px;
  background: linear-gradient(180deg,
    rgba(168, 85, 247, 0) 0%,
    rgba(168, 85, 247, 0.8) 20%,
    rgba(168, 85, 247, 0.8) 80%,
    rgba(168, 85, 247, 0) 100%);
  align-self: stretch;
}

/* ==========================================================
   КАРТОЧКА НАГРАДЫ
   ========================================================== */
.bp-reward {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px 14px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: var(--r);
  text-align: center;
  width: 150px;
  min-height: 240px;
  flex-shrink: 0;
  overflow: hidden;
  transition: all .25s cubic-bezier(.22, 1, .36, 1);
}

.bp-reward:hover {
  transform: translateY(-4px);
  z-index: 3;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.bp-reward-common {
  border-color: rgba(102, 192, 244, 0.4);
  background: linear-gradient(180deg, rgba(102, 192, 244, 0.06) 0%, var(--bg-2) 60%);
}
.bp-reward-common:hover { border-color: rgba(102, 192, 244, 0.8); }

.bp-reward-rare {
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, var(--bg-2) 60%);
}
.bp-reward-rare:hover { border-color: rgba(168, 85, 247, 0.9); }

.bp-reward-legendary {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-2) 60%);
}
.bp-reward-legendary:hover { border-color: rgba(239, 68, 68, 1); }

.bp-reward.is-locked {
  opacity: 0.5;
}

.bp-reward.is-locked .bp-reward-img img,
.bp-reward.is-locked .bp-reward-placeholder {
  filter: grayscale(0.7);
}

.bp-reward.is-available {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(224, 52, 44, 0.2), 0 0 25px rgba(224, 52, 44, 0.3);
  opacity: 1;
  animation: bpRewardAvailable 2.5s ease-in-out infinite;
}

@keyframes bpRewardAvailable {
  0%, 100% { box-shadow: 0 0 0 2px rgba(224, 52, 44, 0.2), 0 0 25px rgba(224, 52, 44, 0.3); }
  50%      { box-shadow: 0 0 0 2px rgba(224, 52, 44, 0.45), 0 0 40px rgba(224, 52, 44, 0.55); }
}

.bp-reward.is-current {
  border-color: rgba(224, 52, 44, 0.7) !important;
  box-shadow: 0 0 0 2px rgba(224, 52, 44, 0.15), 0 0 20px rgba(224, 52, 44, 0.25);
}

.bp-reward.is-current::before {
  content: 'ТЕКУЩИЙ';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 0 0 var(--r) var(--r);
  z-index: 5;
}

.bp-reward.is-claimed {
  border-color: rgba(123, 201, 111, 0.55) !important;
  opacity: 0.8;
}

.bp-reward.is-claimed .bp-reward-img img {
  filter: grayscale(0.3);
}

.bp-reward-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  gap: 4px;
}

.bp-reward-level {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bp-reward-level i { font-size: 9px; color: #c4a3ff; }

.bp-reward-rarity {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.bp-reward-rarity-rare {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b8ff;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.bp-reward-rarity-legendary {
  background: rgba(239, 68, 68, 0.2);
  color: #ff9a9a;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.bp-reward-img {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 8px;
}

.bp-reward-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
  transition: transform .3s ease;
}

.bp-reward:hover .bp-reward-img img { transform: scale(1.08) translateY(-2px); }

.bp-reward-placeholder {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-08) 0%, rgba(0, 0, 0, 0.3) 70%);
  border: 2px dashed var(--accent-30);
}

.bp-reward-placeholder i {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 900;
}

.bp-reward-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 4px;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  min-height: 2.5em;
}

.bp-reward-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.bp-reward-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 8px 10px;
  margin-top: auto;
  border: none;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.bp-reward-btn-claim {
  background: var(--accent-grad);
  color: #fff;
}

.bp-reward-btn-claim:hover { transform: translateY(-2px); }

.bp-reward-btn-premium-locked {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #e0ccff;
}

.bp-reward-btn-premium-locked:hover {
  background: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.bp-reward-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 8px 10px;
  margin-top: auto;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 800;
}

.bp-reward-status-claimed {
  background: rgba(123, 201, 111, 0.15);
  color: #7bc96f;
  border: 1px solid rgba(123, 201, 111, 0.4);
}

.bp-reward-status-locked {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ==========================================================
   ЦЕПОЧКА УРОВНЕЙ
   ========================================================== */
.bp-chain {
  padding: 0 0 20px;
}

.bp-chain-viewport {
  overflow: hidden;
  padding: 0 50px;
  height: 40px;
}

.bp-chain-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 8px 0;
  transition: transform .08s linear;
  will-change: transform;
}

.bp-chain-line-bg {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  width: 100%;
  transform: translateY(-50%);
  background: var(--border);
  border-radius: 100px;
  z-index: 0;
  pointer-events: none;
}

.bp-chain-line-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  transform: translateY(-50%);
  background: var(--accent-grad);
  border-radius: 100px;
  z-index: 1;
  pointer-events: none;
  transition: width .4s ease;
  max-width: 100%;
}

.bp-chain-slot {
  position: relative;
  width: 160px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.bp-chain-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  transition: all .3s ease;
  z-index: 3;
}

.bp-chain-dot.is-done {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(224, 52, 44, 0.5);
}

.bp-chain-dot.is-current {
  background: var(--accent);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 0 rgba(224, 52, 44, 0.8);
  animation: bpChainPulse 1.8s ease-in-out infinite;
  z-index: 4;
}

@keyframes bpChainPulse {
  0%   { box-shadow: 0 0 0 0 rgba(224, 52, 44, 0.8); transform: scale(1); }
  70%  { box-shadow: 0 0 0 10px rgba(224, 52, 44, 0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(224, 52, 44, 0); transform: scale(1); }
}

.bp-chain-premium-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 40px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.bp-chain-premium-divider-line {
  width: 2px;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(180deg,
    rgba(168, 85, 247, 0.2) 0%,
    rgba(168, 85, 247, 0.9) 50%,
    rgba(168, 85, 247, 0.2) 100%);
}

.bp-chain-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}

.bp-chain-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bp-chain-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-2);
  display: inline-block;
}

.bp-chain-legend-dot.is-done { background: var(--accent); }
.bp-chain-legend-dot.is-current {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(224, 52, 44, 0.7);
  animation: bpChainPulse 1.8s ease-in-out infinite;
}

/* ==========================================================
   БЛОК "КАК ПОЛУЧАТЬ XP" (всегда открыт)
   ========================================================== */
.bp-xp-block {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
}

.bp-xp-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.bp-xp-block-title i { color: var(--accent); font-size: 16px; }

/* ==========================================================
   ГАЙД XP
   ========================================================== */
.bp-xp-guide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.bp-xp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: var(--r);
  transition: transform .15s;
}

.bp-xp-card:hover { transform: translateY(-2px); }

.bp-xp-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.bp-xp-card-icon.i-red    { background: rgba(224, 52, 44, 0.12); color: var(--accent); }
.bp-xp-card-icon.i-green  { background: rgba(123, 201, 111, 0.12); color: var(--green); }
.bp-xp-card-icon.i-blue   { background: rgba(103, 232, 249, 0.1); color: #67e8f9; }
.bp-xp-card-icon.i-yellow { background: rgba(253, 224, 71, 0.1); color: #fde047; }
.bp-xp-card-icon.i-orange { background: rgba(253, 186, 116, 0.1); color: #fdba74; }
.bp-xp-card-icon.i-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

.bp-xp-card-body { min-width: 0; flex: 1; }

.bp-xp-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.bp-xp-card-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.bp-xp-card-suffix {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  margin-left: 4px;
}

/* ==========================================================
   ТОП ИГРОКОВ
   ========================================================== */
.bp-top {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
}

.bp-top-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
}

.bp-top-title i { color: var(--accent); font-size: 16px; }

.bp-top-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-top-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all .15s;
  text-decoration: none;
  color: inherit;
}

.bp-top-item:hover {
  background: var(--bg-3);
  transform: translateX(3px);
  text-decoration: none;
  color: inherit;
  border-color: var(--accent-30);
}

.bp-top-rank {
  width: 28px;
  height: 28px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--bg-3);
  color: var(--text-2);
  flex-shrink: 0;
}

.bp-top-rank-1 { background: linear-gradient(135deg, #d4a92c, #b8891a); color: #1a1716; }
.bp-top-rank-2 { background: linear-gradient(135deg, #9a9aa4, #6d6d78); color: #1a1716; }
.bp-top-rank-3 { background: linear-gradient(135deg, #a06a3b, #7c4e28); color: #fff; }

.bp-top-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}

.bp-top-body { flex: 1; min-width: 0; }

.bp-top-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-top-level {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.bp-top-xp {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ==========================================================
   LEVEL-UP TOAST
   ========================================================== */
.bp-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px 14px 16px;
  background: var(--bg-2);
  border-radius: var(--r);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(224, 52, 44, 0.35),
    0 0 40px rgba(224, 52, 44, 0.15);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.95);
  transition: all .35s cubic-bezier(.34, 1.4, .64, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  max-width: 340px;
  overflow: hidden;
}

.bp-toast.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.bp-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-grad);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0 20px rgba(224, 52, 44, 0.6);
}

.bp-toast-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--r);
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(224, 52, 44, 0.4);
  animation: bpToastIcon 1.2s ease-in-out infinite;
}

@keyframes bpToastIcon {
  0%, 100% { transform: scale(1) rotate(0); }
  50%      { transform: scale(1.08) rotate(-5deg); }
}

.bp-toast-body { flex: 1; min-width: 0; }

.bp-toast-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 2px;
}

.bp-toast-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.bp-toast-value small {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0;
}

@media (max-width: 576px) {
  .bp-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-width: 0;
    max-width: none;
  }
  .bp-toast-value { font-size: 1.25rem; }
  .bp-toast-icon { width: 38px; height: 38px; font-size: 1.2rem; }
}

/* ==========================================================
   МОДАЛКА PREMIUM
   ========================================================== */
.bp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow-y: auto;
}

.bp-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bp-modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  padding: 32px 28px;
  text-align: center;
  transform: translateY(-8px) scale(.98);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}

.bp-modal-backdrop.is-open .bp-modal {
  transform: translateY(0) scale(1);
}

.bp-modal-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  border: 2px solid rgba(168, 85, 247, 0.35);
  animation: bpModalPulse 2s ease-in-out infinite;
}

@keyframes bpModalPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.bp-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}

.bp-modal-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0 0 20px;
}

.bp-modal-text b { color: var(--text); font-weight: 700; }

.bp-modal-price {
  text-align: center;
  padding: 16px;
  background: var(--bg-2);
  border-radius: var(--r);
  margin-bottom: 10px;
}

.bp-modal-price-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #a855f7;
  display: block;
  line-height: 1;
}

.bp-modal-price-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-top: 4px;
  display: block;
}

.bp-modal-balance {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.bp-modal-balance b { color: var(--accent); font-weight: 800; }

.bp-modal-actions {
  display: flex;
  gap: 8px;
}

.bp-modal-actions .bp-btn {
  flex: 1;
  height: 44px;
}

/* ==========================================================
   АДАПТИВ
   ========================================================== */
@media (max-width: 600px) {
  .bp-reward { width: 120px; min-height: 200px; padding: 10px 8px; }
  .bp-reward-img,
  .bp-reward-placeholder { width: 58px; height: 58px; }
  .bp-reward-name { font-size: 11px; }
  .bp-reward-amount { font-size: 12px; }
  .bp-reward-level { font-size: 9px; padding: 2px 7px; }
  .bp-reward-btn,
  .bp-reward-status { font-size: 10px; padding: 6px; }
  .bp-scroll-btn { width: 34px; height: 34px; font-size: .9rem; }
  .bp-xp-guide { grid-template-columns: 1fr; }
  .bp-chain { padding: 0 12px 16px; }
  .bp-chain-viewport { padding: 0 20px; }
}

/* ==========================================================
   FIX: кнопка Discord в заглушке BP
   ========================================================== */
.empty-state .steam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  background: var(--accent-grad);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
  box-shadow: 0 6px 20px rgba(224, 52, 44, 0.3);
}

.empty-state .steam-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(224, 52, 44, 0.45);
}

.empty-state .steam-btn i,
.empty-state .steam-btn svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: #fff !important;
  fill: #fff !important;
  line-height: 1;
  flex-shrink: 0;
}

.empty-state .steam-btn span {
  display: inline-block;
  flex-shrink: 0;
  line-height: 1;
}