/* ============================================================
   ROOT & RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink:       #f7a8c4;
  --pink-dark:  #e07ca0;
  --rose:       #f48fb1;
  --lavender:   #d5a6e0;
  --purple:     #b388d4;
  --bg:         #0d0010;
  --card-bg:    rgba(255,255,255,0.045);
  --card-border: rgba(247,168,196,0.22);
  --glow:       rgba(247,168,196,0.55);
  --text:       #f8d7e8;
  --text-mute:  rgba(248,215,232,0.6);
  --radius:     18px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* ============================================================
   ANIMATED GRADIENT BACKGROUND
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(180,80,140,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(130,60,190,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(240,100,160,0.10) 0%, transparent 70%);
  animation: bgShift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes bgShift {
  0%   { opacity: 1; filter: hue-rotate(0deg); }
  100% { opacity: 1; filter: hue-rotate(30deg); }
}

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   SPARKLE CONTAINER
   ============================================================ */
#sparkleContainer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparklePop 0.6s ease forwards;
  font-size: 14px;
}

@keyframes sparklePop {
  0%   { transform: scale(0) rotate(0deg); opacity: 1; }
  50%  { transform: scale(1.4) rotate(180deg); opacity: 1; }
  100% { transform: scale(0) rotate(360deg) translateY(-30px); opacity: 0; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  background: var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
  box-shadow: 0 0 12px var(--pink), 0 0 24px rgba(247,168,196,0.5);
  mix-blend-mode: screen;
}

.cursor-trail { display: none; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: stretch;
}

.left-col  { flex: 0 0 260px; display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.left-col .profile-card { flex: 1; }
.right-col { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.right-col .about-card { grid-column: 1 / -1; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 4px 32px rgba(0,0,0,0.45),
    0 0 40px rgba(247,168,196,0.04);
  transition: box-shadow 0.35s, transform 0.35s;
  animation: fadeUp 0.7s ease both;
}

.card:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07) inset,
    0 8px 48px rgba(0,0,0,0.55),
    0 0 60px rgba(247,168,196,0.12);
  transform: translateY(-3px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.left-col  .card:nth-child(1) { animation-delay: 0.0s; }
.left-col  .card:nth-child(2) { animation-delay: 0.1s; }
.left-col  .card:nth-child(3) { animation-delay: 0.2s; }
.right-col .card:nth-child(1) { animation-delay: 0.15s; }
.right-col .card:nth-child(2) { animation-delay: 0.25s; }
.right-col .card:nth-child(3) { animation-delay: 0.35s; }

.card-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
  text-shadow: 0 0 12px var(--pink);
  text-align: center;
}

/* ============================================================
   PROFILE CARD
   ============================================================ */
.profile-card {
  text-align: center;
  padding: 46px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: conic-gradient(var(--pink), var(--lavender), var(--rose), var(--pink)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinRing 4s linear infinite;
  z-index: 1;
}

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

.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #3ba55c;
  border-radius: 50%;
  border: 3px solid var(--bg);
  z-index: 3;
  box-shadow: 0 0 8px #3ba55c;
}

.avatar-deco {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  pointer-events: none;
  z-index: 4;
}

.username {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--lavender), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(247,168,196,0.6));
}

.blink-cursor {
  display: inline-block;
  -webkit-text-fill-color: var(--pink);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.display-name {
  font-size: 0.85rem;
  color: var(--rose);
  margin-top: 4px;
  text-shadow: 0 0 10px rgba(240,140,170,0.5);
}

.tag {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 4px;
}

/* ============================================================
   ABOUT CARD
   ============================================================ */
.about-card .about-content p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text);
}

.meow-text {
  font-size: 1.2rem;
  color: var(--pink);
  text-shadow: 0 0 16px var(--pink);
  animation: pulse 2s ease-in-out infinite;
  display: inline-block;
  margin-top: 6px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);    text-shadow: 0 0 16px var(--pink); }
  50%       { transform: scale(1.08); text-shadow: 0 0 30px var(--pink), 0 0 60px var(--rose); }
}

/* ============================================================
   SOCIAL ICONS (inline in profile card)
   ============================================================ */
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.22s ease;
  cursor: none;
  flex-shrink: 0;
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Discord expands to show name */
.social-icon-btn.discord {
  width: auto;
  padding: 0 12px;
  color: #fff;
  background: rgba(88,101,242,0.25);
  border-color: rgba(88,101,242,0.4);
}

.discord-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.social-icon-btn.github    { color: #fff; }
.social-icon-btn.instagram { color: #e1306c; border-color: rgba(225,48,108,0.3); background: rgba(225,48,108,0.08); }
.social-icon-btn.telegram  { color: #29b6f6; border-color: rgba(41,182,246,0.3); background: rgba(41,182,246,0.08); }
.social-icon-btn.email     { color: var(--pink); border-color: rgba(247,168,196,0.3); background: rgba(247,168,196,0.08); }

.social-icon-btn:hover {
  filter: brightness(1.3);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ============================================================
   MUSIC CARD
   ============================================================ */
.music-card { padding: 18px 20px; display: flex; flex-direction: column; }

.music-header {
  margin-bottom: 0;
  flex-shrink: 0;
}

.music-title-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink);
  display: block;
  text-align: center;
}

.music-body {
  display: flex;
  flex: 1;
  gap: 16px;
  align-items: center;
}

.music-art-wrapper {
  position: relative;
  flex-shrink: 0;
}

.music-art {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}


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

.music-art-glow {
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  background: radial-gradient(var(--pink), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.65; }
}

.music-info { flex: 1; }

.music-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 2px;
}

.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.time-label { font-size: 0.7rem; color: var(--text-mute); flex-shrink: 0; }

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  border-radius: 2px;
  transition: width 0.3s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px var(--pink);
  pointer-events: none;
  transition: left 0.3s linear;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.ctrl-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  cursor: none;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: rgba(247,168,196,0.2);
  border-color: var(--pink);
  color: var(--pink);
}

.ctrl-btn.play-btn {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  border-color: transparent;
  color: #1a0020;
  font-weight: 700;
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(247,168,196,0.4);
}

.ctrl-btn.play-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 24px rgba(247,168,196,0.7);
}

/* Volume control */
.volume-icon {
  font-size: 0.78rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  opacity: 0.8;
}

.volume-slider {
  width: 70px;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  box-shadow: 0 0 6px rgba(247,168,196,0.6);
  cursor: pointer;
  transition: transform 0.15s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  cursor: pointer;
}

/* ============================================================
   STATS CARD
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,168,196,0.12);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: all 0.25s;
}

.stat-item:hover {
  background: rgba(247,168,196,0.08);
  border-color: rgba(247,168,196,0.3);
  transform: translateY(-2px);
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(247,168,196,0.5));
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-top: 2px;
  display: block;
  letter-spacing: 0.05em;
}

/* ============================================================
   DISCORD PRESENCE CARD
   ============================================================ */
.discord-presence-card { position: relative; min-height: 80px; overflow: hidden; }

/* Nameplate: absolute background layer inside dp-body only */
.dp-nameplate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 var(--radius) var(--radius) 0;
  z-index: 0;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: opacity 0.4s;
}
.dp-nameplate.visible { opacity: 0.45; }

.dp-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.dp-body.loaded { opacity: 1; }

/* Children above nameplate */
.dp-body > *:not(.dp-nameplate) {
  position: relative;
  z-index: 1;
}

/* Square avatar with status dot */
.dp-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dp-avatar {
  width: 64px;
  height: 64px;
  border-radius: 10px;        /* square with slight rounding */
  object-fit: cover;
  display: block;
  border: 2px solid rgba(247,168,196,0.25);
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.dp-status-dot {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 4px;          /* square status indicator */
  border: 3px solid var(--bg);
  background: #747f8d;         /* default: offline */
  box-shadow: 0 0 6px currentColor;
}

/* Status colours */
.dp-status-dot.online  { background: #3ba55c; box-shadow: 0 0 8px #3ba55c; }
.dp-status-dot.idle    { background: #faa61a; box-shadow: 0 0 8px #faa61a; }
.dp-status-dot.dnd     { background: #ed4245; box-shadow: 0 0 8px #ed4245; }
.dp-status-dot.offline { background: #747f8d; box-shadow: none; }

/* Info */
.dp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dp-username-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.dp-username {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-clan-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pink);
  background: rgba(247,168,196,0.12);
  border: 1px solid rgba(247,168,196,0.28);
  border-radius: 5px;
  padding: 1px 6px 1px 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dp-clan-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}

.dp-status-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dp-status-label.online  { color: #3ba55c; }
.dp-status-label.idle    { color: #faa61a; }
.dp-status-label.dnd     { color: #ed4245; }
.dp-status-label.offline { color: #747f8d; }

.dp-custom-status {
  font-size: 0.8rem;
  color: var(--text-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* Activity section */
.dp-activity {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,168,196,0.1);
  border-radius: 12px;
  gap: 10px;
  align-items: center;
}
.dp-activity.visible { display: flex; }

.dp-activity-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}

.dp-activity-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.dp-activity-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dp-activity-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-activity-detail {
  font-size: 0.75rem;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-activity-elapsed {
  font-size: 0.72rem;
  color: rgba(248,215,232,0.45);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.dp-custom-status .dp-emoji {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}

/* Loading dots */
.dp-loading {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dp-loading.hidden { display: none; }

.dp-loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  animation: dpDotPulse 1.2s ease-in-out infinite;
}
.dp-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.dp-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dpDotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1;   }
}

/* ============================================================
   BADGE CARD — image badges
   ============================================================ */
.badges-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.badge-item {
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 2px;
  position: relative;
}

.badge-item::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(20, 6, 28, 0.92);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(247,168,196,0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 99;
}

.badge-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ============================================================
   FLOATING DECORATIONS
   ============================================================ */
.float-deco .float-el {
  position: fixed;
  pointer-events: none;
  font-size: 1.2rem;
  opacity: 0.45;
  animation: floatAround linear infinite;
  z-index: 2;
}

@keyframes floatAround {
  0%   { transform: translateY(0px) rotate(0deg); opacity: 0.45; }
  50%  { opacity: 0.7; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--pink-dark);
  border-radius: 3px;
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 4px;
}

.admin-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-mute);
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 10px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.admin-tab.active {
  background: rgba(247,168,196,0.18);
  color: var(--pink);
  box-shadow: 0 0 0 1px rgba(247,168,196,0.25);
}

.admin-tab:hover:not(.active) {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.admin-tab-content { display: flex; flex-direction: column; gap: 12px; }
.admin-tab-content.hidden { display: none; }

/* Admin badge grid (inside panel) */
.admin-badge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-dark) transparent;
}

.admin-badge-grid::-webkit-scrollbar { width: 4px; }
.admin-badge-grid::-webkit-scrollbar-thumb { background: var(--pink-dark); border-radius: 2px; }

.admin-badge-item {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  padding: 8px 4px 4px;
  transition: all 0.2s;
}

.admin-badge-item:hover {
  border-color: rgba(247,168,196,0.5);
  background: rgba(247,168,196,0.08);
  transform: translateY(-2px);
}

.admin-badge-item.selected {
  border-color: var(--pink);
  background: rgba(247,168,196,0.12);
  box-shadow: 0 0 0 2px rgba(247,168,196,0.25);
}

.admin-badge-item.selected::after {
  content: '✓';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  background: var(--pink);
  border-radius: 50%;
  font-size: 9px;
  color: #1a0020;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.admin-badge-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(247,168,196,0.3));
}

.admin-badge-item span {
  font-size: 0.5rem;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
  .page-wrapper { flex-direction: column; }
  .left-col { flex: none; width: 100%; }
  .right-col { grid-template-columns: 1fr; }
  .right-col .about-card { grid-column: 1; }
  .music-card { padding: 16px; }

  .music-body {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .music-art-wrapper { flex-shrink: 0; }
  .music-art { width: 100px; height: 100px; border-radius: 16px; }
  .music-art-glow { inset: -8px; border-radius: 20px; }

  /* Info: full width, centered text */
  .music-info {
    width: 100%;
    text-align: center;
    min-width: 0;
  }

  .music-name { font-size: 1rem; }
  .music-artist { font-size: 0.82rem; margin-top: 3px; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.admin-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.admin-modal {
  background: rgba(15, 0, 22, 0.92);
  border: 1px solid rgba(247,168,196,0.3);
  border-radius: 20px;
  padding: 28px 28px 24px;
  width: min(640px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 8px 60px rgba(0,0,0,0.8),
    0 0 80px rgba(247,168,196,0.08);
  position: relative;
  animation: adminSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes adminSlideIn {
  from { transform: translateY(24px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.admin-screen { display: flex; flex-direction: column; gap: 16px; }
.admin-screen.hidden { display: none; }

/* Header */
.admin-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.admin-header-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 12px rgba(247,168,196,0.7));
}

.admin-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.06em;
}

.admin-hint {
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* Close button */
.admin-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-mute);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.admin-close-btn:hover {
  background: rgba(237,66,69,0.2);
  border-color: rgba(237,66,69,0.4);
  color: #ed4245;
}

/* Inputs */
.admin-input-row {
  display: flex;
  gap: 8px;
}

.admin-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(247,168,196,0.2);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus {
  border-color: rgba(247,168,196,0.55);
  box-shadow: 0 0 0 3px rgba(247,168,196,0.08);
}

.admin-input::placeholder { color: var(--text-mute); }

/* Buttons */
.admin-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.83rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.admin-btn.primary {
  background: linear-gradient(135deg, rgba(247,168,196,0.3), rgba(213,166,224,0.25));
  border-color: rgba(247,168,196,0.45);
  color: var(--pink);
}

.admin-btn.primary:hover {
  background: linear-gradient(135deg, rgba(247,168,196,0.45), rgba(213,166,224,0.35));
  box-shadow: 0 0 20px rgba(247,168,196,0.25);
}

.admin-btn.small {
  padding: 9px 12px;
  font-size: 0.78rem;
}

.admin-btn.danger {
  background: rgba(237,66,69,0.12);
  border-color: rgba(237,66,69,0.3);
  color: #ed4245;
}

.admin-btn.danger:hover {
  background: rgba(237,66,69,0.22);
  box-shadow: 0 0 14px rgba(237,66,69,0.2);
}

/* Error text */
.admin-error {
  font-size: 0.78rem;
  color: #ed4245;
  text-align: center;
  min-height: 1em;
  text-shadow: 0 0 8px rgba(237,66,69,0.5);
}

/* Deco grid */
.deco-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-dark) transparent;
}

.deco-grid::-webkit-scrollbar { width: 4px; }
.deco-grid::-webkit-scrollbar-thumb { background: var(--pink-dark); border-radius: 2px; }

.deco-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Avatar silhouette preview under the deco */
.deco-item .deco-preview-bg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247,168,196,0.35), rgba(213,166,224,0.3));
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deco-item .deco-preview-img {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: contain;
  pointer-events: none;
}

.deco-item:hover {
  border-color: rgba(247,168,196,0.5);
  background: rgba(247,168,196,0.08);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(247,168,196,0.2);
}

.deco-item.selected {
  border-color: var(--pink);
  background: rgba(247,168,196,0.12);
  box-shadow: 0 0 0 2px rgba(247,168,196,0.3), 0 6px 20px rgba(247,168,196,0.25);
}

.deco-item.selected::after {
  content: '✓';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--pink);
  border-radius: 50%;
  font-size: 10px;
  color: #1a0020;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* "No deco" item */
.deco-item.deco-none .deco-preview-bg {
  background: rgba(255,255,255,0.04);
}

.deco-item.deco-none .deco-none-label {
  font-size: 0.6rem;
  color: var(--text-mute);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Divider */
.admin-divider {
  font-size: 0.7rem;
  color: var(--text-mute);
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-divider::before,
.admin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Actions row */
.admin-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Toast notification */
.admin-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15,0,22,0.95);
  border: 1px solid rgba(247,168,196,0.35);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--pink);
  z-index: 9999999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.admin-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   TYPING ANIMATION for username
   ============================================================ */
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

/* ============================================================
   SHIMMER on cards
   ============================================================ */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  pointer-events: none;
}

.card { position: relative; overflow: hidden; }
