/* ═══════════════════════════════════════════════
   RIGHT PANEL TABS
═══════════════════════════════════════════════ */
.panel-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--glass-border);
}
.panel-tab {
  flex: 1;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  text-align: center;
}
.panel-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}
.panel-tab.active {
  color: #fff;
  background: rgba(94, 106, 210, 0.25);
  border: 1px solid rgba(94, 106, 210, 0.3);
  box-shadow: 0 0 12px rgba(94, 106, 210, 0.15);
}
.panel-tab .tab-icon {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}
.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.tab-content.active {
  display: flex;
}
.tab-content::-webkit-scrollbar {
  width: 4px;
}
.tab-content::-webkit-scrollbar-track {
  background: transparent;
}
.tab-content::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

/* ═══════════════════════════════════════════════
   STATS DASHBOARD
═══════════════════════════════════════════════ */
.stats-dashboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.stat-row:hover {
  border-color: rgba(94, 106, 210, 0.3);
}
.stat-row-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-row-label .stat-icon {
  font-size: 0.9rem;
}
.stat-row-value {
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}
.stat-row-value.highlight {
  color: var(--secondary);
}
.stat-row-value.gold {
  color: #fbbf24;
}

/* Stats Section Header */
.stats-section-title {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin: 8px 0 4px 4px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   PASSIVE BUFFS
═══════════════════════════════════════════════ */
.buff-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--text-main);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.buff-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.buff-btn:hover:not(:disabled)::after {
  left: 150%;
}
.buff-btn:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.15);
}
.buff-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}
.buff-info {
  flex: 1;
}
.buff-info h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.buff-info p {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.buff-level {
  font-size: 0.55rem;
  color: rgba(139, 92, 246, 0.7);
  font-weight: 700;
  margin-top: 2px;
}
.buff-price {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   ARTIFACTS / RELICS
═══════════════════════════════════════════════ */
.relics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.relic-slot {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.25s;
  position: relative;
  cursor: default;
}
.relic-slot.owned {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.1);
}
.relic-slot.locked {
  opacity: 0.25;
}
.relic-slot:hover.owned {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}
.relic-icon {
  font-size: 1.4rem;
}
.relic-name {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.3px;
}
.relic-slot.owned .relic-name {
  color: #fbbf24;
}
/* Relic tooltip */
.relic-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
  width: 140px;
  z-index: 300;
  pointer-events: none;
}
.relic-slot:hover .relic-tooltip {
  display: block;
}
.relic-tooltip-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 3px;
}
.relic-tooltip-desc {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════
   PET / COMPANION
═══════════════════════════════════════════════ */
.pet-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.pet-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}
.pet-card.active-pet {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.pet-card.locked-pet {
  opacity: 0.35;
  cursor: not-allowed;
}
.pet-avatar {
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  flex-shrink: 0;
}
.pet-info {
  flex: 1;
}
.pet-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.pet-desc {
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.pet-level-badge {
  font-size: 0.55rem;
  color: #10b981;
  font-weight: 700;
  margin-top: 2px;
}
.pet-cost {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.pet-card.active-pet .pet-cost {
  color: #10b981;
}
.pet-active-label {
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════
   ACHIEVEMENTS GRID
═══════════════════════════════════════════════ */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.achievement-cell {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.25s;
  cursor: default;
  position: relative;
}
.achievement-cell.unlocked {
  border-color: rgba(168, 177, 255, 0.4);
  background: rgba(94, 106, 210, 0.08);
  box-shadow: 0 0 10px rgba(94, 106, 210, 0.1);
}
.achievement-cell.locked {
  opacity: 0.2;
  filter: grayscale(1);
}
.achievement-cell:hover.unlocked {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(94, 106, 210, 0.2);
}
.achievement-icon {
  font-size: 1.1rem;
}
.achievement-name {
  font-size: 0.4rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.achievement-cell.unlocked .achievement-name {
  color: #a8b1ff;
}
/* Achievement tooltip */
.achievement-cell .relic-tooltip {
  width: 120px;
}

/* Achievement unlock animation */
@keyframes achievePop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
    filter: brightness(1.5);
  }
  100% {
    transform: scale(1);
  }
}
.achievement-unlocking {
  animation: achievePop 0.5s ease;
}

/* ═══════════════════════════════════════════════
   SECTION DIVIDER
═══════════════════════════════════════════════ */
.panel-section-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 8px 0;
}
