/* ================================================================
   PROFILE — CYBERPUNK CHARACTER SCREEN
   Full three-layer hero system with palette control
   ================================================================ */


/* ============================================================
   📦 1. ROOT VARIABLES
   ============================================================ */
:root {
  --profile-bg: #0a0508;
  --profile-glass: rgba(10, 5, 20, 0.55);
  --profile-glass-border: rgba(255, 0, 234, 0.12);
  --profile-text: #f5eaff;
  --profile-text-muted: rgba(255, 255, 255, 0.3);

  /* ACCENT — WILL BE DYNAMICALLY UPDATED */
  --accent: #ff00ea;
  --accent-dim: rgba(255, 0, 234, 0.378);
  --accent-glow: 0 0 40px rgba(255, 0, 234, 0.552);
  --accent-glow-strong: 0 0 60px rgba(255, 0, 234, 0.786);
  --accent-glow-soft: 0 0 80px rgba(255, 0, 234, 0.511);

  /* SECONDARY ACCENT — COMPLIMENTARY */
  --accent-secondary: #58ebfe;
  --accent-secondary-dim: rgba(88, 235, 254, 0.08);

  --font-display: "Orbitron", "Rajdhani", monospace;
  --font-condensed: "Rajdhani", "Orbitron", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ============================================================
   🔧 2. RESET & BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

.profile-main {
  min-height: 100vh;
  background: var(--profile-bg);
  position: relative;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}


/* ============================================================
   🎨 3. PALETTE-CONTROLLED ELEMENTS
   Everything that changes with the accent color
   ============================================================ */

/* --- 3a. ALL BUTTONS --- */
.btn-save,
.btn-primary,
.floating-upload,
.portfolio-actions .btn-toggle-portfolio,
.portfolio-actions .btn-share,
.modal-footer .btn-primary,
.submit-upload-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: var(--accent-glow) !important;
}

.btn-save:hover,
.btn-primary:hover,
.floating-upload:hover,
.portfolio-actions .btn-toggle-portfolio:hover,
.portfolio-actions .btn-share:hover,
.modal-footer .btn-primary:hover {
  box-shadow: var(--accent-glow-strong) !important;
}

/* --- 3b. OUTLINE BUTTONS --- */
.btn-outline,
.modal-footer .btn-outline,
.btn-copy,
.btn-switch {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.btn-outline:hover,
.modal-footer .btn-outline:hover,
.btn-copy:hover,
.btn-switch:hover {
  background: var(--accent-dim) !important;
  color: white !important;
  border-color: var(--accent) !important;
}

/* --- 3c. BADGES --- */
.badge.artist {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.badge.portfolio {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  animation: portfolioBadgePulse 2s ease-in-out infinite;
}

/* --- 3d. ICONS --- */
.section-header h3 i,
.section-header h4 i,
.about-card h3 i,
.badge-header h3 i,
.modal-header h3 i,
.stat-value[data-stat="points"],
.portfolio-artwork-item .info .meta .likes {
  color: var(--accent) !important;
}

/* --- 3e. LINKS --- */
a,
.view-all-btn,
.btn-view-all,
.btn-new,
.btn-edit-social,
.btn-edit-badge,
.bio-toggle {
  color: var(--accent) !important;
}

a:hover,
.view-all-btn:hover,
.btn-view-all:hover,
.btn-new:hover,
.btn-edit-social:hover,
.btn-edit-badge:hover,
.bio-toggle:hover {
  color: var(--accent) !important;
  text-shadow: var(--accent-glow) !important;
}

/* --- 3f. TABS --- */
.tab.active {
  background: var(--accent-dim) !important;
}
.tab.active::after {
  background: var(--accent) !important;
}
.tab.active i {
  color: var(--accent) !important;
}

/* --- 3g. FORM ELEMENTS --- */
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px rgba(255, 0, 234, 0.05) !important;
}

.toggle input:checked + .slider {
  background: var(--accent) !important;
}

.tags-display .tag {
  background: var(--accent-dim) !important;
  color: var(--accent) !important;
}

/* --- 3h. COLLECTION & CHALLENGE CARDS --- */
.collection-card:hover,
.challenge-card:hover,
.blog-collection-card:hover,
.blog-post-item:hover {
  border-color: var(--accent) !important;
}

/* --- 3i. MASONRY ITEMS --- */
.masonry-grid .item:hover,
.portfolio-artwork-item:hover {
  border-color: var(--accent) !important;
  box-shadow: var(--accent-glow) !important;
}

/* --- 3j. SHADOW BUTTON --- */
.hero-shadow-btn:hover {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
  box-shadow: var(--accent-glow) !important;
}

/* --- 3k. PORTFOLIO HEADER --- */
.portfolio-header .portfolio-badge {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* --- 3l. CORNER BRACKETS --- */
.profile-tabs::before,
.profile-tabs::after,
.hero-bio::before,
.hero-bio::after,
.about-card::before,
.about-card::after,
.modal-container::before,
.modal-container::after {
  border-color: var(--accent) !important;
}

/* --- 3m. SCROLLBARS --- */
.modal-body::-webkit-scrollbar-thumb {
  background: var(--accent) !important;
}

/* --- 3n. LOADING SPINNER --- */
.loading-spinner i {
  color: var(--accent) !important;
}

/* --- 3o. TOGGLE SWITCH --- */
.toggle-switch input:checked + .slider {
  background: var(--accent) !important;
}

/* --- 3p. UPLOAD DROP ZONE --- */
.upload-drop-zone:hover,
.upload-drop-zone.dragover {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

/* --- 3q. CV DROP ZONE --- */
.cv-drop-zone:hover {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

/* --- 3r. PALETTE SWATCH ACTIVE --- */
.palette-swatch.active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px var(--accent) !important;
}

/* --- 3s. GLASS PANELS WITH ACCENT GLOW --- */
.glass-panel,
.about-card,
.collections-section,
.gallery-section,
.liked-section,
.saved-section,
.tutorials-section,
.challenges-section,
.badges-section,
.blog-section,
.commission-section,
.portfolio-header,
.portfolio-artist-info,
.profile-tabs {
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), var(--accent-glow) !important;
}

.glass-panel:hover,
.about-card:hover,
.portfolio-artist-info:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), var(--accent-glow-strong) !important;
}

/* --- 3t. ACCENT BORDER LEFT --- */
.portfolio-artist-info .artist-stats-compact {
  border-left-color: var(--accent) !important;
}

.challenge-card {
  border-left-color: var(--accent) !important;
}

/* --- 3u. GRADIENT TEXT --- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* --- 3v. NEON GLOW ON TEXT --- */
.neon-text {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent)30, 0 0 60px var(--accent)15;
}

/* --- 3w. ACCENT CHECKBOXES / RADIO --- */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: var(--accent) !important;
}

/* --- 3x. ACCENT NOTIFICATION BADGE --- */
.notification-badge {
  background: var(--accent) !important;
  box-shadow: 0 0 20px var(--accent)40 !important;
}

/* --- 3y. ACCENT AVATAR BORDER --- */
.avatar-wrapper:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 30px var(--accent)20 !important;
}

/* --- 3z. ACCENT SOCIAL ICON HOVER --- */
.social-icons a:hover {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}


/* ============================================================
   ✨ 4. ACCENT ANIMATIONS
   ============================================================ */

@keyframes accentPulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent)15, 0 0 40px var(--accent)05; }
  50% { box-shadow: 0 0 40px var(--accent)30, 0 0 80px var(--accent)10; }
}

@keyframes accentGlowPulse {
  0%, 100% { text-shadow: 0 0 30px var(--accent)20; }
  50% { text-shadow: 0 0 60px var(--accent)40, 0 0 90px var(--accent)20; }
}

@keyframes accentBorderPulse {
  0%, 100% { border-color: var(--accent)30; }
  50% { border-color: var(--accent)60; }
}

/* Apply animations */
.accent-pulse {
  animation: accentPulse 3s ease-in-out infinite;
}

.accent-glow-text {
  animation: accentGlowPulse 3s ease-in-out infinite;
}

.accent-border-pulse {
  animation: accentBorderPulse 2s ease-in-out infinite;
}

/* ============================================================
   📌 HEADER — NATURAL SCROLL (Profile Page)
   ============================================================ */

/* Make sure header scrolls normally on profile page */
.profile-page .main-header {
  position: relative !important;  /* ← NATURAL FLOW */
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 10 !important;
  margin: 12px 20px 0 !important;
  width: auto !important;
  max-width: 100% !important;
  border-radius: 4px !important;
  /* No sticky, no fixed — it scrolls with the page */
}


/* ============================================================
   🖼️ 5. LAYER 1: BACKGROUND — FIXED FULL SCREEN
   ============================================================ */
.hero-layer-1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: var(--profile-bg);
  overflow: hidden;
}

.hero-layer-1 #layer1Content {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-layer-1 .layer-default-bg {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 40%, #1a0a3a, #0a0508 80%);
  position: absolute;
  top: 0;
  left: 0;
}

.hero-layer-1 img,
.hero-layer-1 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}


/* ============================================================
   🖼️ 6. LAYER 2: OVERLAY — FIXED FULL SCREEN
   ============================================================ */
.hero-layer-2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-layer-2 #layer2Content {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.hero-layer-2 .layer-default-avatar {
  font-size: 6rem;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-layer-2 img,
.hero-layer-2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.6;
}


/* ============================================================
   🪟 7. LAYER 3: GLASS UI
   ============================================================ */
.hero-layer-3 {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 30px;
  pointer-events: none;
}

.hero-layer-3 .hero-content,
.hero-layer-3 .hero-sidebar,
.hero-layer-3 .hero-shadow-btn,
.hero-layer-3 .theme-toggle-btn,
.hero-layer-3 .palette-picker {
  pointer-events: auto;
}


/* ============================================================
   🎯 8. HERO ARTIST TITLE
   ============================================================ */
.hero-artist-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px 0;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  width: fit-content;
  box-shadow: var(--accent-glow-soft);
  transition: all var(--transition);
  animation: accentBorderPulse 3s ease-in-out infinite;
}

.hero-artist-title:hover {
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}

.hero-artist-title .artist-title-icon {
  font-size: 0.6rem;
  opacity: 0.6;
  animation: sparkleFloat 2s ease-in-out infinite;
}

.hero-artist-title .artist-title-icon:first-child {
  animation-delay: 0s;
}
.hero-artist-title .artist-title-icon:last-child {
  animation-delay: 1s;
}

@keyframes sparkleFloat {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

.hero-artist-title .artist-title-text {
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light theme */
body.light-theme .hero-artist-title {
  background: rgba(255, 255, 255, 0.4);
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-artist-title {
    font-size: 0.6rem;
    padding: 4px 12px;
    gap: 8px;
    align-self: center;
  }
}


/* ============================================================
   🧭 9. SIDEBAR — ALWAYS ACTIVE / HOVER STATE
   ============================================================ */
.hero-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.sidebar-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 30px var(--accent)15;
}

.sidebar-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: white;
  transform: scale(1.05) translateX(-2px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px var(--accent)25;
}

/* Sidebar corner brackets — always visible */
.sidebar-btn::before,
.sidebar-btn::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  opacity: 0.6;
  transition: opacity var(--transition), border-color var(--transition);
}
.sidebar-btn::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.sidebar-btn::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.sidebar-btn:hover::before,
.sidebar-btn:hover::after {
  opacity: 1;
}


/* ============================================================
   📝 10. HERO CONTENT
   ============================================================ */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  min-height: 70vh;
  max-width: 700px;
}

.hero-header {
  margin-bottom: 12px;
}


/* ============================================================
   🎯 11. HERO NAME — GLITCH + INTENSE GLOW
   ============================================================ */
.hero-name {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1;
  position: relative;
  display: inline-block;
  cursor: default;

  /* BASE GLOW — CONSTANT */
  text-shadow:
    0 0 20px var(--accent)25,
    0 0 40px var(--accent)20,
    0 0 80px var(--accent)12,
    0 0 120px var(--accent)06,
    0 4px 30px rgba(18, 0, 137, 0.9);

  transition: text-shadow var(--transition-smooth);
}

/* GLITCH PSEUDO-ELEMENTS — ALWAYS ACTIVE */
.hero-name::before,
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* HOVER — ACTIVATE GLITCH */
.hero-name:hover::before {
  opacity: 1;
  color: var(--accent);
  z-index: -1;
  animation: glitchText1 0.15s infinite;
  text-shadow: 2px 0 var(--accent-secondary), -2px 0 var(--accent);
}

.hero-name:hover::after {
  opacity: 1;
  color: var(--accent-secondary);
  z-index: -2;
  animation: glitchText2 0.2s infinite;
  text-shadow: -2px 0 var(--accent), 2px 0 var(--accent-secondary);
}

/* HOVER — INTENSE GLOW */
.hero-name:hover {
  text-shadow:
    0 0 30px var(--accent)40,
    0 0 60px var(--accent)30,
    0 0 100px var(--accent)20,
    0 0 150px var(--accent)10,
    0 4px 30px rgba(0, 0, 0, 0.9);
  animation: glitchFlicker 0.3s ease 2;
}

/* GLITCH KEYFRAMES */
@keyframes glitchText1 {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitchText2 {
  0% { transform: translate(0); }
  20% { transform: translate(2px, -1px); }
  40% { transform: translate(-2px, 1px); }
  60% { transform: translate(1px, -2px); }
  80% { transform: translate(-1px, 2px); }
  100% { transform: translate(0); }
}

@keyframes glitchFlicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  25% { opacity: 0.9; transform: scale(1.01) translateX(-1px); }
  50% { opacity: 1; transform: scale(0.99) translateX(1px); }
  75% { opacity: 0.95; transform: scale(1.01) translateX(-0.5px); }
}

/* PAGE LOAD GLITCH — FADE IN WITH GLITCH */
.hero-name {
  animation:
    nameGlowPulse 3s ease-in-out infinite,
    nameLoadGlitch 1.2s ease forwards;
}

@keyframes nameGlowPulse {
  0%, 100% {
    text-shadow:
      0 0 20px var(--accent)25,
      0 0 40px var(--accent)20,
      0 0 80px var(--accent)12,
      0 0 120px var(--accent)06,
      0 4px 30px rgba(0, 0, 0, 0.9);
  }
  50% {
    text-shadow:
      0 0 30px var(--accent)35,
      0 0 60px var(--accent)25,
      0 0 100px var(--accent)18,
      0 0 150px var(--accent)08,
      0 4px 30px rgba(0, 0, 0, 0.9);
  }
}

@keyframes nameLoadGlitch {
  0% {
    opacity: 0;
    transform: scale(1.1) rotate(-2deg);
    clip-path: inset(0 0 100% 0);
    text-shadow:
      0 0 50px var(--accent)50,
      0 0 100px var(--accent)30;
  }
  10% {
    opacity: 0.5;
    clip-path: inset(30% 0 40% 0);
    transform: scale(1.02) translateX(-3px);
  }
  20% {
    opacity: 0.8;
    clip-path: inset(10% 0 70% 0);
    transform: scale(0.98) translateX(3px);
  }
  30% {
    opacity: 1;
    clip-path: inset(60% 0 20% 0);
    transform: scale(1.01) translateX(-1px);
  }
  40% {
    clip-path: inset(0 0 0 0);
    transform: scale(1) translateX(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0 0 0 0);
  }
}

/* LIGHT THEME */
body.light-theme .hero-name {
  color: #1a102a !important;
  text-shadow:
    0 0 20px var(--accent)35,
    0 0 40px var(--accent)25,
    0 0 80px var(--accent)15,
    0 4px 30px rgba(255, 255, 255, 0.6);
}

body.light-theme .hero-name:hover {
  text-shadow:
    0 0 30px var(--accent)50,
    0 0 60px var(--accent)35,
    0 0 100px var(--accent)20,
    0 4px 30px rgba(255, 255, 255, 0.6);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-name {
    font-size: 2.4rem;
    text-shadow:
      0 0 15px var(--accent)25,
      0 0 30px var(--accent)20,
      0 0 60px var(--accent)12,
      0 4px 30px rgba(0, 0, 0, 0.9);
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 1.8rem;
    text-shadow:
      0 0 10px var(--accent)25,
      0 0 20px var(--accent)20,
      0 0 40px var(--accent)12,
      0 4px 20px rgba(0, 0, 0, 0.9);
  }
}


/* ============================================================
   👤 12. HERO USERNAME
   ============================================================ */
.hero-username {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--profile-text-muted);
  margin-top: 2px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}


/* ============================================================
   🏷️ 13. HERO BADGES
   ============================================================ */
.hero-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 3px 12px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
  background: var(--profile-glass);
  border: 1px solid var(--profile-glass-border);
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.badge.artist { background: rgba(255, 0, 234, 0.12); border-color: rgba(255, 0, 234, 0.15); color: var(--accent); }
.badge.verified { background: rgba(79, 243, 166, 0.08); border-color: rgba(79, 243, 166, 0.12); color: #4ff3a6; }
.badge.moderator { background: rgba(88, 235, 254, 0.08); border-color: rgba(88, 235, 254, 0.12); color: #58ebfe; }
.badge.portfolio { background: rgba(255, 199, 46, 0.08); border-color: rgba(255, 199, 46, 0.12); color: #ffc72e; }


/* ============================================================
   📊 14. STATS — RUNNING UP GLITCH ANIMATION
   ============================================================ */
.hero-stats {
  display: flex;
  gap: 32px;
  margin: 12px 0;
}

.stat {
  text-align: center;
  padding: 4px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.stat:last-child { border-right: none; }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
  line-height: 1.2;
  position: relative;

  /* GLITCH SEQUENCE ON LOAD */
  animation: statGlitchLoad 1.5s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* Sequential delays for each stat */
.hero-stats .stat:nth-child(1) .stat-value { animation-delay: 0.3s; }
.hero-stats .stat:nth-child(2) .stat-value { animation-delay: 0.5s; }
.hero-stats .stat:nth-child(3) .stat-value { animation-delay: 0.7s; }
.hero-stats .stat:nth-child(4) .stat-value { animation-delay: 0.9s; }
.hero-stats .stat:nth-child(5) .stat-value { animation-delay: 1.1s; }

@keyframes statGlitchLoad {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(1.2);
    filter: blur(4px);
    clip-path: inset(0 0 100% 0);
    text-shadow:
      0 0 30px var(--accent)40,
      0 0 60px var(--accent)20;
  }
  5% {
    opacity: 0.3;
    transform: translateY(-10px) scale(1.1);
    clip-path: inset(40% 0 30% 0);
    filter: blur(2px);
  }
  10% {
    opacity: 0.6;
    transform: translateY(-5px) scale(1.05);
    clip-path: inset(10% 0 70% 0);
    filter: blur(1px);
  }
  15% {
    opacity: 0.8;
    transform: translateY(0) scale(1.02);
    clip-path: inset(60% 0 20% 0);
    filter: blur(0px);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
    filter: blur(0px);
  }
  25% {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
  /* GLITCH FLICKER TOWARDS END */
  70% {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0 0 0 0);
  }
  75% {
    opacity: 0.7;
    transform: scale(1.02) translateX(-2px);
    clip-path: inset(20% 0 60% 0);
    color: var(--accent);
  }
  78% {
    opacity: 1;
    transform: scale(0.98) translateX(2px);
    clip-path: inset(50% 0 30% 0);
    color: var(--accent-secondary);
  }
  82% {
    opacity: 0.9;
    transform: scale(1.01) translateX(-1px);
    clip-path: inset(0 0 0 0);
    color: white;
  }
  85% {
    opacity: 1;
    transform: scale(1) translateX(0);
    clip-path: inset(0 0 0 0);
    color: white;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
    clip-path: inset(0 0 0 0);
    color: white;
  }
}

/* Points stat — special gold treatment */
.stat-value[data-stat="points"] {
  color: #ffc72e;
  text-shadow: 0 0 30px rgba(255, 199, 46, 0.15);
}
.stat-value[data-stat="points"]::before {
  content: "⭐ ";
  font-size: 0.8rem;
}

.stat-value[data-stat="points"] {
  animation: statGlitchLoadGold 1.5s ease forwards;
  animation-delay: 1.1s;
  opacity: 0;
}

@keyframes statGlitchLoadGold {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(1.2);
    filter: blur(4px);
    clip-path: inset(0 0 100% 0);
    text-shadow: 0 0 30px rgba(255, 199, 46, 0.5);
  }
  5% {
    opacity: 0.3;
    transform: translateY(-10px) scale(1.1);
    clip-path: inset(40% 0 30% 0);
    filter: blur(2px);
  }
  10% {
    opacity: 0.6;
    transform: translateY(-5px) scale(1.05);
    clip-path: inset(10% 0 70% 0);
    filter: blur(1px);
  }
  15% {
    opacity: 0.8;
    transform: translateY(0) scale(1.02);
    clip-path: inset(60% 0 20% 0);
    filter: blur(0px);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
    filter: blur(0px);
  }
  70% {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0 0 0 0);
  }
  75% {
    opacity: 0.7;
    transform: scale(1.02) translateX(-2px);
    clip-path: inset(20% 0 60% 0);
    color: #ffc72e;
  }
  78% {
    opacity: 1;
    transform: scale(0.98) translateX(2px);
    clip-path: inset(50% 0 30% 0);
    color: #ff9500;
  }
  82% {
    opacity: 0.9;
    transform: scale(1.01) translateX(-1px);
    clip-path: inset(0 0 0 0);
    color: #ffc72e;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
    clip-path: inset(0 0 0 0);
    color: #ffc72e;
  }
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--profile-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Light theme stats */
body.light-theme .stat-value {
  color: #1a102a;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8) !important;
}

body.light-theme .stat-value[data-stat="points"] {
  color: #d97706;
}


/* ============================================================
   📝 15. BIO
   ============================================================ */
.hero-bio {
  width: 100%;
  max-width: 500px;
  margin-top: 12px;
  background: var(--profile-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 4px;
  padding: 14px 18px;
  border: 1px solid var(--profile-glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  position: relative;
  transition: all var(--transition);
}

.hero-bio::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  opacity: 0.15;
  transition: opacity var(--transition);
  pointer-events: none;
}
.hero-bio::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.15;
  transition: opacity var(--transition);
  pointer-events: none;
}
.hero-bio:hover::before,
.hero-bio:hover::after {
  opacity: 0.4;
}

.hero-bio.collapsed {
  max-height: 56px;
  overflow: hidden;
  cursor: pointer;
}

.bio-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
}

.bio-toggle {
  background: none;
  border: none;
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.6rem;
  cursor: pointer;
  margin-top: 4px;
  transition: color var(--transition);
}
.bio-toggle:hover { color: var(--accent); }


/* ============================================================
   🏅 16. ARTIST BADGE
   ============================================================ */
.artist-badge {
  width: 100%;
  max-width: 500px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--profile-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 4px;
  border: 1px solid var(--profile-glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.badge-header h3 {
  font-family: var(--font-condensed);
  color: var(--profile-text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-header h3 i { color: #ffc72e; }

.btn-edit-badge {
  background: var(--accent-dim);
  border: 1px solid rgba(255, 0, 234, 0.08);
  padding: 2px 8px;
  border-radius: 2px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-edit-badge:hover { background: var(--accent-dim); color: white; }

.badge-display {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.02);
  padding: 6px 10px;
  border-radius: 2px;
}
.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.badge-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.badge-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--profile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-value {
  font-family: var(--font-condensed);
  font-weight: 600;
  color: white;
  background: var(--accent-dim);
  padding: 0 8px;
  border-radius: 2px;
  font-size: 0.6rem;
}
.badge-tags { display: flex; flex-wrap: wrap; gap: 2px; }
.badge-tags .tag {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.03);
  padding: 0 6px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.04);
}
.badge-tags .tag.primary {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   BADGE MODAL — CLEAN & READABLE
   ============================================================ */

/* Badge Modal Container */
.badge-modal .modal-container {
  max-width: 640px;
  width: 92%;
  background: var(--badge-modal-bg, #0f0f1c);
  border: 1px solid var(--profile-glass-border);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--accent-glow);
}

/* Modal Header */
.badge-modal .modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--badge-modal-border, rgba(255, 255, 255, 0.04));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-modal .modal-header h3 {
  font-family: var(--font-display, "Orbitron", monospace);
  font-size: 1rem;
  font-weight: 700;
  color: var(--badge-modal-title, #f5eaff);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-modal .modal-header h3 i {
  color: var(--accent, #ff00ea);
}

.badge-modal .modal-close {
  background: none;
  border: none;
  color: var(--badge-modal-muted, rgba(255, 255, 255, 0.3));
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition, 0.3s ease);
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-modal .modal-close:hover {
  color: var(--badge-modal-text, #f5eaff);
  background: var(--badge-modal-hover, rgba(255, 255, 255, 0.04));
  transform: rotate(90deg);
}

/* Modal Body */
.badge-modal .modal-body {
  padding: 1.75rem;
  max-height: 65vh;
  overflow-y: auto;
}

.badge-modal .modal-body::-webkit-scrollbar {
  width: 4px;
}
.badge-modal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.badge-modal .modal-body::-webkit-scrollbar-thumb {
  background: var(--accent, #ff00ea);
  border-radius: 2px;
}

/* Form Fields */
.badge-field {
  margin-bottom: 1.5rem;
}

.badge-field:last-child {
  margin-bottom: 0;
}

.badge-field label {
  display: block;
  font-family: var(--font-condensed, "Rajdhani", sans-serif);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--badge-modal-label, #b8a0d0);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.badge-field .required {
  color: var(--neon-red, #ff0040);
  margin-left: 2px;
}

.badge-field .badge-count-label {
  font-family: var(--font-mono, "Share Tech Mono", monospace);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--badge-modal-muted, rgba(255, 255, 255, 0.3));
  margin-left: 4px;
  text-transform: lowercase;
}

.badge-helper {
  display: block;
  font-family: var(--font-mono, "Share Tech Mono", monospace);
  font-size: 0.55rem;
  color: var(--badge-modal-muted, rgba(255, 255, 255, 0.25));
  margin-top: 0.25rem;
  letter-spacing: 0.3px;
}

/* Select Dropdown */
.badge-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--badge-modal-input-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--badge-modal-border, rgba(255, 255, 255, 0.06));
  border-radius: 4px;
  color: var(--badge-modal-text, #f5eaff);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.9rem;
  transition: all var(--transition, 0.3s ease);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7a9a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.badge-select:hover {
  border-color: var(--badge-modal-border-hover, rgba(255, 255, 255, 0.12));
}

.badge-select:focus {
  outline: none;
  border-color: var(--accent, #ff00ea);
  box-shadow: 0 0 20px rgba(255, 0, 234, 0.05);
}

.badge-select option {
  background: var(--badge-modal-option-bg, #0f0f1c);
  color: var(--badge-modal-text, #f5eaff);
  padding: 4px;
}

/* Checkbox Grid */
.badge-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: var(--badge-modal-input-bg, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--badge-modal-border, rgba(255, 255, 255, 0.04));
  border-radius: 4px;
  max-height: 180px;
  overflow-y: auto;
}

.badge-checkbox-grid .group {
  padding: 0.2rem 0;
}

.badge-checkbox-grid .group-title {
  font-family: var(--font-mono, "Share Tech Mono", monospace);
  font-size: 0.5rem;
  color: var(--badge-modal-muted, rgba(255, 255, 255, 0.2));
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.3rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid var(--badge-modal-border, rgba(255, 255, 255, 0.03));
}

.badge-checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.4rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition, 0.2s ease);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.75rem;
  color: var(--badge-modal-label, rgba(255, 255, 255, 0.6));
}

.badge-checkbox-grid label:hover {
  background: var(--badge-modal-hover, rgba(255, 255, 255, 0.03));
  color: var(--badge-modal-text, #f5eaff);
}

.badge-checkbox-grid label input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--badge-modal-border, rgba(255, 255, 255, 0.1));
  border-radius: 3px;
  background: var(--badge-modal-input-bg, rgba(255, 255, 255, 0.03));
  cursor: pointer;
  position: relative;
  transition: all var(--transition, 0.2s ease);
  flex-shrink: 0;
}

.badge-checkbox-grid label input[type="checkbox"]:checked {
  background: var(--accent, #ff00ea);
  border-color: var(--accent, #ff00ea);
  box-shadow: 0 0 15px rgba(255, 0, 234, 0.15);
}

.badge-checkbox-grid label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
  font-weight: 700;
}

.badge-checkbox-grid label input[type="checkbox"]:hover {
  border-color: var(--badge-modal-border-hover, rgba(255, 255, 255, 0.2));
}

/* Modal Footer */
.badge-modal .modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--badge-modal-border, rgba(255, 255, 255, 0.04));
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge-modal .modal-footer .btn-outline {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid var(--badge-modal-border, rgba(255, 255, 255, 0.06));
  border-radius: 4px;
  color: var(--badge-modal-muted, rgba(255, 255, 255, 0.4));
  font-family: var(--font-condensed, "Rajdhani", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition, 0.3s ease);
}

.badge-modal .modal-footer .btn-outline:hover {
  background: var(--badge-modal-hover, rgba(255, 255, 255, 0.04));
  border-color: var(--badge-modal-border-hover, rgba(255, 255, 255, 0.12));
  color: var(--badge-modal-text, #f5eaff);
}

.badge-modal .modal-footer .btn-primary {
  padding: 0.5rem 1.5rem;
  background: var(--accent, #ff00ea);
  border: none;
  border-radius: 4px;
  color: white;
  font-family: var(--font-condensed, "Rajdhani", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition, 0.3s ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 30px rgba(255, 0, 234, 0.15);
}

.badge-modal .modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 0, 234, 0.3);
}

.badge-modal .modal-footer .btn-primary:active {
  transform: scale(0.97);
}

/* Empty state for checkbox grids */
.badge-checkbox-grid .empty-message {
  grid-column: 1 / -1;
  padding: 0.5rem;
  text-align: center;
  color: var(--badge-modal-muted, rgba(255, 255, 255, 0.2));
  font-family: var(--font-mono, "Share Tech Mono", monospace);
  font-size: 0.7rem;
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */

[data-theme="light"] .badge-modal .modal-container {
  --badge-modal-bg: #f5f0e8;
  --badge-modal-text: #1a102a;
  --badge-modal-title: #1a102a;
  --badge-modal-label: #4a3a5a;
  --badge-modal-muted: #8a7a9a;
  --badge-modal-border: rgba(173, 3, 252, 0.12);
  --badge-modal-border-hover: rgba(173, 3, 252, 0.2);
  --badge-modal-input-bg: rgba(255, 255, 255, 0.4);
  --badge-modal-hover: rgba(173, 3, 252, 0.04);
  --badge-modal-option-bg: #f5f0e8;

  background: var(--badge-modal-bg);
  border-color: var(--badge-modal-border);
}

[data-theme="light"] .badge-modal .modal-header {
  border-color: var(--badge-modal-border);
}

[data-theme="light"] .badge-modal .modal-header h3 {
  color: var(--badge-modal-title);
}

[data-theme="light"] .badge-modal .modal-close {
  color: var(--badge-modal-muted);
}

[data-theme="light"] .badge-modal .modal-close:hover {
  color: var(--badge-modal-text);
  background: var(--badge-modal-hover);
}

[data-theme="light"] .badge-select {
  background-color: var(--badge-modal-input-bg);
  color: var(--badge-modal-text);
  border-color: var(--badge-modal-border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7a9a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

[data-theme="light"] .badge-select option {
  background: var(--badge-modal-option-bg);
  color: var(--badge-modal-text);
}

[data-theme="light"] .badge-select:hover {
  border-color: var(--badge-modal-border-hover);
}

[data-theme="light"] .badge-checkbox-grid {
  background: var(--badge-modal-input-bg);
  border-color: var(--badge-modal-border);
}

[data-theme="light"] .badge-checkbox-grid .group-title {
  color: var(--badge-modal-muted);
  border-color: var(--badge-modal-border);
}

[data-theme="light"] .badge-checkbox-grid label {
  color: var(--badge-modal-label);
}

[data-theme="light"] .badge-checkbox-grid label:hover {
  background: var(--badge-modal-hover);
  color: var(--badge-modal-text);
}

[data-theme="light"] .badge-checkbox-grid label input[type="checkbox"] {
  border-color: var(--badge-modal-border);
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .badge-checkbox-grid label input[type="checkbox"]:hover {
  border-color: var(--badge-modal-border-hover);
}

[data-theme="light"] .badge-checkbox-grid label input[type="checkbox"]:checked {
  background: var(--accent, #ff00ea);
  border-color: var(--accent, #ff00ea);
}

[data-theme="light"] .badge-field label {
  color: var(--badge-modal-label);
}

[data-theme="light"] .badge-field .badge-count-label {
  color: var(--badge-modal-muted);
}

[data-theme="light"] .badge-helper {
  color: var(--badge-modal-muted);
}

[data-theme="light"] .badge-modal .modal-footer {
  border-color: var(--badge-modal-border);
}

[data-theme="light"] .badge-modal .modal-footer .btn-outline {
  border-color: var(--badge-modal-border);
  color: var(--badge-modal-muted);
}

[data-theme="light"] .badge-modal .modal-footer .btn-outline:hover {
  background: var(--badge-modal-hover);
  border-color: var(--badge-modal-border-hover);
  color: var(--badge-modal-text);
}

[data-theme="light"] .badge-modal .modal-footer .btn-primary {
  color: white;
}

[data-theme="light"] .badge-checkbox-grid .empty-message {
  color: var(--badge-modal-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .badge-modal .modal-container {
    max-width: 95%;
    border-radius: 6px;
  }

  .badge-modal .modal-header {
    padding: 1rem 1.25rem;
  }

  .badge-modal .modal-header h3 {
    font-size: 0.85rem;
  }

  .badge-modal .modal-body {
    padding: 1.25rem;
    max-height: 55vh;
  }

  .badge-checkbox-grid {
    grid-template-columns: 1fr !important;
    max-height: 150px;
  }

  .badge-checkbox-grid .group {
    padding: 0.1rem 0;
  }

  .badge-checkbox-grid label {
    font-size: 0.7rem;
    padding: 0.2rem 0.3rem;
  }

  .badge-field label {
    font-size: 0.7rem;
  }

  .badge-select {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }

  .badge-modal .modal-footer {
    padding: 0.75rem 1.25rem;
    flex-direction: column-reverse;
  }

  .badge-modal .modal-footer .btn-outline,
  .badge-modal .modal-footer .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.6rem;
  }

  .badge-modal .modal-close {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .badge-modal .modal-container {
    max-width: 98%;
    border-radius: 4px;
  }

  .badge-modal .modal-header {
    padding: 0.75rem 1rem;
  }

  .badge-modal .modal-body {
    padding: 1rem;
  }

  .badge-field {
    margin-bottom: 1rem;
  }

  .badge-checkbox-grid {
    max-height: 120px;
    padding: 0.3rem 0.4rem;
  }

  .badge-checkbox-grid label {
    font-size: 0.65rem;
  }

  .badge-checkbox-grid label input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }
}


/* ============================================================
   🔗 17. SOCIAL
   ============================================================ */
.hero-social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-edit-social {
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 0, 234, 0.06);
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-edit-social:hover { background: var(--accent-dim); color: white; }

.social-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--profile-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--profile-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-icons a:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}


/* ============================================================
   👻 18. SHADOW BUTTON — SCROLLS WITH HERO
   ============================================================ */

.hero-shadow-btn {
  /* REMOVE position: fixed */
  position: relative !important;  /* ← NATURAL FLOW */
  bottom: auto !important;
  right: auto !important;
  z-index: 10 !important;

  /* Keep the styling but make it part of the hero content */
  margin-top: 16px;
  padding: 12px 28px;
  border-radius: 2px;
  background: var(--profile-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--profile-glass-border);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--accent-glow-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  align-self: flex-start;  /* Keep it left-aligned */
}

.hero-shadow-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: white;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), var(--accent-glow);
}

/* Shadow button — active state (shadowing) */
.hero-shadow-btn.shadowing {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--accent-glow-strong);
}

.hero-shadow-btn .shadow-icon {
  font-size: 1.1rem;
  transition: transform var(--transition-smooth);
}

.hero-shadow-btn:hover .shadow-icon {
  transform: scale(1.2) rotate(-8deg);
}

/* Light theme */
body.light-theme .hero-shadow-btn {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  color: rgba(26, 16, 42, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), var(--accent-glow-soft);
}

body.light-theme .hero-shadow-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #1a102a;
}

body.light-theme .hero-shadow-btn.shadowing {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive — no fixed positioning needed */
@media (max-width: 768px) {
  .hero-shadow-btn {
    padding: 10px 20px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .hero-shadow-btn {
    padding: 8px 16px;
    font-size: 0.6rem;
    gap: 6px;
  }
  .hero-shadow-btn .shadow-icon {
    font-size: 0.9rem;
  }
}


/* ============================================================
   🌓 19. THEME TOGGLE
   ============================================================ */
.theme-toggle-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--profile-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--profile-glass-border);
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.theme-toggle-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: white;
  transform: scale(1.05);
}


/* ============================================================
   🎨 20. PALETTE PICKER
   ============================================================ */
.palette-picker {
  position: fixed;
  bottom: 150px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.palette-toggle {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--profile-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--profile-glass-border);
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.palette-toggle:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: white;
}

.palette-grid {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--profile-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--profile-glass-border);
  border-radius: 2px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: slideDown 0.3s ease;
}
.palette-grid.active { display: flex; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.palette-swatch {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.palette-swatch:hover { transform: scale(1.15); }
.palette-swatch.active {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 20px currentColor;
}


/* ============================================================
   📂 21. LAYER CONTROLS
   ============================================================ */
.layer-controls {
  position: fixed;
  right: 20px;
  top: 70px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.layer-controls.visible { display: flex; }

.layer-toggle {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: var(--profile-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--profile-glass-border);
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.layer-toggle:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: white;
}

.layer-options {
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: slideDown 0.3s ease;
}
.layer-options.active { display: flex; }

.layer-option {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--profile-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--profile-glass-border);
  border-radius: 2px;
  padding: 4px 8px 4px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
}
.layer-option:hover { background: var(--accent-dim); border-color: var(--accent); }
.layer-option input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
}
.layer-remove {
  background: rgba(239,68,68,0.08);
  border: 1px solid transparent;
  color: rgba(239,68,68,0.3);
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  transition: all var(--transition);
}
.layer-remove:hover { background: rgba(239,68,68,0.15); color: #ef4444; }


/* ============================================================
   📐 22. PROFILE SECTIONS
   ============================================================ */
.profile-sections {
  position: relative;
  z-index: 3;
  padding: 2rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 100vh;
  min-height: 600px;
}


/* ============================================================
   📑 23. TABS — GAMER HUD
   ============================================================ */
.profile-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--profile-glass);
  backdrop-filter: blur(20px);
  border-radius: 2px;
  border: 1px solid var(--profile-glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), var(--accent-glow);
}

.profile-tabs::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  opacity: 0.1;
  pointer-events: none;
}
.profile-tabs::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.1;
  pointer-events: none;
}

.tab {
  padding: 0.4rem 1.2rem;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: all var(--transition);
  transform: translateX(-50%);
}
.tab:hover { color: rgba(255,255,255,0.7); }
.tab:hover::after { width: 40%; }
.tab.active { color: white; background: var(--accent-dim); }
.tab.active::after { width: 60%; }
.tab i { font-size: 0.7rem; color: rgba(255,255,255,0.15); }
.tab.active i { color: var(--accent); }


/* ============================================================
   📄 24. TAB CONTENT
   ============================================================ */
.tab-content { display: none; animation: fadeUp 0.4s ease; }
.tab-content.active { display: block; }

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


/* ============================================================
   🪟 25. GLASS PANELS
   ============================================================ */
.glass-panel {
  background: var(--profile-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--profile-glass-border);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), var(--accent-glow);
}


/* ============================================================
   👤 26. ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.about-card {
  background: var(--profile-glass);
  backdrop-filter: blur(20px);
  border-radius: 2px;
  padding: 1.5rem;
  border: 1px solid var(--profile-glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), var(--accent-glow);
}
.about-card h3 {
  font-family: var(--font-condensed);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.about-card h3 i { color: var(--accent); }

.field {
  margin-bottom: 0.8rem;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.4rem 0.7rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  color: rgba(255,255,255,0.8);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 20px rgba(255,0,234,0.03);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.15); }
.field textarea { resize: vertical; min-height: 40px; }

.btn-save {
  margin-top: 0.5rem;
  padding: 0.4rem 1.5rem;
  border: none;
  border-radius: 2px;
  background: var(--accent);
  color: white;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-save:hover { transform: translateY(-2px); box-shadow: var(--accent-glow); }


/* ============================================================
   🖼️ 27. PORTFOLIO
   ============================================================ */
.portfolio-container { max-width: 1200px; margin: 0 auto; }

.portfolio-header {
  padding: 2rem 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.portfolio-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 2px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.portfolio-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}
.portfolio-header p { color: var(--profile-text-muted); font-size: 0.9rem; }

.portfolio-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.btn-share, .btn-copy, .btn-switch {
  padding: 8px 20px;
  border: none;
  border-radius: 2px;
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-share {
  background: linear-gradient(135deg, #58ebfe, var(--accent));
  color: white;
}
.btn-copy {
  background: var(--profile-glass);
  border: 1px solid var(--profile-glass-border);
  color: rgba(255,255,255,0.6);
}
.btn-switch {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
}
.btn-share:hover, .btn-copy:hover, .btn-switch:hover {
  transform: translateY(-2px);
  box-shadow: var(--accent-glow);
}
.btn-share:hover { box-shadow: 0 8px 30px rgba(88,235,254,0.2); }
.btn-copy:hover { background: var(--accent-dim); border-color: var(--accent); color: white; }
.btn-switch:hover { color: white; border-color: var(--accent); }

.portfolio-loading { text-align: center; padding: 2rem; color: var(--profile-text-muted); }
.portfolio-loading i { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

.portfolio-artist-info {
  padding: 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  background: var(--profile-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--profile-glass-border);
  border-radius: 2px;
  margin-bottom: 2rem;
}
.portfolio-artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.portfolio-artwork-item {
  border-radius: 2px;
  overflow: hidden;
  background: var(--profile-glass);
  border: 1px solid var(--profile-glass-border);
  transition: all var(--transition);
  cursor: pointer;
}
.portfolio-artwork-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.portfolio-artwork-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.portfolio-artwork-item .info {
  padding: 0.6rem 0.8rem;
}
.portfolio-artwork-item .info .title {
  font-family: var(--font-condensed);
  font-weight: 600;
  color: white;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portfolio-artwork-item .info .meta {
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.6rem;
  display: flex;
  gap: 12px;
  margin-top: 2px;
}


/* ============================================================
   🎮 28. PORTFOLIO MODE — ENHANCED GAMER UI
   ============================================================ */

/* 28a. Portfolio Mode Container */
.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  animation: portfolioFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* 28b. Portfolio Header — Enhanced */
.portfolio-header {
  padding: 2.5rem 3rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  background: var(--profile-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--profile-glass-border);
  border-radius: 4px;
  box-shadow: var(--accent-glow), 0 8px 32px rgba(0,0,0,0.4);
}

.portfolio-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, var(--accent), transparent 70%);
  opacity: 0.03;
  animation: portfolioGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes portfolioGlow {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
}

.portfolio-header .portfolio-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 2px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px var(--accent)15;
}

.portfolio-header h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 60px var(--accent)20;
}

.portfolio-header h2 .gradient-text {
  background: linear-gradient(135deg, var(--accent), #58ebfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-header p {
  color: var(--profile-text-muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

/* 28c. Portfolio Actions — Enhanced */
.portfolio-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.portfolio-actions .btn-toggle-portfolio,
.portfolio-actions .btn-share,
.portfolio-actions .btn-copy,
.portfolio-actions .btn-switch {
  padding: 10px 24px;
  border: none;
  border-radius: 2px;
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.portfolio-actions .btn-toggle-portfolio {
  background: var(--accent);
  color: white;
  box-shadow: var(--accent-glow);
}

.portfolio-actions .btn-toggle-portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.portfolio-actions .btn-toggle-portfolio:hover::before {
  transform: translateX(100%);
}

.portfolio-actions .btn-toggle-portfolio:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px var(--accent)40;
}

.portfolio-actions .btn-toggle-portfolio:active {
  transform: scale(0.95);
}

.portfolio-actions .btn-share {
  background: linear-gradient(135deg, #58ebfe, var(--accent));
  color: white;
  box-shadow: 0 4px 20px rgba(88,235,254,0.2);
}

.portfolio-actions .btn-share:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(88,235,254,0.3);
}

.portfolio-actions .btn-copy {
  background: var(--profile-glass);
  border: 1px solid var(--profile-glass-border);
  color: rgba(255,255,255,0.6);
}

.portfolio-actions .btn-copy:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--accent-glow);
}

.portfolio-actions .btn-switch {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
}

.portfolio-actions .btn-switch:hover {
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--accent-dim);
}

/* 28d. Portfolio Artist Info — Enhanced */
.portfolio-artist-info {
  padding: 2rem 2.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  background: var(--profile-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--profile-glass-border);
  border-radius: 4px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.portfolio-artist-info:hover {
  border-color: var(--accent);
  box-shadow: var(--accent-glow), 0 8px 40px rgba(0,0,0,0.3);
}

.portfolio-artist-info .artist-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 40px var(--accent)25;
  border: 2px solid var(--accent);
}

.portfolio-artist-info .artist-details {
  flex: 1;
  min-width: 200px;
}

.portfolio-artist-info .artist-details h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}

.portfolio-artist-info .artist-details .username {
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.portfolio-artist-info .artist-details .bio-text {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 500px;
}

.portfolio-artist-info .artist-stats-compact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: 2px;
  border-left: 2px solid var(--accent);
}

.portfolio-artist-info .artist-stats-compact .stat-item {
  text-align: center;
}

.portfolio-artist-info .artist-stats-compact .stat-item .value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  display: block;
  line-height: 1.2;
}

.portfolio-artist-info .artist-stats-compact .stat-item .label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--profile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 28e. Portfolio Artwork Grid — Enhanced */
.portfolio-artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.portfolio-artwork-item {
  border-radius: 4px;
  overflow: hidden;
  background: var(--profile-glass);
  border: 1px solid var(--profile-glass-border);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.portfolio-artwork-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.portfolio-artwork-item:hover::before {
  opacity: 0.05;
}

.portfolio-artwork-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: var(--accent-glow), 0 12px 48px rgba(0,0,0,0.4);
}

.portfolio-artwork-item:active {
  transform: scale(0.97);
}

.portfolio-artwork-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-artwork-item:hover img {
  transform: scale(1.05);
}

.portfolio-artwork-item .info {
  padding: 0.8rem 1rem;
  background: var(--profile-glass);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--profile-glass-border);
  position: relative;
  z-index: 2;
}

.portfolio-artwork-item .info .title {
  font-family: var(--font-condensed);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-artwork-item .info .meta {
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.6rem;
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.portfolio-artwork-item .info .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 28f. Portfolio Artwork Item — HUD Corner Brackets */
.portfolio-artwork-item .corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
  pointer-events: none;
}
.portfolio-artwork-item .corner-bracket.tl {
  top: 4px;
  left: 4px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.portfolio-artwork-item .corner-bracket.tr {
  top: 4px;
  right: 4px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.portfolio-artwork-item .corner-bracket.bl {
  bottom: 4px;
  left: 4px;
  border-bottom: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.portfolio-artwork-item .corner-bracket.br {
  bottom: 4px;
  right: 4px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.portfolio-artwork-item:hover .corner-bracket {
  opacity: 0.4;
}

/* 28g. Portfolio Empty State */
.portfolio-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--profile-text-muted);
  background: var(--profile-glass);
  border: 1px solid var(--profile-glass-border);
  border-radius: 4px;
}

.portfolio-empty i {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.2;
  color: var(--accent);
}

.portfolio-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}

.portfolio-empty p {
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto;
}

/* 28h. Portfolio Loading */
.portfolio-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--profile-text-muted);
}

.portfolio-loading i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  animation: spin 1s linear infinite;
}

.portfolio-loading p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* 28i. Portfolio Mode — Hide Elements */
.portfolio-mode-active .tab:not([data-tab="about"]):not([data-tab="uploads"]):not([data-tab="portfolio"]) {
  display: none !important;
}

.portfolio-mode-active .sidebar-btn[data-action="message"],
.portfolio-mode-active .sidebar-btn[data-action="block"],
.portfolio-mode-active .sidebar-btn[data-action="settings"],
.portfolio-mode-active .sidebar-btn[data-action="cv"] {
  display: none !important;
}

.portfolio-mode-active #shadowBtn {
  display: none !important;
}

.portfolio-mode-active #editSocialBtn {
  display: none !important;
}

.portfolio-mode-active #editBadgeBtn {
  display: none !important;
}

/* 28j. Portfolio Badge in Hero */
.badge.portfolio {
  background: rgba(88, 235, 254, 0.08);
  border-color: #58ebfe;
  color: #58ebfe;
  animation: portfolioBadgePulse 2s ease-in-out infinite;
}

@keyframes portfolioBadgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(88,235,254,0.1); }
  50% { box-shadow: 0 0 40px rgba(88,235,254,0.3); }
}

/* 28k. Portfolio Stats in Hero */
.hero-stats .stat .stat-value.portfolio-mode-stat {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent)20;
}

/* 28l. Portfolio Mode — Corner Brackets Animation */
.portfolio-artwork-item .corner-bracket {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.portfolio-artwork-item:hover .corner-bracket.tl {
  transform: translate(-2px, -2px);
}
.portfolio-artwork-item:hover .corner-bracket.tr {
  transform: translate(2px, -2px);
}
.portfolio-artwork-item:hover .corner-bracket.bl {
  transform: translate(-2px, 2px);
}
.portfolio-artwork-item:hover .corner-bracket.br {
  transform: translate(2px, 2px);
}

/* 28m. Portfolio Mode — Glitch Effect on Hover */
.portfolio-artwork-item .glitch-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,0,234,0.02) 3px,
    rgba(255,0,234,0.02) 4px
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.portfolio-artwork-item:hover .glitch-overlay {
  opacity: 1;
  animation: glitchScan 0.15s steps(2) infinite;
}

@keyframes glitchScan {
  0% { transform: translateY(0); }
  50% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}


/* ============================================================
   📤 29. UPLOADS
   ============================================================ */
.uploads-section { position: relative; }

.floating-upload {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 2px;
  background: var(--accent);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,0,234,0.3);
  transition: all var(--transition);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-upload:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,0,234,0.4);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.section-header h3, .section-header h4 {
  font-family: var(--font-condensed);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-header h3 i, .section-header h4 i { color: var(--accent); }

.btn-new, .btn-view-all {
  padding: 0.2rem 1rem;
  border: none;
  border-radius: 2px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-new:hover, .btn-view-all:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.collections-section,
.gallery-section,
.liked-section,
.saved-section,
.tutorials-section,
.challenges-section,
.badges-section,
.blog-section,
.commission-section {
  background: var(--profile-glass);
  backdrop-filter: blur(16px);
  border-radius: 2px;
  padding: 1.5rem;
  border: 1px solid var(--profile-glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), var(--accent-glow);
  margin-bottom: 2rem;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.collection-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 2px;
  padding: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.collection-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.collection-card .thumb {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
}
.collection-card .name {
  font-family: var(--font-condensed);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
}
.collection-card .count {
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.6rem;
}


/* ============================================================
   🧱 30. MASONRY GRID
   ============================================================ */
.masonry-grid {
  column-count: 4;
  column-gap: 1rem;
  padding: 0.5rem 0;
}
.masonry-grid .item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.masonry-grid .item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.masonry-grid .item img { width: 100%; display: block; }
.masonry-grid .item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity var(--transition);
}
.masonry-grid .item:hover .overlay { opacity: 1; }
.masonry-grid .item .overlay .title {
  font-family: var(--font-condensed);
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}
.masonry-grid .item .overlay .meta {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.4);
  font-size: 0.55rem;
}


/* ============================================================
   🏆 31. CHALLENGES
   ============================================================ */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.challenge-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 2px;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition);
  cursor: pointer;
}
.challenge-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.challenge-card .icon { font-size: 1.3rem; flex-shrink: 0; }
.challenge-card .info { flex: 1; min-width: 0; }
.challenge-card .info .name {
  font-family: var(--font-condensed);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.challenge-card .info .type {
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.55rem;
}
.challenge-card .status {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  padding: 0.05rem 0.4rem;
  border-radius: 2px;
}
.challenge-card .status.active { background: rgba(16,185,129,0.08); color: #10b981; }
.challenge-card .status.completed { background: rgba(59,130,246,0.08); color: #3b82f6; }


/* ============================================================
   🏅 32. BADGES
   ============================================================ */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}
.badge-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 2px;
  padding: 0.6rem;
  text-align: center;
  transition: all var(--transition);
}
.badge-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.badge-item .icon { font-size: 1.8rem; display: block; margin-bottom: 0.1rem; }
.badge-item .name {
  font-family: var(--font-condensed);
  color: rgba(255,255,255,0.5);
  font-size: 0.55rem;
  word-break: break-word;
}
.badge-count {
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.7rem;
}


/* ============================================================
   📝 33. BLOG
   ============================================================ */
.blog-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.blog-collection-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 2px;
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.blog-collection-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.blog-collection-card .icon { font-size: 1.3rem; }
.blog-collection-card .name {
  font-family: var(--font-condensed);
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
}
.blog-collection-card .count {
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.55rem;
}

.blog-posts-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.blog-post-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 2px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition);
}
.blog-post-item:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(3px);
  border-color: var(--accent);
}
.blog-post-item .icon { font-size: 1.1rem; flex-shrink: 0; }
.blog-post-item .info { flex: 1; min-width: 0; }
.blog-post-item .info .title {
  font-family: var(--font-condensed);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-post-item .info .source {
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.55rem;
}


/* ============================================================
   💼 34. COMMISSION
   ============================================================ */
.commission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cv-upload { position: relative; }
.cv-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.cv-drop-zone {
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 2px;
  padding: 1rem;
  text-align: center;
  transition: all var(--transition);
}
.cv-drop-zone:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.cv-drop-zone i { font-size: 1.3rem; color: var(--profile-text-muted); }
.cv-drop-zone p { font-size: 0.75rem; color: var(--profile-text-muted); }
.cv-drop-zone .cv-types {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--profile-text-muted);
}

.cv-preview {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: 2px;
  margin-top: 0.5rem;
}
.cv-preview i { font-size: 1.2rem; color: #ef4444; }
.cv-preview span { flex: 1; color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.cv-remove { background: none; border: none; color: var(--profile-text-muted); cursor: pointer; }
.cv-remove:hover { color: #ef4444; }
.cv-download {
  padding: 0.2rem 0.6rem;
  border: none;
  border-radius: 2px;
  background: rgba(16,185,129,0.08);
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  cursor: pointer;
  transition: all var(--transition);
}
.cv-download:hover { background: rgba(16,185,129,0.15); }


/* ============================================================
   🪟 35. MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-overlay.active { display: flex; }

.modal-container {
  background: #0f0f1c;
  border-radius: 2px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid var(--profile-glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--accent-glow);
}
.badge-modal .modal-container { max-width: 700px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.modal-header h3 {
  font-family: var(--font-display);
  color: white;
  font-size: 1rem;
  letter-spacing: 1px;
}
.modal-header h3 i { color: var(--accent); }
.modal-close {
  background: none;
  border: none;
  color: var(--profile-text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-close:hover { color: white; transform: rotate(90deg); }

.modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.modal-footer .btn-outline {
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--profile-glass-border);
  background: transparent;
  color: rgba(255,255,255,0.4);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
}
.modal-footer .btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: white;
}
.modal-footer .btn-primary {
  padding: 0.4rem 1.2rem;
  border: none;
  border-radius: 2px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
}
.modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--accent-glow);
}


/* ============================================================
   📤 36. UPLOAD MODAL
   ============================================================ */
.upload-drop-zone {
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 2px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-drop-zone:hover,
.upload-drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upload-drop-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-placeholder i { font-size: 2rem; color: var(--profile-text-muted); }
.upload-placeholder p { color: var(--profile-text-muted); }
.upload-placeholder span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--profile-text-muted); }
.upload-placeholder small { font-family: var(--font-mono); font-size: 0.55rem; color: var(--profile-text-muted); display: block; margin-top: 0.2rem; }
.upload-preview { position: relative; width: 100%; }
.upload-preview img { width: 100%; max-height: 250px; object-fit: contain; border-radius: 2px; }
.remove-preview {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 2px;
  background: rgba(0,0,0,0.6);
  color: white;
  cursor: pointer;
  transition: all var(--transition);
}
.remove-preview:hover { background: rgba(239,68,68,0.8); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field.half { margin-bottom: 0; }
.required { color: #ef4444; }

.nsfw-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(239,68,68,0.02);
  border: 1px solid rgba(239,68,68,0.04);
  border-radius: 2px;
  margin: 0.75rem 0;
}
.nsfw-toggle span { color: var(--profile-text-muted); font-size: 0.8rem; }

.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  transition: all var(--transition);
}
.toggle .slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  transition: all var(--transition);
}
.toggle input:checked + .slider { background: var(--accent); }
.toggle input:checked + .slider::before { transform: translateX(16px); background: white; }

.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 2px;
  padding: 0.3rem;
}
.tags-input input {
  flex: 1;
  min-width: 80px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 0.2rem 0.4rem;
  outline: none;
  font-size: 0.8rem;
}
.tags-display { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.tags-display .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--accent-dim);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
}
.tags-display .tag .remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 0.5rem;
}
.tags-display .tag .remove:hover { color: #ef4444; }

.collection-artworks {
  max-height: 150px;
  overflow-y: auto;
  padding: 0.3rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 2px;
}
.collection-artworks .artwork-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  transition: all var(--transition);
}
.collection-artworks .artwork-option:hover { background: rgba(255,255,255,0.02); }
.collection-artworks .artwork-option img { width: 28px; height: 28px; border-radius: 2px; object-fit: cover; }
.collection-artworks .artwork-option span { font-size: 0.75rem; color: var(--profile-text-muted); }
.collection-artworks .artwork-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
}

.specialties-grid,
.medium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.3rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 2px;
}
.specialties-grid .group,
.medium-grid .group {
  padding: 0.3rem 0.5rem;
}
.specialties-grid .group h4,
.medium-grid .group h4 {
  font-family: var(--font-condensed);
  color: var(--profile-text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.specialties-grid .group label,
.medium-grid .group label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--profile-text-muted);
  cursor: pointer;
}
.specialties-grid .group label input,
.medium-grid .group label input { accent-color: var(--accent); }


/* ============================================================
   📭 37. EMPTY & LOADING STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--profile-text-muted);
}
.empty-state i { font-size: 2rem; display: block; margin-bottom: 0.5rem; opacity: 0.3; }
.empty-state p { font-size: 0.85rem; }

.loading-spinner {
  text-align: center;
  padding: 1rem;
  font-family: var(--font-mono);
  color: var(--profile-text-muted);
  font-size: 0.65rem;
}
.loading-spinner i { margin-right: 0.5rem; }

.scroll-trigger { height: 1px; }


/* ============================================================
   📱 38. PORTFOLIO MODE — RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .portfolio-header {
    padding: 1.5rem 1.5rem;
  }
  .portfolio-header h2 {
    font-size: 1.8rem;
  }
  .portfolio-actions {
    flex-direction: column;
    align-items: center;
  }
  .portfolio-actions .btn-toggle-portfolio,
  .portfolio-actions .btn-share,
  .portfolio-actions .btn-copy,
  .portfolio-actions .btn-switch {
    width: 100%;
    justify-content: center;
  }
  .portfolio-artist-info {
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .portfolio-artist-info .artist-stats-compact {
    width: 100%;
    justify-content: center;
    border-left: none;
    border-top: 2px solid var(--accent);
    padding-top: 1rem;
  }
  .portfolio-artwork-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .portfolio-header h2 {
    font-size: 1.4rem;
  }
  .portfolio-artwork-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .portfolio-artist-info .artist-stats-compact {
    gap: 1rem;
  }
  .portfolio-artist-info .artist-stats-compact .stat-item .value {
    font-size: 1rem;
  }
}


/* ============================================================
   📱 39. RESPONSIVE (Main)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { padding: 0 40px; }
  .hero-name { font-size: 3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .commission-grid { grid-template-columns: 1fr; }
  .masonry-grid { column-count: 3; }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 20px; align-items: center; text-align: center; }
  .hero-name { font-size: 2.4rem; }
  .hero-badges { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .hero-stats .stat { border-right: none; }
  .hero-bio { max-width: 100%; text-align: center; }
  .artist-badge { max-width: 100%; }
  .hero-social { justify-content: center; }
  .hero-shadow-btn { align-self: center; }
  .hero-sidebar { flex-direction: row; right: 50%; top: auto; bottom: 80px; transform: translateX(50%); gap: 6px; }
  .sidebar-btn { width: 34px; height: 34px; font-size: 0.85rem; }
  .theme-toggle-btn { bottom: 120px; right: 16px; width: 34px; height: 34px; font-size: 0.85rem; }
  .palette-picker { bottom: 170px; right: 16px; }
  .palette-toggle { width: 34px; height: 34px; font-size: 0.85rem; }
  .palette-swatch { width: 24px; height: 24px; }
  .profile-sections { padding: 1rem; margin-top: 80vh; }
  .profile-tabs { gap: 0.3rem; padding: 0.3rem 0.5rem; }
  .tab { padding: 0.3rem 0.7rem; font-size: 0.6rem; }
  .tab span { display: none; }
  .masonry-grid { column-count: 2; }
  .field-row { grid-template-columns: 1fr; }
  .specialties-grid,
  .medium-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 1.8rem; }
  .hero-stats .stat-value { font-size: 1.2rem; }
  .profile-sections { margin-top: 70vh; padding: 0.5rem; }
  .masonry-grid { column-count: 1; }
  .portfolio-artwork-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .collections-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .challenges-grid { grid-template-columns: 1fr; }
  .badges-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}


/* ============================================================
   🌞 40. LIGHT THEME
   ============================================================ */
body.light-theme {
  --profile-bg: #f5f0e8;
  --profile-glass: rgba(255, 255, 255, 0.65);
  --profile-glass-border: rgba(173, 3, 252, 0.12);
  --profile-text: #827596;
  --profile-text-muted: rgba(26, 16, 42, 0.4);
}

body.light-theme .hero-layer-1 .layer-default-bg {
  background: radial-gradient(ellipse at 30% 40%, #e8dce8, #f5f0e8 80%);
}

body.light-theme .hero-name,
body.light-theme .hero-name h1,
body.light-theme .hero-name .artist-name {
  color: #c6c4e0 !important;
  text-shadow: 0 8px 60px rgba(255, 255, 255, 0.8), 0 2px 10px rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .hero-username {
  color: rgba(26, 16, 42, 0.5);
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.6) !important;
}

body.light-theme .stat-value {
  color: #1a102a;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8) !important;
}

body.light-theme .stat-label {
  color: rgba(26, 16, 42, 0.4);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.6) !important;
}

body.light-theme .badge {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  color: rgba(26, 16, 42, 0.6);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .badge.artist {
  background: rgba(255, 0, 234, 0.06);
  border-color: rgba(255, 0, 234, 0.1);
  color: #ff00ea;
}

body.light-theme .badge.verified {
  background: rgba(79, 243, 166, 0.06);
  border-color: rgba(79, 243, 166, 0.1);
  color: #10b981;
}

body.light-theme .badge.moderator {
  background: rgba(88, 235, 254, 0.06);
  border-color: rgba(88, 235, 254, 0.1);
  color: #0891b2;
}

body.light-theme .badge.portfolio {
  background: rgba(255, 199, 46, 0.06);
  border-color: rgba(255, 199, 46, 0.1);
  color: #d97706;
}

body.light-theme .hero-bio {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

body.light-theme .bio-text {
  color: rgba(48, 35, 68, 0.886);
}

body.light-theme .bio-toggle {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .bio-toggle:hover {
  color: var(--accent);
}

body.light-theme .artist-badge {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

body.light-theme .badge-header h3 {
  color: rgba(26, 16, 42, 0.4);
}

body.light-theme .badge-value {
  color: #1a102a;
  background: rgba(255, 0, 234, 0.04);
}

body.light-theme .badge-tags .tag {
  color: rgba(26, 16, 42, 0.4);
  border-color: rgba(173, 3, 252, 0.04);
}

body.light-theme .badge-tags .tag.primary {
  background: rgba(255, 0, 234, 0.04);
  border-color: var(--accent);
  color: rgba(26, 16, 42, 0.6);
}

body.light-theme .hero-shadow-btn {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  color: rgba(26, 16, 42, 0.6);
}

body.light-theme .hero-shadow-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #1a102a;
}

body.light-theme .sidebar-btn {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  color: rgba(26, 16, 42, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light-theme .sidebar-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #1a102a;
}

body.light-theme .theme-toggle-btn,
body.light-theme .palette-toggle {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  color: rgba(26, 16, 42, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

body.light-theme .theme-toggle-btn:hover,
body.light-theme .palette-toggle:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #1a102a;
}

body.light-theme .palette-grid {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(173, 3, 252, 0.08);
}

body.light-theme .profile-tabs {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), var(--accent-glow);
}

body.light-theme .tab {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .tab:hover {
  color: rgba(26, 16, 42, 0.6);
}

body.light-theme .tab.active {
  color: #1a102a;
  background: var(--accent-dim);
}

body.light-theme .tab i {
  color: rgba(26, 16, 42, 0.15);
}

body.light-theme .tab.active i {
  color: var(--accent);
}

body.light-theme .glass-panel,
body.light-theme .about-card,
body.light-theme .collections-section,
body.light-theme .gallery-section,
body.light-theme .liked-section,
body.light-theme .saved-section,
body.light-theme .tutorials-section,
body.light-theme .challenges-section,
body.light-theme .badges-section,
body.light-theme .blog-section,
body.light-theme .commission-section {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), var(--accent-glow);
}

body.light-theme .about-card h3,
body.light-theme .section-header h3,
body.light-theme .section-header h4 {
  color: rgba(63, 48, 85, 0.815);
}

body.light-theme .field label {
  color: rgba(26, 16, 42, 0.4);
}

body.light-theme .field input,
body.light-theme .field textarea,
body.light-theme .field select {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(173, 3, 252, 0.06);
  color: #6e5e89;
}

body.light-theme .field input::placeholder,
body.light-theme .field textarea::placeholder {
  color: rgba(26, 16, 42, 0.2);
}

body.light-theme .field input:focus,
body.light-theme .field textarea:focus {
  background: rgba(255, 255, 255, 0.4);
}

body.light-theme .btn-save {
  color: white;
}

body.light-theme .collection-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(173, 3, 252, 0.04);
}

body.light-theme .collection-card .name {
  color: rgba(26, 16, 42, 0.7);
}

body.light-theme .collection-card .count {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .masonry-grid .item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(173, 3, 252, 0.04);
}

body.light-theme .masonry-grid .item .overlay .title {
  color: white;
}

body.light-theme .masonry-grid .item .overlay .meta {
  color: rgba(255, 255, 255, 0.4);
}

body.light-theme .challenge-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(173, 3, 252, 0.04);
}

body.light-theme .challenge-card .info .name {
  color: rgba(26, 16, 42, 0.7);
}

body.light-theme .challenge-card .info .type {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .badge-item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(173, 3, 252, 0.04);
}

body.light-theme .badge-item .name {
  color: rgba(26, 16, 42, 0.5);
}

body.light-theme .blog-collection-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(173, 3, 252, 0.04);
}

body.light-theme .blog-collection-card .name {
  color: rgba(26, 16, 42, 0.6);
}

body.light-theme .blog-post-item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(173, 3, 252, 0.03);
}

body.light-theme .blog-post-item .info .title {
  color: rgba(26, 16, 42, 0.7);
}

body.light-theme .blog-post-item .info .source {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .modal-container {
  background: #f5f0e8;
  border-color: rgba(173, 3, 252, 0.08);
}

body.light-theme .modal-header h3 {
  color: #1a102a;
}

body.light-theme .modal-close {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .modal-close:hover {
  color: #1a102a;
}

body.light-theme .modal-footer .btn-outline {
  border-color: rgba(173, 3, 252, 0.08);
  color: rgba(26, 16, 42, 0.4);
}

body.light-theme .modal-footer .btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #1a102a;
}

body.light-theme .upload-drop-zone {
  border-color: rgba(173, 3, 252, 0.06);
}

body.light-theme .upload-drop-zone:hover {
  background: var(--accent-dim);
}

body.light-theme .upload-placeholder i {
  color: rgba(26, 16, 42, 0.15);
}

body.light-theme .upload-placeholder p {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .upload-placeholder span {
  color: rgba(26, 16, 42, 0.2);
}

body.light-theme .upload-placeholder small {
  color: rgba(26, 16, 42, 0.15);
}

body.light-theme .tags-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(173, 3, 252, 0.04);
}

body.light-theme .tags-input input {
  color: #1a102a;
}

body.light-theme .tags-display .tag {
  background: var(--accent-dim);
  color: var(--accent);
}

body.light-theme .collection-artworks {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(173, 3, 252, 0.04);
}

body.light-theme .collection-artworks .artwork-option span {
  color: rgba(26, 16, 42, 0.5);
}

body.light-theme .specialties-grid .group h4,
body.light-theme .medium-grid .group h4 {
  color: rgba(26, 16, 42, 0.4);
}

body.light-theme .specialties-grid .group label,
body.light-theme .medium-grid .group label {
  color: rgba(26, 16, 42, 0.5);
}

body.light-theme .social-icons a {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(173, 3, 252, 0.04);
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .social-icons a:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #1a102a;
}

body.light-theme .btn-edit-social {
  background: var(--accent-dim);
  border-color: rgba(173, 3, 252, 0.04);
  color: rgba(26, 16, 42, 0.35);
}

body.light-theme .btn-edit-social:hover {
  color: #1a102a;
}

body.light-theme .btn-new,
body.light-theme .btn-view-all {
  background: var(--accent-dim);
  color: var(--accent);
}

body.light-theme .floating-upload {
  color: white;
}

body.light-theme .layer-controls .layer-toggle,
body.light-theme .layer-option {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .layer-option:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #1a102a;
}

body.light-theme .layer-remove {
  color: rgba(26, 16, 42, 0.15);
}

body.light-theme .layer-remove:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

body.light-theme .portfolio-header {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
}

body.light-theme .portfolio-header h2 {
  color: #1a102a;
}

body.light-theme .portfolio-header p {
  color: rgba(26, 16, 42, 0.4);
}

body.light-theme .btn-copy {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(173, 3, 252, 0.08);
  color: rgba(26, 16, 42, 0.6);
}

body.light-theme .btn-copy:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #1a102a;
}

body.light-theme .btn-switch {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .btn-switch:hover {
  color: #1a102a;
  border-color: var(--accent);
}

body.light-theme .cv-drop-zone {
  border-color: rgba(173, 3, 252, 0.06);
}

body.light-theme .cv-drop-zone:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

body.light-theme .cv-drop-zone i {
  color: rgba(26, 16, 42, 0.15);
}

body.light-theme .cv-drop-zone p {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .cv-preview {
  background: rgba(255, 255, 255, 0.1);
}

body.light-theme .cv-preview span {
  color: rgba(26, 16, 42, 0.7);
}

body.light-theme .empty-state {
  color: rgba(26, 16, 42, 0.2);
}

body.light-theme .loading-spinner {
  color: rgba(26, 16, 42, 0.2);
}

body.light-theme .portfolio-artist-info {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(173, 3, 252, 0.08);
}

body.light-theme .portfolio-artist-info h3 {
  color: #1a102a;
}

body.light-theme .portfolio-artwork-item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(173, 3, 252, 0.04);
}

body.light-theme .portfolio-artwork-item .info .title {
  color: #1a102a;
}

body.light-theme .portfolio-artwork-item .info .meta {
  color: rgba(26, 16, 42, 0.3);
}

body.light-theme .portfolio-loading {
  color: rgba(26, 16, 42, 0.2);
}
