/* Дорожка уровней, Промокоды и Донат 2.0 */
.ps-hero-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(30, 27, 75, 0.92));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.ps-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ps-hero-title {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}

.ps-hero-sub {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
}

.ps-vip-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
  white-space: nowrap;
}

.ps-vip-pill.locked {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.ps-exp-track {
  margin-top: 10px;
  height: 8px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #a855f7, #f59e0b);
  transition: width 0.25s ease;
}

.ps-exp-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 5px;
  font-family: 'JetBrains Mono', monospace;
}

.ps-claim-all-btn {
  margin-top: 10px;
  width: 100%;
}

.ps-road-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-tier-card {
  background: var(--bg-card, #11141b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 11px 12px;
}

.ps-tier-card.unlocked {
  border-color: rgba(56, 189, 248, 0.38);
}

.ps-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ps-tier-lvl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.ps-tier-unlock {
  font-size: 11px;
  color: #94a3b8;
}

.ps-tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ps-track-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.ps-track-box.vip {
  background: linear-gradient(145deg, rgba(49, 29, 6, 0.45), rgba(30, 27, 75, 0.55));
  border-color: rgba(245, 158, 11, 0.25);
}

.ps-track-box.claimable {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
}

.ps-track-box.claimed {
  opacity: 0.65;
}

.ps-track-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
}

.ps-track-box.vip .ps-track-label {
  color: #fcd34d;
}

.ps-track-reward {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.ps-track-btn {
  padding: 6px 8px;
  border-radius: 8px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ps-track-btn.ready {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.ps-track-btn.vip-upsell {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde047;
}

.ps-track-btn.done {
  background: rgba(255, 255, 255, 0.06);
  color: #6ee7b7;
  cursor: default;
}

.ps-track-btn.locked {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  cursor: default;
}

.ps-promo-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ps-promo-row input {
  flex: 1;
  text-transform: uppercase;
}

.ps-perk-card {
  background: var(--bg-card, #11141b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}

.ps-perk-title {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
}

.ps-perk-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 4px 0 10px;
  line-height: 1.4;
}

.ps-donate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-donate-item {
  background: var(--bg-card, #11141b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ps-donate-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fde047;
  margin-bottom: 4px;
}

.ps-donate-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}

.ps-buy-stars-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

/* Рефералка и Кланы */
.ps-subtabs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.ps-subtabs-wrap .seg-btn {
  flex: 1 1 30%;
  min-width: 78px;
  padding: 7px 6px;
  font-size: 11px;
}

.ps-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.ps-stat-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}

.ps-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.ps-stat-lbl {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.ps-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 6px;
  font-size: 12px;
}

/* 🌌 Престиж и Церемония Перерождения */
.ps-rebirth-hero {
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.34), rgba(15, 23, 42, 0.96) 55%, rgba(217, 119, 6, 0.24));
  border: 1px solid rgba(192, 132, 252, 0.42);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.18);
  position: relative;
  overflow: hidden;
}

.ps-reb-btn {
  width: 100%;
  margin-top: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #ec4899 52%, #f59e0b);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
  cursor: pointer;
}

.ps-reb-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.ps-reb-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.ps-reb-badge {
  padding: 6px 4px;
  border-radius: 9px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.72);
  color: #64748b;
}

.ps-reb-badge.done {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.ps-reb-badge.next {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.18);
  color: #fde047;
}

.reb-ceremony-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #1e1b4b 0%, #05070d 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  animation: rebFadeIn 0.35s ease forwards;
}

.reb-reactor-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.reb-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #c084fc;
  border-right-color: #f59e0b;
  animation: rebSpin 1.1s linear infinite;
}

.reb-ring-inner {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: #38bdf8;
  border-left-color: #ec4899;
  animation: rebSpinRev 0.85s linear infinite;
}

.reb-core {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 0%, #a855f7 55%, #312e81 100%);
  box-shadow: 0 0 42px rgba(168, 85, 247, 0.9), 0 0 80px rgba(245, 158, 11, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  animation: rebPulse 0.9s ease-in-out infinite alternate;
}

.reb-title {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(192, 132, 252, 0.7);
  margin-bottom: 6px;
}

.reb-sub {
  font-size: 12.5px;
  color: #cbd5e1;
  max-width: 320px;
  margin-bottom: 14px;
}

.reb-rewards-grid {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.reb-reward-pill {
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fef08a;
  font-size: 12.5px;
  font-weight: 700;
}

@keyframes rebSpin {
  to { transform: rotate(360deg); }
}

@keyframes rebSpinRev {
  to { transform: rotate(-360deg); }
}

@keyframes rebPulse {
  from { transform: scale(0.94); }
  to { transform: scale(1.08); }
}

@keyframes rebFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
