/* Profile Center modal styled like Upload Center */
#profile-center-root { position:fixed; inset:0; z-index:14010; font-family:var(--font-mono, 'VT323', monospace);
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 380ms;
}
#profile-center-root.is-open { opacity:1; visibility:visible; pointer-events:auto; transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s; }
#profile-center-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.72); backdrop-filter:blur(2px); opacity:0; transition:opacity 380ms cubic-bezier(0.16, 1, 0.3, 1); }
#profile-center-root.is-open #profile-center-backdrop { opacity:1; }
#profile-center-shell { position:absolute; left:50%; top:10vh; transform:translateX(-50%) translateY(-8px) scale(0.985); width:min(980px, 94vw); max-height:calc(100vh - 20vh); background:#101018; border:1px solid #00ff88; border-radius:18px; padding:18px 18px 16px; box-shadow:0 0 22px -4px rgba(0,255,136,0.45),0 0 3px 1px rgba(0,255,136,0.35) inset; display:flex; flex-direction:column;
  opacity:0; transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1) 120ms, transform 380ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}
#profile-center-root.is-open #profile-center-shell { opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
@media (max-width: 700px){ #profile-center-shell { top: 6vh; max-height: calc(100vh - 12vh); width: 96vw; } }

/* Mobile polish for narrow phones (e.g., 412x915) */
@media (max-width: 480px){
  #profile-center-shell { 
    top: 4vh; 
    max-height: calc(100vh - 8vh); 
    width: 96vw; 
    padding: 12px; 
    padding-bottom: calc(12px + env(safe-area-inset-bottom)); 
    border-radius: 12px; 
  }
  
  .pc-header { 
    padding-bottom: 6px; 
    gap: 10px; 
    flex-wrap: nowrap; /* Keep header on one line */
  }
  
  .pc-header h2 { 
    font-size: 1.35rem; 
    letter-spacing: 0.8px; 
    white-space: nowrap; 
    flex-shrink: 0; /* Don't let title shrink */
  }
  
  .pc-close-btn { 
    width: 34px; 
    height: 34px; 
    font-size: 17px; 
    flex-shrink: 0; /* Don't let button shrink */
  }
  
  .pc-toolbar { 
    padding: 6px 0; 
    gap: 6px; 
    flex-wrap: wrap; 
  }
  
  .pc-search { 
    width: 100% !important; 
    max-width: 100% !important; 
  }

  .pc-profiles-tabs { gap: 6px; padding-top: 6px; }
  .pc-prof-tab { padding: 6px 10px; }
  .pc-prof-name { max-width: 96px; }

  .pc-main { gap: 10px; margin-top: 10px; overflow: hidden; }
  .pc-tabs { width: auto; min-width: 0; gap: 6px; flex-shrink: 0; max-height: none; }
  .pc-tab { padding: 8px 10px; font-size: .85rem; white-space: nowrap; flex-shrink: 0; }
  .pc-content { padding: 10px; min-height: 0; }

  .pc-grid-2 { grid-template-columns: 1fr; }
  .pc-row { margin: 6px 0; gap: 8px; }
  .pc-label { min-width: 110px; font-size: .9rem; }

  /* Achievements responsive sizing */
  .pc-ach-stats { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; padding: 12px; }
  .pc-ach-stat-card { padding: 10px; }
  .pc-ach-stat-label { font-size: .7rem; }
  .pc-ach-stat-value { font-size: 1.2rem; }
  .pc-ach-categories { padding: 12px; }
  .pc-category-name { font-size: .78rem; }
  .pc-category-stats { font-size: .68rem; }
  .pc-badges { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap:10px; }
  .pc-badge { min-height: 120px; padding: 12px 10px; }
  .pc-badge .mdi { font-size: 28px; }
  .pc-badge .pc-badge-name { font-size: .8rem; }
  .pc-badge .pc-badge-desc { font-size: .65rem; }
  .pc-login-card { width: 92%; padding: 14px; }
}

/* Creative mobile tabs: compact segmented 2x2 grid */
@media (max-width: 480px){
  .pc-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; background: #0b0b11; border:1px solid rgba(0,255,136,0.25); border-radius: 14px; flex-shrink: 0; }
  .pc-tab { text-align:center; border-radius: 12px; padding: 10px 8px; border:1px solid rgba(0,255,136,0.25); background:#0b0b11; letter-spacing:.4px; flex-shrink: 0; }
  .pc-tab[aria-selected="true"] { background: linear-gradient(180deg, #112a21 0%, #0e1b16 100%); border-color:#35ffc9; color:#ffffff; box-shadow: 0 0 0 1px rgba(53,255,201,0.35) inset, 0 0 8px rgba(0,255,136,0.25); }
  
  /* Mobile achievement stats */
  .pc-ach-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
  .pc-ach-stat-card { padding: 8px; }
  .pc-ach-stat-label { font-size: .65rem; }
  .pc-ach-stat-value { font-size: 1.1rem; }
  .pc-ach-categories { padding: 10px; }
  .pc-category-header { font-size: .78rem; margin-bottom: 10px; }
  .pc-category-item { padding: 8px 10px; margin-bottom: 8px; }
  .pc-category-name { font-size: .74rem; }
  .pc-category-stats { font-size: .64rem; }
  
  /* Mobile achievement grid */
  .pc-badges { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap:8px; }
  .pc-badge { min-height: 110px; padding: 10px 8px; }
  .pc-badge .mdi { font-size: 26px; }
  .pc-badge .pc-badge-name { font-size: .75rem; }
  .pc-badge .pc-badge-desc { font-size: .62rem; }
  .pc-badge .pc-badge-points { font-size: .65rem; }
}

.pc-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,0.12); position:relative; }
.pc-header h2 { margin:0; font-size:1.6rem; letter-spacing:1px; color:#00ff88; text-shadow:0 0 8px rgba(0,255,136,0.35); flex-shrink: 0; }

/* Close button styling */
.pc-close-btn { width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px; background:#00ff88; border:1px solid #00ff88; color:#000; cursor:pointer; transition:background .18s ease, border-color .18s ease, transform .12s ease, filter .18s ease; font-size:18px; line-height:1; flex-shrink: 0; }
.pc-close-btn:hover, .pc-close-btn:focus-visible { filter: brightness(1.06); border-color:#00ff88; }
.pc-close-btn:active { transform: scale(.92); }

/* Mobile header adjustments - keep on one line */
@media (max-width: 480px) {
  .pc-header { padding-bottom: 6px; gap: 10px; flex-wrap: nowrap; }
  .pc-header h2 { font-size: 1.35rem; letter-spacing: 0.8px; white-space: nowrap; }
  .pc-close-btn { width: 34px; height: 34px; font-size: 17px; }
}

/* Toolbar for search and other controls */
.pc-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.08); }
@media (max-width:560px){ .pc-toolbar { padding:8px 0; gap:8px; flex-wrap:wrap; } }
@media (max-width:480px){ .pc-toolbar { padding:6px 0; gap:6px; } }

/* Profile tabs (multiple open users) */
.pc-profiles-tabs { display:flex; gap:8px; padding:8px 2px 6px; overflow:auto; position: relative; z-index: 2; background:#101018; border-bottom:1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.pc-profiles-tabs { align-items: center; }
.pc-prof-tab { display:inline-flex; align-items:center; gap:8px; background:#0b0b11; border:1px solid rgba(0,255,136,0.35); color:#cfd; padding:6px 10px; border-radius:999px; cursor:pointer; flex: 0 0 auto; min-height: 30px; }
.pc-prof-tab.active { background:#112a21; border-color:#35ffc9; color:#fff; box-shadow:0 0 10px -3px rgba(0,255,136,0.4); }
.pc-prof-ava { width:18px; height:18px; border-radius:50%; object-fit:cover; border:1px solid rgba(0,255,136,0.35); }
.pc-prof-name { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pc-prof-close { margin-left:2px; opacity:.7; }
.pc-prof-tab:hover .pc-prof-close { opacity:1; }

.pc-main { flex:1; display:flex; min-height:0; gap:14px; margin-top:12px; overflow:hidden; position: relative; z-index: 1; }
.pc-tabs { width:220px; min-width:180px; flex-shrink:0; display:flex; flex-direction:column; gap:8px; overflow-y:auto; max-height:100%; }
.pc-tab { background:#0b0b11; border:1px solid rgba(0,255,136,0.35); color:#cfd; padding:10px 12px; border-radius:10px; cursor:pointer; font-size:0.9rem; letter-spacing:.5px; text-align:left; display:inline-flex; align-items:center; gap:8px; flex-shrink:0; }
.pc-tab[aria-selected="true"] { background:#112a21; border-color:#35ffc9; color:#fff; box-shadow:0 0 10px -3px rgba(0,255,136,0.4); }
.pc-content { flex:1; min-width:0; min-height:0; background:#0b0b11; border:1px solid rgba(0,255,136,0.35); border-radius:14px; padding:12px; overflow:auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; position: relative; z-index: 1; }

/* Prevent first child margin from collapsing upward into the tabs region */
.pc-content > *:first-child { margin-top: 0 !important; }
/* Also ensure first element within cards doesn't introduce unexpected top spacing */
.pc-card > *:first-child { margin-top: 0; }
/* Small inner top padding to guarantee separation even if children assume default margins */
.pc-content { padding-top: 14px; }

/* Sections */
.pc-section { display:none; }
.pc-section.active { display:block; }
.pc-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:900px){ .pc-main { flex-direction:column; overflow:hidden; } .pc-tabs { width:auto; flex-direction:row; overflow:auto; flex-shrink:0; max-height:none; } .pc-content { min-height:0; } .pc-grid-2 { grid-template-columns:1fr; } }

.pc-card { background:#14141d; border:1px solid rgba(0,255,136,0.3); border-radius:12px; padding:12px; }
.pc-row { display:flex; align-items:center; gap:10px; margin:8px 0; }
.pc-label { min-width:140px; color:#9fd; font-size:.9rem; }
.pc-value { color:#e5e5e5; }
.pc-inline { display:inline-flex; gap:8px; align-items:center; }
.pc-input, .pc-select { background:#0b0b14; color:#e5e5e5; border:1px solid rgba(0,255,136,0.35); border-radius:8px; padding:6px 8px; }
.pc-btn { background:none; border:1px solid rgba(0,255,136,0.5); color:#e5e5e5; border-radius:8px; padding:6px 10px; cursor:pointer; }
.pc-btn:hover { background:#00ff8815; }
.pc-save-ok { color:#6dff9e; font-size:.85rem; }
.pc-save-warn { color:#ffc400; font-size:.85rem; }
.pc-save-err { color:#ff6060; font-size:.85rem; }

/* Switch alignment in Profile Center */
.pc-hidden-checkbox { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border:0; padding:0; margin:-1px; }
.pc-card .cp-switch { margin-left: 6px; }
@media (max-width: 480px){ .pc-card .cp-switch { transform: scale(.95); transform-origin: left center; } }

/* Achievement Stats Dashboard */
.pc-ach-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #0e1418 0%, #111821 100%);
  border-radius: 12px;
  border: 1px solid rgba(0,255,136,0.2);
}
.pc-ach-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #14141d;
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,0.25);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
/* Shimmer loading effect for stat cards */
.pc-ach-stat-card:has(.pc-glitch-loading) {
  background: linear-gradient(110deg, #14141d 8%, #1a2f28 18%, #14141d 33%);
  background-size: 200% 100%;
  animation: pcCardShimmer 2s linear infinite;
  border-color: rgba(0,255,136,0.4);
}
@keyframes pcCardShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pc-ach-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,255,136,0.45);
}
.pc-ach-stat-label {
  font-size: .75rem;
  color: #8ff6ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.pc-ach-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0,255,136,0.3);
}

/* Category Breakdown */
.pc-ach-categories {
  margin-bottom: 20px;
  padding: 16px;
  background: #14141d;
  border-radius: 12px;
  border: 1px solid rgba(0,255,136,0.2);
}
.pc-category-header {
  font-size: .85rem;
  font-weight: 700;
  color: #8ff6ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(17,42,33,0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(0,255,136,0.2);
  position: relative;
  overflow: hidden;
}
/* Shimmer loading effect for category header */
.pc-category-header:has(.pc-glitch-loading) {
  background: linear-gradient(110deg, rgba(17,42,33,0.4) 8%, rgba(30,70,55,0.6) 18%, rgba(17,42,33,0.4) 33%);
  background-size: 200% 100%;
  animation: pcCategoryShimmer 2.5s linear infinite;
  border-bottom-color: rgba(0,255,136,0.4);
  box-shadow: 0 0 15px rgba(0,255,136,0.15);
}
@keyframes pcCategoryShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pc-category-header:hover {
  background: rgba(17,42,33,0.6);
}
.pc-category-header .mdi {
  font-size: 1.2rem;
}
.pc-category-item {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #0e1418;
  border-radius: 8px;
  border: 1px solid rgba(0,255,136,0.15);
  transition: border-color 0.2s, background 0.2s;
}
.pc-category-item:hover {
  border-color: rgba(0,255,136,0.35);
  background: #121820;
}
.pc-category-item:last-child {
  margin-bottom: 0;
}
.pc-category-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pc-category-name {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
}
.pc-category-stats {
  font-size: .72rem;
  color: #00ff88;
  font-weight: 600;
}
.pc-category-progress {
  height: 6px;
  background: #0a0d10;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0,255,136,0.15);
}
.pc-category-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #35ffc9);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(0,255,136,0.5);
}

/* Achievement grid */
.pc-badges { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:12px; }
.pc-badge { 
  position:relative; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  justify-content:center;
  gap:8px; 
  min-height:140px; 
  padding:14px 12px; 
  border-radius:14px; 
  background:#14141d; 
  border:1px solid rgba(0,255,136,0.3); 
  text-align:center;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  overflow: hidden;
}
/* Loading pulse effect for badges */
.pc-badge:has(.pc-glitch-loading) {
  background: linear-gradient(135deg, #14141d 0%, #1a2428 50%, #14141d 100%);
  background-size: 200% 200%;
  animation: pcBadgePulse 3s ease-in-out infinite;
  border-color: rgba(0,255,136,0.5);
  box-shadow: 0 0 20px rgba(0,255,136,0.15);
}
@keyframes pcBadgePulse {
  0%, 100% { 
    background-position: 0% 50%;
    border-color: rgba(0,255,136,0.4);
  }
  50% { 
    background-position: 100% 50%;
    border-color: rgba(0,255,136,0.6);
  }
}
.pc-badge:hover { 
  transform: translateY(-2px); 
  border-color: rgba(0,255,136,0.5); 
  background: #1a1a25;
}
.pc-badge .mdi { font-size:32px; color:#8ff6ff; flex-shrink:0; }
.pc-badge .pc-badge-name { 
  font-size:.85rem; 
  font-weight:600;
  color:#fff; 
  line-height:1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width:100%;
}
.pc-badge .pc-badge-desc {
  font-size:.68rem;
  color:#9db;
  opacity:0.8;
  line-height:1.3;
  max-height:2.6em;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
}
.pc-badge .pc-badge-points {
  font-size:.7rem;
  color:#00ff88;
  font-weight:700;
  margin-top:auto;
  padding-top:4px;
}
.pc-badge-locked { 
  opacity:.3; 
  filter:grayscale(0.8); 
  border-style:dashed;
  border-color: rgba(100,100,100,0.3);
  background: #0e0e14;
}
.pc-badge-locked:hover {
  opacity:.5;
  transform: translateY(-1px);
}
.pc-badge-locked .mdi {
  color: #555;
}
.pc-badge-locked .pc-badge-name {
  color: #888;
}
.pc-badge-locked .pc-badge-desc {
  color: #666;
}
.pc-badge-locked .pc-badge-points {
  color: #666;
}
.pc-chip { position:absolute; top:6px; right:6px; background:linear-gradient(90deg,#00ff88,#35ffc9); color:#03120c; font-weight:700; font-size:.7rem; padding:2px 6px; border-radius:999px; box-shadow:0 0 0 2px #14141d; }

/* segmented filter */
.pc-seg { border-radius:999px; padding:6px 12px; }
.pc-seg-on { background:#112a21; border-color:#35ffc9; color:#fff; box-shadow:0 0 10px -3px rgba(0,255,136,0.4); }

/* Tracks */
.pc-list { display:flex; flex-direction:column; gap:10px; }
.pc-list-item { display:flex; gap:10px; justify-content:space-between; align-items:center; background:#14141d; border:1px solid rgba(0,255,136,0.3); border-radius:10px; padding:10px; }
.pc-list-item .pc-li-title { color:#dcdcdc; font-weight:600; }
.pc-list-item .pc-li-meta { font-size:.75rem; opacity:.7; }
.pc-list-item .pc-li-actions { display:flex; gap:8px; }
.pc-danger { border-color:#ff6060; color:#ff9b9b; }

/* Ensure track title truncates and actions stay visible */
.pc-list-item > div:first-child { flex: 1 1 auto; min-width: 0; }
.pc-list-item .pc-li-actions { flex: 0 0 auto; }

/* Compact tracks on small phones */
@media (max-width: 480px){
  .pc-list { gap:8px; }
  /* Two-column grid: text left, actions right (never overlap) */
  .pc-list-item { display:grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items:start; padding:8px 10px; border-radius:12px; gap:8px 10px; }
  .pc-list-item > div:first-child { grid-column:1; grid-row:1 / span 2; min-width:0; }
  .pc-list-item .pc-li-actions { grid-column:2; grid-row:1; align-self:start; gap:6px; }
  .pc-list-item .pc-li-title { font-size:.95rem; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pc-list-item .pc-li-meta { font-size:.7rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pc-list-item .pc-btn { padding:4px 10px; }
}

/* Skeletons */
.pc-skel { background:linear-gradient(90deg, #0f1218 25%, #151a22 37%, #0f1218 63%); background-size:400% 100%; animation:pcShimmer 1.4s ease infinite; border-radius:8px; }
@keyframes pcShimmer { 0%{background-position:100% 50%;} 100%{background-position:0 50%;} }
.pc-skel.h16 { height:16px; }
.pc-skel.h28 { height:28px; }
.pc-skel.w40 { width:40%; }
.pc-skel.w70 { width:70%; }
.pc-skel.w100 { width:100%; }

/* Scrollbars */
.pc-content::-webkit-scrollbar { width:10px; }
.pc-content::-webkit-scrollbar-track { background:#0b0b11; }
.pc-content::-webkit-scrollbar-thumb { background:linear-gradient(#00ff88,#35ffc9); border-radius:12px; box-shadow:0 0 0 2px #0b0b11 inset; }
.pc-content { scrollbar-width:thin; scrollbar-color:#00ff88 #0b0b11; }

@media (prefers-reduced-motion:reduce){ #profile-center-root, #profile-center-backdrop, #profile-center-shell { transition:none; } }

/* Subtle scrollbars on small screens */
@media (max-width: 480px){
  .pc-content::-webkit-scrollbar { width:6px; height:6px; }
  .pc-content::-webkit-scrollbar-track { background:transparent; }
  .pc-content::-webkit-scrollbar-thumb { background:linear-gradient(#19e68c,#2be0be); border-radius:8px; box-shadow:0 0 0 2px #0b0b11 inset; }
  .pc-content { scrollbar-width:thin; }
}

/* Login required overlay */
.pc-login-overlay { position:absolute; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.78); backdrop-filter: blur(2px); border-radius:18px; }
#profile-center-root.show-login .pc-login-overlay { display:flex; }
.pc-login-card { background:#0e1418; border:1px solid #35ffc9; border-radius:12px; padding:16px; width:min(520px,90%); text-align:center; color:#e5e5e5; box-shadow:0 0 22px -6px rgba(0,255,136,0.35); }
.pc-login-card h3 { margin:0 0 8px; }
.pc-login-card p { opacity:.85; margin:0 0 12px; }
.pc-login-card .pc-btn { font-weight:700; }

/* Loading text animation: spectrogram sweep */
.pc-loading-text {
  position: relative;
  color: transparent;
  background: linear-gradient(90deg, #00ff88 0%, #35ffc9 50%, #00ff88 100%);
  background-size: 200% 100%;
  animation: pcSpectrogram 1.5s infinite linear;
  -webkit-background-clip: text;
  background-clip: text;
}

/* User search autocomplete */
.pc-search { position: relative; width: 100%; }
.pc-search .pc-input { width: 100%; }
.pc-autocomplete { position:absolute; top:100%; left:0; right:0; z-index:100; background:#0b0b11; border:1px solid rgba(0,255,136,0.35); border-radius:10px; margin-top:6px; max-height:220px; overflow:auto; box-shadow:0 6px 18px rgba(0,0,0,0.4); }
.pc-ac-item { display:flex; align-items:center; gap:10px; padding:8px 10px; cursor:pointer; }
.pc-ac-item:hover, .pc-ac-item.active { background:#112a21; }
.pc-ac-avatar { width:26px; height:26px; border-radius:50%; object-fit:cover; border:1px solid rgba(0,255,136,0.35); }
.pc-ac-name { color:#e5e5e5; }
.pc-ac-id { color:rgba(255,255,255,0.6); font-size:12px; }

/* Glitch effect for loading text - ENHANCED */
.pc-glitch-loading {
  position: relative;
  display: inline-block;
  z-index: 2;
  color: #00ff88;
  font-weight: 700;
  transform: skewX(0deg) scaleY(1);
  animation: clock-bag-lite 4s linear infinite, pcPulseGlow 1.5s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(0,255,136,0.6), 0 0 20px rgba(0,255,136,0.3);
}
.pc-glitch-loading::before,
.pc-glitch-loading::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #00ff88;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}
.pc-glitch-loading::before {
  left: -2px;
  text-shadow: 2px 0 #35ffc9, 0 0 8px rgba(53,255,201,0.7);
  animation: c2 1s infinite linear alternate-reverse;
}
.pc-glitch-loading::after {
  left: 3px;
  text-shadow: -2px 0 #8ff6ff, 0 0 8px rgba(143,246,255,0.7);
  animation: c1 2s infinite linear alternate-reverse;
}

/* Pulsing glow effect for loading text */
@keyframes pcPulseGlow {
  0%, 100% { 
    text-shadow: 0 0 10px rgba(0,255,136,0.6), 0 0 20px rgba(0,255,136,0.3);
    opacity: 0.95;
  }
  50% { 
    text-shadow: 0 0 20px rgba(0,255,136,0.9), 0 0 40px rgba(0,255,136,0.5), 0 0 60px rgba(0,255,136,0.2);
    opacity: 1;
  }
}

/* Glitch keyframes */
@keyframes c1 {
  0% { clip: rect(31px, 9999px, 94px, 0); }
  5% { clip: rect(70px, 9999px, 71px, 0); }
  10% { clip: rect(29px, 9999px, 83px, 0); }
  15% { clip: rect(16px, 9999px, 91px, 0); }
  20% { clip: rect(2px, 9999px, 23px, 0); }
  25% { clip: rect(60px, 9999px, 73px, 0); }
  30% { clip: rect(14px, 9999px, 56px, 0); }
  35% { clip: rect(89px, 9999px, 25px, 0); }
  40% { clip: rect(32px, 9999px, 12px, 0); }
  45% { clip: rect(67px, 9999px, 48px, 0); }
  50% { clip: rect(36px, 9999px, 53px, 0); }
  55% { clip: rect(72px, 9999px, 69px, 0); }
  60% { clip: rect(20px, 9999px, 33px, 0); }
  65% { clip: rect(54px, 9999px, 84px, 0); }
  70% { clip: rect(97px, 9999px, 95px, 0); }
  75% { clip: rect(62px, 9999px, 17px, 0); }
  80% { clip: rect(23px, 9999px, 46px, 0); }
  85% { clip: rect(19px, 9999px, 96px, 0); }
  90% { clip: rect(61px, 9999px, 36px, 0); }
  95% { clip: rect(83px, 9999px, 91px, 0); }
  100% { clip: rect(76px, 9999px, 40px, 0); }
}
@keyframes c2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  5% { clip: rect(52px, 9999px, 74px, 0); }
  10% { clip: rect(79px, 9999px, 85px, 0); }
  15% { clip: rect(75px, 9999px, 5px, 0); }
  20% { clip: rect(67px, 9999px, 61px, 0); }
  25% { clip: rect(14px, 9999px, 79px, 0); }
  30% { clip: rect(1px, 9999px, 66px, 0); }
  35% { clip: rect(86px, 9999px, 30px, 0); }
  40% { clip: rect(23px, 9999px, 98px, 0); }
  45% { clip: rect(85px, 9999px, 72px, 0); }
  50% { clip: rect(71px, 9999px, 75px, 0); }
  55% { clip: rect(2px, 9999px, 48px, 0); }
  60% { clip: rect(30px, 9999px, 16px, 0); }
  65% { clip: rect(59px, 9999px, 50px, 0); }
  70% { clip: rect(41px, 9999px, 62px, 0); }
  75% { clip: rect(2px, 9999px, 82px, 0); }
  80% { clip: rect(47px, 9999px, 73px, 0); }
  85% { clip: rect(3px, 9999px, 27px, 0); }
  90% { clip: rect(26px, 9999px, 55px, 0); }
  95% { clip: rect(42px, 9999px, 97px, 0); }
  100% { clip: rect(38px, 9999px, 49px, 0); }
}
@keyframes clock-bag-lite {
  1% { transform: scaleY(1) skewX(0deg); }
  1.5% { transform: scaleY(1.6) skewX(-30deg); }
  2% { transform: scaleY(1) skewX(0deg); }
  51% { transform: scaleX(1) scaleY(1) skewX(0deg); }
  52% { transform: scaleX(1.2) scaleY(.6) skewX(40deg); }
  53% { transform: scaleX(1) scaleY(1) skewX(0deg); }
}
@keyframes pcSpectrogram {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Minor paint/scroll stability improvements */
#profile-center-shell { overflow:hidden; }
.pc-content { overscroll-behavior: contain; touch-action: pan-y; contain: paint; }

/* Enhance mobile tab tiles (centering + icon sizing) */
@media (max-width: 480px){
  .pc-tab { display:flex; justify-content:center; align-items:center; flex-direction:column; gap:6px; min-height:62px; }
  .pc-tab .mdi { font-size:18px; }
  .pc-tab .pc-tab-label { font-size:.86rem; }
}

/* Finalize mobile tab tiles (append to ensure precedence) */
@media (max-width: 480px){
  .pc-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; background: #0b0b11; border:1px solid rgba(0,255,136,0.25); border-radius: 14px; }
  .pc-tab { justify-content:center; text-align:center; flex-direction:column; gap:6px; min-height:62px; }
  .pc-tab .mdi { font-size: 18px; opacity:.9; }
  .pc-tab .pc-tab-label { font-size:.86rem; }
}
