/* ═══════════════════════════════════════════════════════════════════════
   Battle Pass — стильный, современный, адаптивный
   ═══════════════════════════════════════════════════════════════════════ */

.bp-page {
  padding: 20px 16px 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Main tabs: Pass / Referrals ──────────────────────────────────────── */

.bp-main-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(148,163,184,.15);
}

.bp-main-tab {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s;
}

.bp-main-tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(15,23,42,.18);
}

.bp-main-tab--disabled {
  opacity: .5;
  cursor: default;
}

.bp-main-panel {
  display: none;
}

.bp-main-panel.is-active {
  display: block;
}

.bp-header {
  margin-bottom: 20px;
}

.bp-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
  color: var(--text, #0f172a);
}

.bp-season-line {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 0 0 12px;
}

.bp-season-line strong { color: var(--text); }

.bp-progress-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 4px;
}

.bp-progress-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.bp-progress-bar-wrap {
  flex: 1;
  min-width: 120px;
  height: 10px;
  background: var(--border, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
}

.bp-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary, #2563eb), #6366f1);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.bp-progress-xp {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Buy pass & status ───────────────────────────────────────────────── */

.bp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.bp-status-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.bp-status-badge.bp-status-badge--premium {
  background: rgba(37, 99, 235, .1);
  border-color: rgba(37, 99, 235, .3);
  color: var(--primary);
}

.bp-gems {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bp-buy-pass-btn {
  margin-left: auto;
}

/* ── XP purchase notice ─────────────────────────────────────────────── */

.bp-xp-notice {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px;
  background: rgba(0,0,0,.03);
  border-radius: 10px;
  border: 1px dashed var(--border);
  margin-bottom: 18px;
}

/* ── Tasks ───────────────────────────────────────────────────────────── */

.bp-section {
  margin-bottom: 20px;
}

.bp-section__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.bp-section__title .bp-section__icon { opacity: .9; }

.bp-missions {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.bp-missions--empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.bp-missions__group {
  margin-bottom: 12px;
}

.bp-missions__group:last-child { margin-bottom: 0; }

.bp-missions__group h4 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.bp-mission {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.bp-mission:last-child { border-bottom: none; }

.bp-mission__title { font-weight: 500; }

.bp-mission__progress {
  font-size: 12px;
  color: var(--muted);
}

.bp-mission__bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.bp-mission__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #06b6d4);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.bp-mission__xp {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* ── Referrals (friends & rewards) ─────────────────────────────────────── */

.bp-ref__card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
}

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

.bp-ref__right {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-ref__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.bp-ref__code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bp-ref__code {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

.bp-ref__copy-btn {
  white-space: nowrap;
}

.bp-ref__link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.bp-ref__link-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  font-size: 12px;
  font-family: inherit;
}

.bp-ref__hint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.bp-ref__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.bp-ref__stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bp-ref__stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.bp-ref__milestones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-ref__milestone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.02);
}

.bp-ref__milestone--ready {
  border-color: var(--ok);
  background: var(--ok-weak);
}

.bp-ref__milestone--claimed {
  border-color: rgba(234,179,8,.5);
  background: rgba(234,179,8,.06);
}

.bp-ref__milestone-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bp-ref__milestone-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.04);
  font-size: 16px;
}

.bp-ref__milestone-text {
  min-width: 0;
}

.bp-ref__milestone-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.bp-ref__milestone-desc {
  font-size: 10px;
  color: var(--muted);
}

.bp-ref__milestone-progress {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.bp-ref__milestone-reward {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.bp-ref__reward-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(15,23,42,.06);
  color: var(--text);
}

.bp-ref__reward-pill--coins {
  background: rgba(245,158,11,.16);
  color: #92400e;
}

.bp-ref__reward-pill--gems {
  background: rgba(56,189,248,.18);
  color: #0369a1;
}

.bp-ref__milestone-action {
  flex-shrink: 0;
}

.bp-ref__milestone-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(34,197,94,.1);
  color: #15803d;
}

.bp-ref__milestone-badge--muted {
  background: rgba(148,163,184,.16);
  color: var(--muted);
}

.bp-ref__list {
  margin-top: 10px;
  font-size: 13px;
}

.bp-ref__friends {
  margin-top: 8px;
}

.bp-ref__friends-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.bp-ref__friends-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 120px;
  overflow-y: auto;
}

.bp-ref__friends-item {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 0;
  font-size: 11px;
}

.bp-ref__friends-name {
  font-weight: 500;
}

.bp-ref__friends-meta {
  color: var(--muted);
}

.bp-ref__list-ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
}

.bp-ref__list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.bp-ref__list-item:last-child {
  border-bottom: none;
}

.bp-ref__list-name {
  font-weight: 500;
}

.bp-ref__list-meta {
  font-size: 11px;
  color: var(--muted);
}

/* ── Track tabs (Free / Premium) ─────────────────────────────────────── */

.bp-track-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.bp-track-tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}

.bp-track-tab:hover { color: var(--text); }

.bp-track-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-weak, rgba(37,99,235,.1));
}

.bp-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.bp-range-tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  border-radius: 10px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}

.bp-range-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.bp-range-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Rewards grid: горизонтальная дорожка уровней ─────────────────────── */

.bp-rewards-pane {
  display: none;
}

.bp-rewards-pane.is-active {
  display: block;
}

/* Основная дорожка наград: одна горизонтальная лента с прокруткой */
.bp-rewards-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.bp-rewards-grid::-webkit-scrollbar {
  height: 6px;
}

.bp-rewards-grid::-webkit-scrollbar-track {
  background: transparent;
}

.bp-rewards-grid::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.7);
  border-radius: 999px;
}

.bp-reward-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-width: 88px;
  max-width: 112px;
  padding: 6px 6px 0;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #111827 0%, #020617 50%, #1f2937 100%);
  color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .2s, background .2s, opacity .18s ease;
}

.bp-reward-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.7);
}

.bp-reward-card.bp-reward-card--locked {
  opacity: .65;
  border-color: rgba(15,23,42,.8);
  background: linear-gradient(180deg, #020617 0%, #020617 55%, #111827 100%);
}

.bp-reward-card.bp-reward-card--ready {
  border-color: var(--ok, #16a34a);
  background: linear-gradient(180deg, #022c22 0%, #064e3b 50%, #16a34a 100%);
}

.bp-reward-card.bp-reward-card--claimed {
  opacity: .5;
  border-style: dashed;
  border-color: rgba(148,163,184,.9);
  background: linear-gradient(180deg, #111827 0%, #020617 70%, #020617 100%);
}

.bp-reward-card.bp-reward-card--milestone {
  border-color: rgba(234, 179, 8, .9);
  background: linear-gradient(180deg, #78350f 0%, #f59e0b 45%, #fbbf24 100%);
}

.bp-reward-card__lvl {
  order: 2;
  flex-shrink: 0;
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 3px 4px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #eab308 0%, #f97316 60%, #b45309 100%);
  border-top: 1px solid rgba(15,23,42,.8);
  color: #111827;
  box-shadow: 0 0 0 1px rgba(15,23,42,.9);
}

.bp-reward-card--ready .bp-reward-card__lvl,
.bp-reward-card--milestone .bp-reward-card__lvl {
  background: linear-gradient(180deg, #bbf7d0 0%, #22c55e 60%, #15803d 100%);
  color: #052e16;
}

.bp-reward-card--milestone .bp-reward-card__lvl {
  background: linear-gradient(180deg, #facc15 0%, #f97316 60%, #991b1b 100%);
  border-color: rgba(234,179,8,.9);
  color: #1f2937;
}

.bp-reward-card__body {
  order: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.bp-reward-card__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f9fafb 0, #fee2e2 40%, #7f1d1d 100%);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.7);
}

.bp-reward-card__icon--creature {
  background: rgba(255,255,255,.5);
}

.bp-reward-card__name {
  font-size: 13px;
  font-weight: 500;
  color: #f9fafb;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-reward-card__meta {
  font-size: 11px;
  color: rgba(148,163,184,.9);
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.bp-reward-card__action {
  order: 3;
  flex-shrink: 0;
  margin: 4px 0 2px;
}

.bp-reward-card__action .v-btn {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 999px;
}

.bp-reward-card--claimed .bp-reward-card__action {
  color: var(--ok);
  font-size: 14px;
}

/* Premium unlock block ────────────────────────────────────────────────── */

.bp-unlock {
  padding: 20px 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(99,102,241,.04));
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 14px;
  margin-bottom: 16px;
}

.bp-unlock p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.bp-unlock .v-btn { font-weight: 700; }

.bp-unlock-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* Empty state ─────────────────────────────────────────────────────────── */

.bp-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .bp-page { padding: 14px 12px 20px; }
  .bp-title { font-size: 20px; }
  .bp-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .bp-buy-pass-btn { margin-left: 0; margin-right: 0; }
  .bp-rewards-grid {
    grid-template-columns: 1fr;
    max-height: 340px;
  }
  .bp-reward-card {
    padding: 10px;
  }
  .bp-reward-card__name { white-space: normal; }
  .bp-track-tabs { flex-wrap: wrap; }
  .bp-range-tabs { margin-bottom: 10px; }
}

@media (max-width: 480px) {
  .bp-mission {
    grid-template-columns: 1fr;
  }
  .bp-mission__progress { grid-row: 2; }
  .bp-mission__bar { grid-column: 1; }
  .bp-mission__xp { grid-row: 3; }
}
