/* profile-card.css — Player Profile Card styles (.pc-* prefix) */

/* ── Card container ──────────────────────────────────────────────────────── */
.pc-card {
  position: relative;
  width: 340px;
  border-radius: 18px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  color: #e0e8ff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(88,166,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pc-card.pc-compact {
  width: 220px;
  min-width: 180px;
}

/* ── Background fill ─────────────────────────────────────────────────────── */
.pc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pc-card > *:not(.pc-bg) { position: relative; z-index: 1; }

/* ── Accent bar ──────────────────────────────────────────────────────────── */
.pc-accent-bar {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
}

/* ── Animated backgrounds / borders ─────────────────────────────────────── */
@keyframes pc-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.pc-bg-sovereign {
  background: conic-gradient(from 0deg,#0a0820,#1c1060,#402090,#1c1060,#0a0820);
  background-size: 300% 300%;
  animation: pc-shimmer 6s ease infinite;
}
@keyframes pc-prismatic {
  0%   { border-color: #ff4a6a; box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 14px rgba(255,74,106,0.45); }
  16%  { border-color: #ffcc00; box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 14px rgba(255,204,0,0.45); }
  33%  { border-color: #4aff9e; box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 14px rgba(74,255,158,0.45); }
  50%  { border-color: #00e5ff; box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 14px rgba(0,229,255,0.45); }
  66%  { border-color: #cc44ff; box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 14px rgba(204,68,255,0.45); }
  83%  { border-color: #ff6a00; box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 14px rgba(255,106,0,0.45); }
  100% { border-color: #ff4a6a; box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 14px rgba(255,74,106,0.45); }
}
.pc-card.pc-border-prismatic {
  border-width: 2px !important;
  border-style: solid !important;
  animation: pc-prismatic 3s linear infinite;
}
@keyframes pc-pulse-border {
  0%, 100% { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(88,166,255,0.4), 0 0 14px rgba(88,166,255,0.2); }
  50%       { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(88,166,255,0.9), 0 0 28px rgba(88,166,255,0.5); }
}
.pc-card.pc-border-animated-pulse {
  animation: pc-pulse-border 2s ease-in-out infinite;
}
@keyframes pc-neon-pulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(0,229,255,0.5), 0 0 16px rgba(0,229,255,0.2); }
  50%       { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(0,229,255,1),   0 0 32px rgba(0,229,255,0.5); }
}
.pc-card.pc-border-neon { animation: pc-neon-pulse 1.8s ease-in-out infinite; }
@keyframes pc-fire-pulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,100,0,0.5), 0 0 16px rgba(255,60,0,0.2); }
  50%       { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,150,0,1),   0 0 32px rgba(255,80,0,0.6); }
}
.pc-card.pc-border-fire { animation: pc-fire-pulse 2s ease-in-out infinite; }
@keyframes pc-ice-pulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(160,216,234,0.5), 0 0 14px rgba(160,216,234,0.2); }
  50%       { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(210,240,255,0.9), 0 0 28px rgba(160,216,234,0.5); }
}
.pc-card.pc-border-ice { animation: pc-ice-pulse 2.2s ease-in-out infinite; }
@keyframes pc-void-pulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(140,0,255,0.5), 0 0 16px rgba(100,0,200,0.2); }
  50%       { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(180,0,255,1),   0 0 32px rgba(140,0,255,0.6); }
}
.pc-card.pc-border-void { animation: pc-void-pulse 2s ease-in-out infinite; }

@keyframes pc-toxic-pulse {
  0%, 100% { border-color: rgba(57,255,20,0.5); box-shadow: 0 0 8px rgba(57,255,20,0.2); }
  50% { border-color: rgba(57,255,20,0.9); box-shadow: 0 0 16px rgba(57,255,20,0.4); }
}
.pc-card.pc-border-toxic { animation: pc-toxic-pulse 1.8s ease-in-out infinite; }

@keyframes pc-sakura-pulse {
  0%, 100% { border-color: rgba(255,105,180,0.5); box-shadow: 0 0 8px rgba(255,105,180,0.2); }
  50% { border-color: rgba(255,105,180,0.9); box-shadow: 0 0 16px rgba(255,105,180,0.4); }
}
.pc-card.pc-border-sakura { animation: pc-sakura-pulse 2.2s ease-in-out infinite; }

@keyframes pc-blood-pulse {
  0%, 100% { border-color: rgba(180,0,0,0.5); box-shadow: 0 0 8px rgba(180,0,0,0.2); }
  50% { border-color: rgba(180,0,0,0.9); box-shadow: 0 0 18px rgba(180,0,0,0.5); }
}
.pc-card.pc-border-blood { animation: pc-blood-pulse 2s ease-in-out infinite; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.pc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 12px;
}

/* Skin showcase box */
.pc-skin-showcase {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  flex-shrink: 0;
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

.pc-card.pc-compact .pc-skin-showcase {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.pc-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.pc-username {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.pc-card.pc-compact .pc-username {
  font-size: 12px;
}

.pc-rank-badge {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pc-rank-badge svg {
  width: 28px;
  height: 28px;
}

.pc-rank-badge .rank-badge-sovereign svg {
  width: 56px;
  height: 60px;
}

.pc-rank-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #4a9eff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

@keyframes pc-sovereign-glow {
  0%, 100% { text-shadow: 0 0 8px #c0a000, 0 0 16px #806000; }
  50%       { text-shadow: 0 0 16px #ffd700, 0 0 32px #c0a000; }
}
.pc-title.pc-title-sovereign {
  background: linear-gradient(90deg, #c0a000, #ffd700, #c0a000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pc-sovereign-glow 3s ease-in-out infinite;
}

@keyframes pc-number-one-glow {
  0%, 100% { text-shadow: 0 0 6px #fff, 0 0 12px rgba(255,255,255,0.4); }
  50%       { text-shadow: 0 0 12px #fff, 0 0 24px rgba(255,255,255,0.7); }
}
.pc-title.pc-title-number-one {
  color: #fff;
  animation: pc-number-one-glow 2.5s ease-in-out infinite;
}

@keyframes pc-untouchable-shimmer {
  0%, 100% { text-shadow: 0 0 8px rgba(0,200,255,0.6); }
  50% { text-shadow: 0 0 16px rgba(0,200,255,0.9), 0 0 30px rgba(0,150,255,0.4); }
}
.pc-title.pc-title-untouchable {
  color: #00d4ff;
  animation: pc-untouchable-shimmer 2s ease-in-out infinite;
}

@keyframes pc-perfectionist-pulse {
  0%, 100% { text-shadow: 0 0 6px rgba(255,215,0,0.5); opacity: 1; }
  50% { text-shadow: 0 0 14px rgba(255,215,0,0.8), 0 0 24px rgba(255,180,0,0.3); opacity: 0.9; }
}
.pc-title.pc-title-perfectionist {
  background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pc-perfectionist-pulse 3s ease-in-out infinite;
}

/* ── Bio ─────────────────────────────────────────────────────────────────── */
.pc-bio {
  margin: 0 18px 12px;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  font-style: italic;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border-left: 2px solid rgba(88,166,255,0.3);
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.pc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 12px;
}

.pc-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: default;
  transition: transform 0.15s;
}
.pc-badge:hover { transform: scale(1.05); }

.pc-badge-icon {
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

.pc-badge-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.pc-divider {
  height: 1px;
  background: rgba(88,166,255,0.1);
  margin: 0 18px 10px;
}

.pc-stats-heading {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  padding: 0 18px 6px;
  font-weight: 700;
}

.pc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 8px;
  padding: 0 18px 14px;
}

.pc-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}
.pc-stat:hover { background: rgba(88,166,255,0.06); }

.pc-stat-label {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pc-stat-val {
  color: #d8e8ff;
  font-weight: 700;
  font-size: 12px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.pc-footer {
  padding: 8px 18px 14px;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  border-top: 1px solid rgba(88,166,255,0.07);
  letter-spacing: 0.04em;
}

/* ── Edit button ─────────────────────────────────────────────────────────── */
.pc-edit-btn {
  margin: 0 18px 16px;
  padding: 9px 16px;
  background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.25);
  border-radius: 10px;
  color: #6ab0ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pc-edit-btn:hover {
  background: rgba(88,166,255,0.2);
  border-color: rgba(88,166,255,0.5);
  color: #9dd0ff;
  transform: translateY(-1px);
}

/* ── Profile popup overlay ───────────────────────────────────────────────── */
.pc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,12,24,0.85);
  backdrop-filter: blur(20px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.pc-popup-box {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  animation: panelPop 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.pc-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20,30,50,0.95);
  border: 1px solid rgba(88,166,255,0.3);
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}
.pc-close-btn:hover { background: rgba(255,80,80,0.3); color: #ff6060; border-color: rgba(255,80,80,0.5); }

.pc-hidden-msg {
  padding: 40px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.pc-loading {
  padding: 60px 40px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

/* ── Customizer overlay ──────────────────────────────────────────────────── */
.pc-customizer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,8,18,0.94);
  backdrop-filter: blur(24px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.pc-customizer-box {
  display: flex;
  gap: 28px;
  background: rgba(10,16,30,0.99);
  border: 1px solid rgba(88,166,255,0.16);
  border-radius: 22px;
  padding: 28px;
  max-width: 820px;
  width: 96vw;
  max-height: 92vh;
  overflow: hidden;
  animation: panelPop 0.28s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.8);
}

.pc-customizer-preview {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.pc-customizer-preview h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  margin: 0;
  font-weight: 700;
}

.pc-customizer-controls {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 6px;
}

.pc-customizer-controls::-webkit-scrollbar { width: 4px; }
.pc-customizer-controls::-webkit-scrollbar-track { background: transparent; }
.pc-customizer-controls::-webkit-scrollbar-thumb { background: rgba(88,166,255,0.2); border-radius: 2px; }

.pc-ctrl-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-ctrl-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
}

/* Background selector grid */
.pc-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.pc-selector-item {
  border-radius: 9px;
  height: 44px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.pc-selector-item:hover:not(.pc-locked) {
  border-color: rgba(88,166,255,0.6);
  transform: scale(1.05);
}

.pc-selector-item.pc-selected {
  border-color: #4a9eff;
  box-shadow: 0 0 12px rgba(74,158,255,0.5);
}

.pc-selector-item.pc-locked {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.pc-selector-item .pc-item-name {
  background: rgba(0,0,0,0.55);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 9px;
  line-height: 1.2;
  width: 100%;
  text-align: center;
}

.pc-locked-icon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  font-size: 10px;
  gap: 2px;
  padding: 4px;
  text-align: center;
}

/* Border / title selector list */
.pc-selector-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pc-selector-row {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid rgba(88,166,255,0.08);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
}

.pc-selector-row:hover:not(.pc-locked) {
  background: rgba(88,166,255,0.08);
  border-color: rgba(88,166,255,0.3);
  color: #fff;
}

.pc-selector-row.pc-selected {
  background: rgba(88,166,255,0.14);
  border-color: rgba(88,166,255,0.5);
  color: #7ac0ff;
}

.pc-selector-row.pc-locked {
  opacity: 0.35;
  cursor: not-allowed;
}

.pc-border-preview {
  width: 40px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  background: rgba(88,166,255,0.05);
}

/* Search filter */
.pc-ctrl-search {
  padding: 7px 12px;
  background: rgba(88,166,255,0.05);
  border: 1px solid rgba(88,166,255,0.15);
  border-radius: 8px;
  color: #c8d8ff;
  font-size: 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.pc-ctrl-search:focus { border-color: rgba(88,166,255,0.4); }

/* Skin showcase grid */
.pc-skin-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}
.pc-skin-grid::-webkit-scrollbar { width: 4px; }
.pc-skin-grid::-webkit-scrollbar-thumb { background: rgba(88,166,255,0.2); border-radius: 2px; }

.pc-skin-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  background: rgba(88,166,255,0.06);
}

.pc-skin-cell:hover { border-color: rgba(88,166,255,0.5); transform: scale(1.06); }
.pc-skin-cell.pc-selected { border-color: #4a9eff; box-shadow: 0 0 10px rgba(74,158,255,0.5); }

/* Accent color */
.pc-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pc-color-input {
  width: 44px;
  height: 34px;
  border: 1px solid rgba(88,166,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  background: none;
  padding: 2px;
}

.pc-color-hex {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: monospace;
}

/* Color presets */
.pc-color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-color-preset {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.1s, border-color 0.1s;
}
.pc-color-preset:hover { transform: scale(1.2); border-color: rgba(255,255,255,0.5); }
.pc-color-preset.pc-selected { border-color: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.5); }

/* Badge picker */
.pc-cust-badge-slots {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.pc-cust-badge-slot {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(88,166,255,0.05);
  border: 1px dashed rgba(88,166,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  position: relative;
}
.pc-cust-badge-slot:hover { border-color: rgba(88,166,255,0.5); transform: scale(1.04); }

.pc-cust-badge-slot.pc-cust-badge-filled {
  border-style: solid;
  border-color: rgba(255,255,255,0.15);
}
.pc-cust-badge-slot.pc-cust-badge-filled:hover {
  border-color: rgba(255,80,80,0.6);
}

.pc-cust-badge-slot.pc-badge-empty::after {
  content: '+';
  font-size: 20px;
  color: rgba(255,255,255,0.2);
}

.pc-cust-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-cust-badge-option {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.1s;
  position: relative;
}
.pc-cust-badge-option:hover { transform: scale(1.12); border-color: rgba(255,255,255,0.3); }
.pc-cust-badge-option.pc-selected { border-color: #4a9eff; box-shadow: 0 0 10px rgba(74,158,255,0.5); }
.pc-cust-badge-option.pc-locked { cursor: default; }

.pc-badge-lock {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 10px;
}

.pc-no-badges {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  padding: 8px 0;
}

/* Bio textarea */
.pc-bio-wrap { position: relative; }

.pc-bio-input {
  width: 100%;
  min-height: 60px;
  background: rgba(88,166,255,0.05);
  border: 1px solid rgba(88,166,255,0.15);
  border-radius: 9px;
  color: #c8d8ff;
  font-size: 13px;
  padding: 9px 12px;
  resize: vertical;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.pc-bio-input:focus { border-color: rgba(88,166,255,0.4); }

.pc-bio-counter {
  position: absolute;
  bottom: 7px;
  right: 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
}

/* Visibility toggle */
.pc-visibility-row {
  display: flex;
  gap: 6px;
}

.pc-vis-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(88,166,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.pc-vis-btn:hover { background: rgba(88,166,255,0.07); color: rgba(255,255,255,0.7); }
.pc-vis-btn.pc-selected {
  background: rgba(88,166,255,0.15);
  border-color: rgba(88,166,255,0.5);
  color: #7ac0ff;
  font-weight: 600;
}

/* Save / cancel */
.pc-customizer-footer {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(88,166,255,0.1);
}

.pc-save-btn {
  flex: 1;
  padding: 11px;
  background: linear-gradient(135deg, #1a4a8a, #2a6acc);
  border: 1px solid rgba(88,166,255,0.4);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.06em;
}
.pc-save-btn:hover { background: linear-gradient(135deg, #2a5aaa, #3a7add); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(42,106,204,0.4); }
.pc-save-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.pc-cancel-btn {
  padding: 11px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.pc-cancel-btn:hover { background: rgba(255,80,80,0.1); color: #ff8080; border-color: rgba(255,80,80,0.3); }

/* ── My Profile button pulse ─────────────────────────────────────────────── */
@keyframes pc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,158,255,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(74,158,255,0); }
}
.pc-pulse { animation: pc-pulse 1s ease-in-out 4; }

/* ── Unlock toast ────────────────────────────────────────────────────────── */
.pc-unlock-toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: rgba(10,16,30,0.97);
  border: 1px solid rgba(88,166,255,0.4);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  animation: panelPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 290px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.pc-toast-icon { font-size: 22px; flex-shrink: 0; }
.pc-toast-text { font-size: 13px; color: #c8d8ff; line-height: 1.4; }
.pc-toast-title { font-weight: 700; color: #4a9eff; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Mini profile card ───────────────────────────────────────────────────── */
.pc-mini-card { position: fixed; z-index: 1100; pointer-events: none; }

.mp-seller-hover {
  cursor: pointer;
  text-decoration: underline dotted rgba(88,166,255,0.5);
  color: inherit;
  transition: color 0.15s;
}
.mp-seller-hover:hover { color: #7ac0ff; }

/* ── Badge icon (shared) ─────────────────────────────────────────────────── */
.pc-badge-icon { line-height: 1; pointer-events: none; }

/* ── Animated backgrounds ────────────────────────────────────────────────── */
@keyframes pc-aurora-shift {
  0%   { background-position: 0% 0%;    filter: hue-rotate(0deg)   brightness(1.1); }
  33%  { background-position: 100% 40%; filter: hue-rotate(45deg)  brightness(1.28); }
  66%  { background-position: 50% 100%; filter: hue-rotate(-25deg) brightness(1.15); }
  100% { background-position: 0% 0%;    filter: hue-rotate(65deg)  brightness(1.22); }
}
.pc-bg-aurora {
  background: linear-gradient(135deg,#071630 0%,#0a3545 18%,#0c4838 34%,#183462 52%,#0e4a45 66%,#152e48 82%,#071630 100%);
  background-size: 200% 200%;
  animation: pc-aurora-shift 8s ease-in-out infinite alternate;
}

@keyframes pc-matrix-pulse {
  0%, 100% { background-position: 0% 0%;    filter: brightness(1) saturate(1.3); }
  50%       { background-position: 100% 100%; filter: brightness(1.65) saturate(2.4) hue-rotate(8deg); }
}
.pc-bg-matrix {
  background: linear-gradient(135deg,#001800 0%,#004000 35%,#006800 55%,#004000 75%,#001800 100%);
  background-size: 200% 200%;
  animation: pc-matrix-pulse 3s ease-in-out infinite;
}

@keyframes pc-ember-glow {
  0%, 100% { background-position: 0% 100%;  filter: brightness(1) saturate(1.3); }
  50%       { background-position: 100% 0%;  filter: brightness(1.65) saturate(2.2) hue-rotate(-12deg); }
}
.pc-bg-ember {
  background: linear-gradient(135deg,#1c0300 0%,#601200 35%,#a02200 55%,#601200 75%,#1c0300 100%);
  background-size: 200% 200%;
  animation: pc-ember-glow 2.5s ease-in-out infinite;
}

/* Lightning background */
@keyframes pc-lightning-flash {
  0%, 90%, 100% { background-position: 0% 0%; filter: brightness(1); }
  93% { filter: brightness(2.5) saturate(2); }
  95% { filter: brightness(0.8); }
  97% { filter: brightness(1.8) saturate(1.5); }
}
.pc-bg-lightning {
  background: linear-gradient(135deg,#050818 0%,#0a1530 30%,#182848 55%,#0a1530 75%,#050818 100%);
  background-size: 200% 200%;
  animation: pc-lightning-flash 4s ease-in-out infinite;
}

/* Sakura background */
@keyframes pc-sakura-drift {
  0%, 100% { background-position: 0% 50%; filter: brightness(1) saturate(1.2); }
  50% { background-position: 100% 50%; filter: brightness(1.15) saturate(1.5) hue-rotate(5deg); }
}
.pc-bg-sakura {
  background: linear-gradient(135deg,#1a0818 0%,#3a1028 30%,#6a2048 50%,#3a1028 70%,#1a0818 100%);
  background-size: 200% 200%;
  animation: pc-sakura-drift 6s ease-in-out infinite;
}

/* ── Gold shine + sparkle ────────────────────────────────────────────────── */
@keyframes pc-gold-shimmer {
  0%, 100% { background-position: 0% 50%;   filter: brightness(0.88) saturate(1.1); }
  50%       { background-position: 100% 50%; filter: brightness(1.12) saturate(1.35); }
}
.pc-bg-gold {
  background: linear-gradient(135deg,
    #0e0800 0%, #3a2200 22%, #7a5408 40%, #c09030 55%, #7a5408 68%, #3a2200 82%, #0e0800 100%);
  background-size: 200% 200%;
  animation: pc-gold-shimmer 8s ease-in-out infinite;
}

@keyframes pc-gold-shine {
  0%   { background-position: -150% 0; opacity: 0; }
  5%   { opacity: 1; }
  40%  { background-position: 250% 0;  opacity: 1; }
  46%  { opacity: 0; }
  100% { background-position: 250% 0;  opacity: 0; }
}
.pc-bg-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255,245,155,0.22) 36%,
    rgba(255,255,210,0.52) 50%,
    rgba(255,245,155,0.22) 64%,
    transparent 80%
  );
  background-size: 250% 100%;
  animation: pc-gold-shine 5s ease-in-out infinite;
}

@keyframes pc-gold-sparkle {
  0%    { opacity: 0; }
  8%    { opacity: 1; }
  14%   { opacity: 0.08; }
  21%   { opacity: 0.85; }
  30%   { opacity: 0; }
  100%  { opacity: 0; }
}
.pc-bg-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Sparkle 1 — 23% 28% medium */
    radial-gradient(ellipse 16px 1.5px at 23% 28%, rgba(255,255,200,0.85), transparent),
    radial-gradient(ellipse 1.5px 16px at 23% 28%, rgba(255,255,200,0.85), transparent),
    radial-gradient(circle 2.5px  at 23% 28%, #fffde0, rgba(255,255,200,0.25) 5px, transparent 9px),
    /* Sparkle 2 — 74% 18% small */
    radial-gradient(ellipse 10px 1.5px at 74% 18%, rgba(255,255,200,0.8), transparent),
    radial-gradient(ellipse 1.5px 10px at 74% 18%, rgba(255,255,200,0.8), transparent),
    radial-gradient(circle 2px    at 74% 18%, #fffde0, rgba(255,255,200,0.25) 4px, transparent 7px),
    /* Sparkle 3 — 54% 67% large */
    radial-gradient(ellipse 20px 2px   at 54% 67%, rgba(255,255,200,0.8),  transparent),
    radial-gradient(ellipse 2px   20px at 54% 67%, rgba(255,255,200,0.8),  transparent),
    radial-gradient(circle 3px    at 54% 67%, #fffde0, rgba(255,255,200,0.25) 6px, transparent 11px),
    /* Sparkle 4 — 84% 54% small */
    radial-gradient(ellipse 10px 1.5px at 84% 54%, rgba(255,255,200,0.8), transparent),
    radial-gradient(ellipse 1.5px 10px at 84% 54%, rgba(255,255,200,0.8), transparent),
    radial-gradient(circle 2px    at 84% 54%, #fffde0, rgba(255,255,200,0.25) 4px, transparent 7px);
  animation: pc-gold-sparkle 4s ease-in-out infinite;
  animation-delay: 2.5s;
}

@keyframes pc-galaxy-drift {
  0%   { background-position: 0% 50%;  filter: brightness(0.88) saturate(1.2); }
  33%  { background-position: 60% 30%; filter: brightness(1.1)  saturate(1.55); }
  66%  { background-position: 40% 80%; filter: brightness(1.04) saturate(1.4); }
  100% { background-position: 0% 50%;  filter: brightness(0.88) saturate(1.2); }
}
.pc-bg-galaxy {
  background:
    radial-gradient(ellipse at 25% 40%, rgba(160,50,255,0.55) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 65%, rgba(40,80,255,0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 62% 18%, rgba(220,30,200,0.3) 0%, transparent 40%),
    radial-gradient(ellipse at 38% 82%, rgba(80,20,200,0.4) 0%, transparent 45%),
    linear-gradient(180deg, #020008 0%, #08021e 50%, #020010 100%);
  background-size: 250% 250%, 250% 250%, 250% 250%, 250% 250%, 100% 100%;
  animation: pc-galaxy-drift 14s ease-in-out infinite;
}

@keyframes pc-galaxy-twinkle {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 1; }
}
.pc-bg-galaxy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 1px   at 8%  6%,  rgba(255,255,255,0.9),   transparent),
    radial-gradient(circle 2px   at 22% 4%,  rgba(220,240,255,0.95),  transparent),
    radial-gradient(circle 1px   at 35% 11%, rgba(255,255,255,0.7),   transparent),
    radial-gradient(circle 1px   at 52% 3%,  rgba(255,250,230,0.85),  transparent),
    radial-gradient(circle 1.5px at 68% 8%,  rgba(200,220,255,0.9),   transparent),
    radial-gradient(circle 1px   at 85% 5%,  rgba(255,255,255,0.75),  transparent),
    radial-gradient(circle 1px   at 94% 16%, rgba(220,240,255,0.8),   transparent),
    radial-gradient(circle 1px   at 5%  24%, rgba(255,255,255,0.65),  transparent),
    radial-gradient(circle 1px   at 17% 30%, rgba(255,250,230,0.7),   transparent),
    radial-gradient(circle 1.5px at 30% 34%, rgba(255,255,255,0.85),  transparent),
    radial-gradient(circle 1px   at 44% 28%, rgba(200,220,255,0.75),  transparent),
    radial-gradient(circle 1px   at 60% 24%, rgba(255,255,255,0.8),   transparent),
    radial-gradient(circle 1px   at 75% 32%, rgba(220,240,255,0.7),   transparent),
    radial-gradient(circle 1px   at 90% 27%, rgba(255,255,255,0.65),  transparent),
    radial-gradient(circle 1px   at 12% 44%, rgba(255,250,230,0.75),  transparent),
    radial-gradient(circle 2px   at 26% 50%, rgba(255,255,255,0.9),   transparent),
    radial-gradient(circle 1px   at 40% 57%, rgba(200,220,255,0.7),   transparent),
    radial-gradient(circle 1px   at 58% 46%, rgba(255,255,255,0.8),   transparent),
    radial-gradient(circle 1.5px at 72% 54%, rgba(220,240,255,0.85),  transparent),
    radial-gradient(circle 1px   at 88% 48%, rgba(255,255,255,0.7),   transparent),
    radial-gradient(circle 1px   at 7%  64%, rgba(255,250,230,0.65),  transparent),
    radial-gradient(circle 1px   at 20% 70%, rgba(255,255,255,0.75),  transparent),
    radial-gradient(circle 1px   at 36% 67%, rgba(200,220,255,0.8),   transparent),
    radial-gradient(circle 1.5px at 52% 74%, rgba(255,255,255,0.7),   transparent),
    radial-gradient(circle 1px   at 66% 68%, rgba(220,240,255,0.85),  transparent),
    radial-gradient(circle 1px   at 82% 72%, rgba(255,255,255,0.65),  transparent),
    radial-gradient(circle 1px   at 96% 64%, rgba(255,250,230,0.7),   transparent),
    radial-gradient(circle 1px   at 15% 84%, rgba(255,255,255,0.8),   transparent),
    radial-gradient(circle 1px   at 28% 90%, rgba(200,220,255,0.7),   transparent),
    radial-gradient(circle 2px   at 45% 87%, rgba(255,255,255,0.85),  transparent),
    radial-gradient(circle 1px   at 62% 94%, rgba(220,240,255,0.75),  transparent),
    radial-gradient(circle 1px   at 78% 88%, rgba(255,255,255,0.7),   transparent),
    radial-gradient(circle 1px   at 92% 92%, rgba(255,250,230,0.8),   transparent),
    radial-gradient(circle 1px   at 3%  48%, rgba(255,255,255,0.6),   transparent),
    radial-gradient(circle 1px   at 98% 36%, rgba(200,220,255,0.65),  transparent);
  animation: pc-galaxy-twinkle 4s ease-in-out infinite;
}

/* ── Name color animations ───────────────────────────────────────────────── */
@keyframes pc-name-rainbow {
  0%   { color: #ff4a6a; }
  16%  { color: #ffcc00; }
  33%  { color: #4aff9e; }
  50%  { color: #00e5ff; }
  66%  { color: #cc44ff; }
  83%  { color: #ff6a00; }
  100% { color: #ff4a6a; }
}
.pc-username.pc-name-rainbow { animation: pc-name-rainbow 3s linear infinite; }

@keyframes pc-name-sovereign {
  0%, 100% { color: #ffd700; text-shadow: 0 0 8px rgba(192,160,0,0.7); }
  50%       { color: #ffe84d; text-shadow: 0 0 16px rgba(255,215,0,0.9), 0 0 28px rgba(192,144,0,0.5); }
}
.pc-username.pc-name-sovereign { animation: pc-name-sovereign 2.2s ease-in-out infinite; }

@keyframes pc-name-fire {
  0%   { color: #ff6600; text-shadow: 0 0 8px rgba(255,80,0,0.6); }
  25%  { color: #ff2800; text-shadow: 0 0 10px rgba(255,30,0,0.8); }
  50%  { color: #ffaa00; text-shadow: 0 0 8px rgba(255,160,0,0.7); }
  75%  { color: #ff4000; text-shadow: 0 0 12px rgba(255,50,0,0.85); }
  100% { color: #ff6600; text-shadow: 0 0 8px rgba(255,80,0,0.6); }
}
.pc-username.pc-name-fire { animation: pc-name-fire 1.8s ease-in-out infinite; }

/* ── Card glow styles (applied via inline box-shadow on .pc-card) ────────── */
@keyframes pc-glow-rainbow {
  0%   { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 22px rgba(255,74,106,0.45); }
  16%  { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 22px rgba(255,204,0,0.45); }
  33%  { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 22px rgba(74,255,158,0.45); }
  50%  { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 22px rgba(0,229,255,0.45); }
  66%  { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 22px rgba(204,68,255,0.45); }
  83%  { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 22px rgba(255,106,0,0.45); }
  100% { box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 22px rgba(255,74,106,0.45); }
}
.pc-card.pc-glow-rainbow { animation: pc-glow-rainbow 3s linear infinite; }

/* ── Name color swatches in customizer ───────────────────────────────────── */
.pc-nc-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}
.pc-nc-swatch.pc-nc-rainbow {
  background: conic-gradient(#ff4a6a,#ffcc00,#4aff9e,#00e5ff,#cc44ff,#ff6a00,#ff4a6a);
}
.pc-nc-swatch.pc-nc-sovereign {
  background: linear-gradient(135deg,#c0a000,#ffd700,#c09000);
}
.pc-nc-swatch.pc-nc-fire {
  background: linear-gradient(135deg,#ff2800,#ff6600,#ffaa00,#ff6600,#ff2800);
}

/* ── Glow preview swatches ───────────────────────────────────────────────── */
.pc-glow-swatch {
  width: 32px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
  background: rgba(88,166,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
