/* Custom CSS System for guns.lol Style Bio Page */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #e11d48;
  --secondary-color: #0f172a;
  --bg-color: #08090c;
  --card-bg-rgb: 13, 15, 23;
  --card-opacity: 0.9;
  --card-bg: rgba(var(--card-bg-rgb), var(--card-opacity));
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-color: #e11d48; /* Crimson by default, dynamic in JS */
  --accent-glow: rgba(225, 29, 72, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Cosmetic Settings */
  --card-blur: 16px;
  --card-border-width: 1px;
  --card-border-radius: 24px;
  --card-max-width: 480px;
  --bg-blur: 0px;
  --bg-brightness: 100%;
  
  /* Cursor variables */
  --cursor-x: 0px;
  --cursor-y: 0px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.custom-cursor-active * {
  cursor: none !important; /* Hide browser default cursor only when JS is active */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(8, 9, 12, 0.5);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Canvas background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: blur(var(--bg-blur)) brightness(var(--bg-brightness));
  transition: filter 0.3s ease;
}

/* Cursor Followers */
#custom-cursor {
  display: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.08s ease-out, border-color 0.3s;
  box-shadow: 0 0 10px var(--accent-glow);
}

#custom-cursor-dot {
  display: none;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
  transition: width 0.2s, height 0.2s, background-color 0.3s;
}

body.custom-cursor-active #custom-cursor,
body.custom-cursor-active #custom-cursor-dot {
  display: block;
}

/* Native custom cursor mode (e.g. for .cur files) */
body.custom-cursor-native {
  cursor: var(--native-cursor-url), auto;
}

/* Ensure links, buttons, and interactive elements show the custom cursor too */
body.custom-cursor-native a,
body.custom-cursor-native button,
body.custom-cursor-native .social-btn,
body.custom-cursor-native .menu-item,
body.custom-cursor-native .playlist-card,
body.custom-cursor-native .player-nav-btn,
body.custom-cursor-native .progress-container,
body.custom-cursor-native .checkbox-container {
  cursor: var(--native-cursor-url), pointer !important;
}

/* Hide custom cursor when dashboard or login is open */
body.dashboard-open #custom-cursor,
body.dashboard-open #custom-cursor-dot,
body.login-open #custom-cursor,
body.login-open #custom-cursor-dot {
  display: none !important;
}

body.dashboard-open,
body.dashboard-open *,
body.login-open,
body.login-open * {
  cursor: auto !important;
}

/* Cursor hover states */
body.link-hover #custom-cursor {
  width: 42px;
  height: 42px;
  background-color: rgba(225, 29, 72, 0.05);
  border-width: 2px;
}

body.link-hover #custom-cursor-dot {
  width: 10px;
  height: 10px;
}

/* Enter Screen Overlay */
#enter-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050608;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  user-select: none;
}

#enter-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.enter-content {
  text-align: center;
}

.enter-click {
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  animation: pulseGlow 2.5s infinite ease-in-out;
  transition: color 0.3s;
  font-weight: 600;
}

.enter-click:hover {
  color: var(--accent-color);
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 12px var(--accent-glow);
    color: #fff;
  }
}

/* Main Container Blur Transition */
#main-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  z-index: 1;
  transition: filter 1s ease;
}

#main-container.blurred {
  filter: blur(20px);
}

/* Profile Card */
#profile-card {
  width: 100%;
  max-width: var(--card-max-width, 480px);
  background: var(--card-bg);
  border: var(--card-border-width) solid var(--card-border);
  border-radius: var(--card-border-radius);
  padding: 32px 28px;
  backdrop-filter: blur(var(--card-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(120%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
              inset 0 0 20px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
              0 0 30px rgba(var(--accent-color), 0.05),
              inset 0 0 20px rgba(255, 255, 255, 0.03);
}

/* Profile Header elements */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 4px;
}

#profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-border);
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-color);
  filter: blur(12px);
  opacity: 0.45;
  z-index: 1;
  transition: transform 0.5s, opacity 0.5s, background-color 0.3s;
}

.avatar-container:hover #profile-avatar {
  transform: scale(1.08) rotate(4deg);
  border-color: var(--accent-color);
}

.avatar-container:hover .avatar-glow {
  transform: scale(1.15);
  opacity: 0.7;
}

.name-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#profile-name {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: usernameGlow 4s infinite ease-in-out;
  padding-bottom: 2px;
  position: relative;
  display: inline-block;
}

@keyframes usernameGlow {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
  50% {
    filter: drop-shadow(0 0 8px var(--accent-glow));
  }
}

#profile-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  max-width: 90%;
}

/* Badges styling */
.badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.badge-icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.badge-verified {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border-color: rgba(234, 179, 8, 0.3);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.15);
}

.badge-developer {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
}

.badge-premium {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.15);
}

.badge-staff {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.15);
}

.badge-supporter {
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.15);
}

.badge-booster {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.15);
}

/* Music Player Styling */
.music-player {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s;
}

.music-player:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.player-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-volume-icon {
  width: 20px;
  height: 20px;
  fill: var(--accent-color);
  flex-shrink: 0;
  opacity: 0.8;
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

#music-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#music-artist {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.player-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-time {
  font-size: 0.68rem;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-muted);
  min-width: 34px;
  text-align: center;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.player-nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  padding: 0;
}

.player-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.player-nav-btn:hover {
  color: var(--accent-color);
  transform: scale(1.15);
}

#play-pause-btn {
  background: var(--accent-color);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 0 12px var(--accent-glow);
}

#play-pause-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.1);
  box-shadow: 0 0 18px var(--accent-glow);
}

#play-pause-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.progress-container {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  border-radius: 10px;
  box-shadow: 0 0 6px var(--accent-color);
  transition: width 0.1s linear, background-color 0.3s;
}

.hidden {
  display: none !important;
}

/* Social Links Grid */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.social-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 12px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible;
}

.social-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
  z-index: 2;
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.15);
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

/* Discord Custom Widget Styling */
.discord-card {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.3s;
}

.discord-card:hover {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.4);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.15);
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-logo svg {
  width: 28px;
  height: 28px;
  color: #5865F2;
}

.discord-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#discord-guild-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.discord-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #23a55a;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #23a55a;
}

#discord-online-count {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.discord-join-btn {
  background: #5865F2;
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-title);
  text-align: center;
}

.discord-join-btn:hover {
  background: #4752c4;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
  transform: scale(1.04);
}

/* Card Footer Stats */
.card-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 18px;
  margin-top: 4px;
}

.footer-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-title);
}



/* Isolation for admin components from profile custom style tokens */
#admin-dashboard, #login-screen {
  --primary-color: #e11d48;
  --secondary-color: #0f172a;
  --bg-color: #08090c;
  --accent-color: #e11d48;
  --accent-glow: rgba(225, 29, 72, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --card-border: rgba(255, 255, 255, 0.08);
  font-family: var(--font-body);
}

/* Login Screen Overlay */
#login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(13, 15, 23, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 
              0 0 40px rgba(225, 29, 72, 0.05);
  text-align: center;
  backdrop-filter: blur(16px);
}

.login-logo-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.login-logo {
  width: 150px;
  height: auto;
}

.login-card h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #fff 40%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input-field {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 8px;
  margin-bottom: 20px;
}

.input-field label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.input-field input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all 0.25s;
}

.input-field input:focus {
  border-color: var(--accent-color);
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px var(--accent-glow);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 28px;
}

.forgot-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--accent-color);
}

.login-submit-btn {
  width: 100%;
  font-family: var(--font-title);
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 20px var(--accent-glow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.login-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 24px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.login-back-btn:hover {
  color: var(--text-primary);
}

.error-msg {
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 14px;
  font-weight: 500;
}

/* Full Screen Admin Dashboard */
#admin-dashboard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 7, 10, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  color: var(--text-primary);
}

.dashboard-sidebar {
  width: 260px;
  background: rgba(9, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.brand-text {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.sidebar-menu {
  flex-grow: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

.menu-item svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.menu-item:hover svg {
  transform: scale(1.1);
}

.menu-item.active {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  color: var(--accent-color);
}

.sidebar-footer {
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.logout-btn {
  width: auto;
  max-width: 160px;
  margin: 0 auto;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn svg {
  width: 14px;
  height: 14px;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

/* Dashboard Main Window */
.dashboard-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: rgba(7, 8, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dashboard-header {
  padding: 24px 36px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: rgba(9, 10, 16, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dashboard-header h1 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.dashboard-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 36px;
}

/* Home Tab Styles */
.welcome-box {
  background: linear-gradient(135deg, rgba(13, 15, 23, 0.8) 0%, rgba(225, 29, 72, 0.04) 100%);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.welcome-box h2 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.welcome-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: rgba(13, 15, 23, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-num {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.quick-info-box {
  background: rgba(13, 15, 23, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-info-box h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.quick-info-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Edit Settings Forms Layout */
.settings-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 992px) {
  .settings-grid-layout {
    grid-template-columns: 1fr;
  }
}

.settings-group {
  background: rgba(13, 15, 23, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(8px);
}

.settings-group h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.settings-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.settings-group input[type="text"],
.settings-group input[type="password"],
.settings-group select,
.settings-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all 0.2s;
}

.settings-group select option {
  background-color: #0d0f17;
  color: #f8fafc;
}

.settings-group textarea {
  min-height: 100px;
  resize: vertical;
}

.settings-group input[type="text"]:focus,
.settings-group input[type="password"]:focus,
.settings-group select:focus,
.settings-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

.settings-group .description-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Color Picker Dashboard Grid */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.color-picker-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-picker-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 6px 12px;
  gap: 10px;
  height: 42px;
}

.color-picker-input-wrapper input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.color-picker-input-wrapper input[type="color"]::-webkit-color-swatch {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.color-picker-input-wrapper input[type="color"]::-moz-color-swatch {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hex-lbl {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Slider Controls */
.slider-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-labels label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.slider-labels span {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(225, 29, 72, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.slider-item input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.slider-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: transform 0.1s;
}

.slider-item input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.slider-item input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
  border: none;
  transition: transform 0.1s;
}

.slider-item input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.25);
}

/* Custom Scrollbars in Dashboard */
.dashboard-body::-webkit-scrollbar {
  width: 6px;
}

.dashboard-body::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-body::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 10px;
}

.dashboard-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Checkboxes style for Badges */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}

.checkbox-container:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.checkbox-container input[type="checkbox"] {
  accent-color: var(--accent-color);
  width: 14px;
  height: 14px;
}

.checkbox-label {
  font-size: 0.75rem !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}

/* Action buttons */
.action-btn {
  font-family: var(--font-title);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-btn.primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.action-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px var(--accent-glow);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Responsive Dashboard Styles */
@media (max-width: 768px) {
  #admin-dashboard {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }
  
  .sidebar-brand {
    padding: 16px;
    align-items: center;
  }
  
  .sidebar-menu {
    flex-direction: row;
    padding: 8px 16px;
    overflow-x: auto;
    gap: 12px;
    justify-content: space-around;
  }
  
  .menu-item {
    padding: 8px 12px;
  }
  
  .menu-item span {
    display: none; /* Hide text on mobile nav, only icons */
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .dashboard-header {
    padding: 16px 20px;
  }
  
  .dashboard-header h1 {
    font-size: 1.15rem;
  }
  
  .dashboard-body {
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Hide custom cursor on mobile/touch screens and restore native cursor style */
@media (pointer: coarse), (hover: none) {
  #custom-cursor, #custom-cursor-dot {
    display: none !important;
  }
  * {
    cursor: auto !important;
  }
}

/* Custom Cursor Image Mode */
#custom-cursor.image-mode {
  border: none !important;
  box-shadow: none !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Profile Card Banner Header */
.profile-banner {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-bottom: 1px solid var(--card-border);
}

#profile-card.has-banner {
  padding-top: 140px;
}

/* Media Upload Styling Grid */
.upload-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(13, 15, 23, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.upload-title {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.upload-preview-card {
  height: 120px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.25s;
}

.upload-preview-card:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 15px rgba(var(--accent-color), 0.03);
}

.upload-preview-card.uploading {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.02);
  cursor: wait;
}

.upload-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-align: center;
  padding: 10px;
  z-index: 2;
}

.upload-preview-card:hover .upload-card-content {
  color: var(--text-primary);
}

.upload-card-icon {
  width: 28px;
  height: 28px;
}

.upload-card-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.upload-img-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.upload-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-top: 4px;
}

.upload-status {
  color: var(--text-muted);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Full Width Media Upload row */
.upload-row-full {
  background: rgba(13, 15, 23, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
  width: 100%;
  backdrop-filter: blur(8px);
}

@media (max-width: 992px) {
  .upload-row-full {
    grid-column: span 1;
  }
}

.songs-upload-container {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.song-card {
  width: 150px;
  height: 85px;
  flex-shrink: 0;
}

.song-info-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  overflow: hidden;
}

/* Playlist Grid in Dashboard */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.playlist-card {
  position: relative;
  height: 110px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: default;
}

.playlist-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.playlist-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  z-index: 1;
}

.playlist-card-icon {
  width: 24px;
  height: 24px;
  fill: var(--text-secondary);
}

.playlist-card-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}

.playlist-card-delete {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 9, 14, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.25s;
  cursor: pointer;
  z-index: 2;
  border-radius: 11px;
}

.playlist-card:hover .playlist-card-delete {
  opacity: 1;
}

.playlist-card-delete svg {
  width: 20px;
  height: 20px;
  fill: #ef4444;
}

.playlist-card-delete span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.playlist-card-add {
  border-style: dashed;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.25s;
}

.playlist-card-add:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.02);
}

.playlist-card-add .playlist-card-icon {
  fill: var(--text-muted);
}

.playlist-card-add-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* Premium Switch Toggle CSS */
.switch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.switch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.switch-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.switch-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-label svg {
  color: var(--accent-color);
  opacity: 0.85;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 4px;
  background-color: #ffffff;
  transition: .3s;
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* 1. Toggle Glow */
body.no-glow * {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
body.no-glow .avatar-glow {
  display: none !important;
}

/* 2. Toggle Rounded Socials (Square mode) */
body.socials-square .social-btn {
  border-radius: 12px !important;
}

/* 3. Toggle Animations (Off mode) */
body.no-animations *,
body.no-animations *::before,
body.no-animations *::after {
  animation: none !important;
  transition: none !important;
}

/* 4. Username Sparkle Effect */
@keyframes sparkleShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.sparkle-text {
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-color) 25%, #ffffff 50%, var(--accent-color) 75%, var(--text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sparkleShimmer 3.5s linear infinite !important;
}

/* 5. Avatar Decoration Ring */
.avatar-deco-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color), #3b82f6, var(--accent-color));
  background-size: 400% 400%;
  z-index: -1;
  animation: decoRotate 5s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 15px var(--accent-glow);
}

body.avatar-deco-active .avatar-deco-ring {
  opacity: 1;
}

@keyframes decoRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 6. Theme Colored Icons */
body.theme-icons-active .social-btn {
  color: var(--icon-color) !important;
  border-color: rgba(225, 29, 72, 0.15);
}

body.theme-icons-active .social-btn:hover {
  border-color: var(--accent-color) !important;
}

/* Typing Cursor blink effect */
.typing-cursor {
  color: var(--accent-color);
  font-weight: bold;
  margin-left: 2px;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { color: transparent }
  50% { color: var(--accent-color); }
}

/* ==========================================================================
   DASHBOARD DYNAMIC ELEMENTS (Socials, Custom Links & Media Embeds)
   ========================================================================== */

/* Collapsible Settings Panels */
.collapsible-group {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.collapsible-header:hover {
  color: var(--accent-color);
}

.collapsible-header-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 0;
}

.collapsible-header:hover .collapsible-header-title {
  color: var(--text-primary);
}

.collapsible-header .chevron-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 1500px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, margin 0.3s;
}

/* Collapsed state */
.collapsible-group.collapsed .collapsible-header {
  border-bottom-color: transparent;
  margin-bottom: 0;
}

.collapsible-group.collapsed .collapsible-content {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  margin-top: 0;
}

.collapsible-group.collapsed .chevron-icon {
  transform: rotate(-90deg);
}

/* Form Row Grid Utility */
.form-row {
  display: flex;
  gap: 14px;
  width: 100%;
}

.form-row .input-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row .input-field.half-width {
  flex: 1 1 50%;
}

.form-row .input-field.third-width {
  flex: 1 1 33.33%;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
}

.action-buttons-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.action-btn.small {
  padding: 8px 16px;
  font-size: 0.8rem;
  height: 34px;
}

.active-list-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 4px;
  margin-top: 10px;
}

/* Draggable Active Dashboard Lists */
.active-socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 5px;
}

.active-links-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 5px;
}

/* Draggable Items Cards styling */
.dashboard-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: grab;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

.dashboard-item-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.dashboard-item-card:active {
  cursor: grabbing;
}

/* Dragging indicators */
.dashboard-item-card.dragging {
  opacity: 0.3;
  border-style: dashed;
  border-color: var(--accent-color);
  background: rgba(225, 29, 72, 0.03);
}

.card-drag-indicator {
  color: var(--text-secondary);
  opacity: 0.4;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.card-drag-indicator svg {
  width: 16px;
  height: 16px;
}

.dashboard-item-card:hover .card-drag-indicator {
  opacity: 0.7;
  color: var(--accent-color);
}

/* Card Icons */
.card-icon-preview {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.card-icon-preview svg {
  width: 16px;
  height: 16px;
}

.card-info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.card-info-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-delete-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  opacity: 0.5;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.card-delete-btn:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  opacity: 1;
}

.card-delete-btn svg {
  width: 14px;
  height: 14px;
}

/* Drag and Drop drop area indicator */
.drag-over-item {
  border-color: var(--accent-color) !important;
  background: rgba(225, 29, 72, 0.06) !important;
  transform: scale(1.01);
}


/* ==========================================================================
   PUBLIC PROFILE PAGE COMPONENT STYLES
   ========================================================================== */

/* Custom Links Component */
.custom-links-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 5px;
}

.custom-links-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.profile-custom-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.profile-custom-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transition: all 0.6s ease;
}

.profile-custom-link-card:hover::before {
  left: 100%;
}

.profile-custom-link-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.profile-custom-link-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.profile-custom-link-icon-wrapper {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.2s, color 0.2s;
}

.profile-custom-link-card:hover .profile-custom-link-icon-wrapper {
  transform: scale(1.1);
  color: var(--text-primary);
  background: var(--accent-color);
}

.profile-custom-link-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.profile-custom-link-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.profile-custom-link-title {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-custom-link-url {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

.profile-custom-link-arrow {
  color: var(--text-secondary);
  opacity: 0.5;
  display: flex;
  align-items: center;
  transition: all 0.25s;
  flex-shrink: 0;
}

.profile-custom-link-card:hover .profile-custom-link-arrow {
  opacity: 1;
  transform: translateX(3px);
  color: var(--accent-color);
}

.profile-custom-link-arrow svg {
  width: 16px;
  height: 16px;
}

/* Media Embeds Component */
.media-embeds-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 5px;
}

.media-embeds-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.profile-media-embed-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-media-embed-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.profile-media-embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.profile-media-embed-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.profile-media-embed-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-media-embed-header-icon {
  display: flex;
  align-items: center;
  color: var(--accent-color);
}

.profile-media-embed-header-icon svg {
  width: 18px;
  height: 18px;
}

.profile-media-embed-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-title);
  letter-spacing: 0.02em;
}

.profile-media-embed-chevron {
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.profile-media-embed-chevron svg {
  width: 14px;
  height: 14px;
}

.profile-media-embed-card.collapsed .profile-media-embed-chevron {
  transform: rotate(-90deg);
}

.profile-media-embed-content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  overflow: hidden;
  max-height: 400px;
  opacity: 1;
}

.profile-media-embed-card.collapsed .profile-media-embed-content {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.iframe-aspect-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.iframe-aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spotify-embed-wrapper {
  width: 100%;
  height: 80px;
  background: #000;
}

.spotify-embed-wrapper iframe {
  width: 100%;
  height: 80px;
  border: 0;
}

/* ==========================================
   USERNAME EFFECTS STYLING
   ========================================== */

/* Layout container inside dashboard group */
.username-effects-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: 15px;
}

@media (max-width: 900px) {
  .username-effects-layout {
    grid-template-columns: 1fr;
  }
}

/* 3x4 Selector Grid */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .effects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Grid Cards */
.effect-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 105px;
  user-select: none;
}

.effect-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.effect-card.active {
  background: rgba(147, 51, 234, 0.08);
  border: 2px solid #a855f7;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
}

.effect-card-icon {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 500;
  pointer-events: none;
}

.effect-card-name {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  pointer-events: none;
  text-align: center;
}

.effect-card.active .effect-card-name {
  color: #c084fc;
}

/* Canvas Sparkle Card Icon */
.effect-card-icon-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sparkle-card-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sparkle-card-emoji {
  position: relative;
  font-size: 1.4rem;
  z-index: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Preview Panel on the Right */
.effect-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
}

.effect-preview-card-wrap {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.effect-preview-card-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7f1d1d, #450a0a); /* Sleek red gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#username-preview-text {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  text-align: center;
}

.effect-preview-details {
  text-align: center;
  width: 100%;
}

.effect-preview-details h4 {
  font-size: 1.1rem;
  color: #f8fafc;
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.effect-preview-details p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================
   USERNAME TEXT EFFECTS (CSS RULES)
   ========================================== */

/* Target both #profile-name and #username-preview-text with specific ID specificity */

/* Default style overrides for effects */
#profile-name.effect-none {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-color) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: usernameGlow 4s infinite ease-in-out !important;
  text-shadow: none !important;
  filter: none !important;
}

#username-preview-text.effect-none {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  animation: none !important;
  filter: none !important;
}

/* Typing cursor style */
.typing-cursor {
  font-weight: 300;
  margin-left: 2px;
  animation: cursorBlink 0.8s step-end infinite;
  display: inline-block;
  -webkit-text-fill-color: var(--text-color, #ffffff) !important;
  text-shadow: none !important;
}

@keyframes cursorBlink {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}

/* Rainbow Effect */
.effect-rainbow,
#profile-name.effect-rainbow,
#username-preview-text.effect-rainbow {
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff) !important;
  background-size: 400% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: rainbowShift 6s linear infinite !important;
  text-shadow: none !important;
  filter: none !important;
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* Fuzzy Glitch Effect */
.effect-fuzzy,
#profile-name.effect-fuzzy,
#username-preview-text.effect-fuzzy {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8), -2px -1px 0 rgba(255, 0, 0, 0.7), 2px 1px 0 rgba(0, 0, 255, 0.7) !important;
  animation: fuzzyGlitch 0.15s steps(2) infinite !important;
  filter: none !important;
  display: inline-block !important; /* skew needs display inline-block */
}

@keyframes fuzzyGlitch {
  0% { transform: skew(1.5deg); filter: blur(0.2px); }
  50% { transform: skew(-1.5deg); filter: blur(0.5px); text-shadow: 0 0 4px rgba(255, 255, 255, 0.8), -2px 1px 0 rgba(255, 0, 0, 0.8), 2px -1px 0 rgba(0, 0, 255, 0.8) !important; }
  100% { transform: skew(0deg); filter: blur(0.1px); }
}

/* Typing and Shuffle overrides */
.effect-typing,
#profile-name.effect-typing,
#username-preview-text.effect-typing,
.effect-shuffle,
#profile-name.effect-shuffle,
#username-preview-text.effect-shuffle {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-color) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: usernameGlow 4s infinite ease-in-out !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Sparkle override (keeps standard text gradient but allows canvas particles) */
.effect-sparkle,
#profile-name.effect-sparkle,
#username-preview-text.effect-sparkle {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-color) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: usernameGlow 4s infinite ease-in-out !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Sparkle Canvas Element */
.username-sparkle-canvas {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Brand Colored Social Buttons */
body.brand-colors-active .social-btn[title="GITHUB"] {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
body.brand-colors-active .social-btn[title="GITHUB"]:hover {
  border-color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3) !important;
}

body.brand-colors-active .social-btn[title="STEAM"] {
  color: #00adef !important;
  border-color: rgba(0, 173, 239, 0.15) !important;
  background: rgba(23, 26, 33, 0.4) !important;
}
body.brand-colors-active .social-btn[title="STEAM"]:hover {
  border-color: #00adef !important;
  box-shadow: 0 0 15px rgba(0, 173, 239, 0.3) !important;
}

body.brand-colors-active .social-btn[title="INSTAGRAM"] {
  color: #e1306c !important;
  border-color: rgba(225, 48, 108, 0.15) !important;
  background: rgba(225, 48, 108, 0.08) !important;
}
body.brand-colors-active .social-btn[title="INSTAGRAM"]:hover {
  border-color: #e1306c !important;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.3) !important;
}

body.brand-colors-active .social-btn[title="TWITTER"] {
  color: #1da1f2 !important;
  border-color: rgba(29, 161, 242, 0.15) !important;
  background: rgba(29, 161, 242, 0.08) !important;
}
body.brand-colors-active .social-btn[title="TWITTER"]:hover {
  border-color: #1da1f2 !important;
  box-shadow: 0 0 15px rgba(29, 161, 242, 0.3) !important;
}

body.brand-colors-active .social-btn[title="X"] {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
body.brand-colors-active .social-btn[title="X"]:hover {
  border-color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3) !important;
}

body.brand-colors-active .social-btn[title="TWITCH"] {
  color: #9146ff !important;
  border-color: rgba(145, 70, 255, 0.15) !important;
  background: rgba(145, 70, 255, 0.08) !important;
}
body.brand-colors-active .social-btn[title="TWITCH"]:hover {
  border-color: #9146ff !important;
  box-shadow: 0 0 15px rgba(145, 70, 255, 0.3) !important;
}

body.brand-colors-active .social-btn[title="YOUTUBE"] {
  color: #ff0000 !important;
  border-color: rgba(255, 0, 0, 0.15) !important;
  background: rgba(255, 0, 0, 0.08) !important;
}
body.brand-colors-active .social-btn[title="YOUTUBE"]:hover {
  border-color: #ff0000 !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3) !important;
}

body.brand-colors-active .social-btn[title="TIKTOK"] {
  color: #00f2fe !important;
  border-color: rgba(0, 242, 254, 0.15) !important;
  background: rgba(1, 1, 1, 0.4) !important;
}
body.brand-colors-active .social-btn[title="TIKTOK"]:hover {
  border-color: #fe0979 !important;
  box-shadow: 0 0 15px rgba(254, 9, 121, 0.3) !important;
}

body.brand-colors-active .social-btn[title="DISCORD"] {
  color: #5865f2 !important;
  border-color: rgba(88, 101, 242, 0.15) !important;
  background: rgba(88, 101, 242, 0.08) !important;
}
body.brand-colors-active .social-btn[title="DISCORD"]:hover {
  border-color: #5865f2 !important;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.3) !important;
}

body.brand-colors-active .social-btn[title="SPOTIFY"] {
  color: #1db954 !important;
  border-color: rgba(29, 185, 84, 0.15) !important;
  background: rgba(29, 185, 84, 0.08) !important;
}
body.brand-colors-active .social-btn[title="SPOTIFY"]:hover {
  border-color: #1db954 !important;
  box-shadow: 0 0 15px rgba(29, 185, 84, 0.3) !important;
}

body.brand-colors-active .social-btn[title="SOUNDCLOUD"] {
  color: #ff5500 !important;
  border-color: rgba(255, 85, 0, 0.15) !important;
  background: rgba(255, 85, 0, 0.08) !important;
}
body.brand-colors-active .social-btn[title="SOUNDCLOUD"]:hover {
  border-color: #ff5500 !important;
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.3) !important;
}

body.brand-colors-active .social-btn[title="KICK"] {
  color: #53fc18 !important;
  border-color: rgba(83, 252, 24, 0.15) !important;
  background: rgba(83, 252, 24, 0.08) !important;
}
body.brand-colors-active .social-btn[title="KICK"]:hover {
  border-color: #53fc18 !important;
  box-shadow: 0 0 15px rgba(83, 252, 24, 0.3) !important;
}

body.brand-colors-active .social-btn[title="TELEGRAM"] {
  color: #0088cc !important;
  border-color: rgba(0, 136, 204, 0.15) !important;
  background: rgba(0, 136, 204, 0.08) !important;
}
body.brand-colors-active .social-btn[title="TELEGRAM"]:hover {
  border-color: #0088cc !important;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.3) !important;
}

body.brand-colors-active .social-btn[title="REDDIT"] {
  color: #ff4500 !important;
  border-color: rgba(255, 69, 0, 0.15) !important;
  background: rgba(255, 69, 0, 0.08) !important;
}
body.brand-colors-active .social-btn[title="REDDIT"]:hover {
  border-color: #ff4500 !important;
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.3) !important;
}

body.brand-colors-active .social-btn[title="THREADS"] {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
body.brand-colors-active .social-btn[title="THREADS"]:hover {
  border-color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3) !important;
}

body.brand-colors-active .social-btn[title="NAMEMC"] {
  color: #00adef !important;
  border-color: rgba(0, 173, 239, 0.15) !important;
  background: rgba(0, 173, 239, 0.08) !important;
}
body.brand-colors-active .social-btn[title="NAMEMC"]:hover {
  border-color: #00adef !important;
  box-shadow: 0 0 15px rgba(0, 173, 239, 0.3) !important;
}

body.brand-colors-active .social-btn[title="PERSONAL"] {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
body.brand-colors-active .social-btn[title="PERSONAL"]:hover {
  border-color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3) !important;
}

body.brand-colors-active .social-btn[title="SHOP"] {
  color: #facc15 !important;
  border-color: rgba(250, 204, 21, 0.15) !important;
  background: rgba(250, 204, 21, 0.08) !important;
}
body.brand-colors-active .social-btn[title="SHOP"]:hover {
  border-color: #facc15 !important;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.3) !important;
}



/* TikTok Custom Glitch Effect */
.tiktok-cyan, .tiktok-red { display: none; }
body.brand-colors-active .tiktok-cyan, 
body.brand-colors-active .tiktok-red { display: block; }



/* =========================================================
   CASCADING ENTRANCE ANIMATION (Guns.lol style)
   ========================================================= */
@keyframes cascadeSlideUp {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes headerPopBounce {
  0% { opacity: 0; transform: scale(0.6) translateY(80px); }
  50% { opacity: 1; transform: scale(1.08) translateY(-15px); }
  75% { transform: scale(0.96) translateY(5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Prepare elements to be hidden initially */
#main-container.blurred .profile-header,
#main-container.blurred .music-player,
#main-container.blurred .discord-card,
#main-container.blurred .social-btn,
#main-container.blurred .profile-custom-link-card,
#main-container.blurred .profile-media-embed-card {
  opacity: 0;
  pointer-events: none;
}

/* Apply staggered animation when enter screen is clicked */
#main-container:not(.blurred) .profile-header { animation: headerPopBounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.1s; opacity: 0; }
#main-container:not(.blurred) .music-player { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.20s; opacity: 0; }
#main-container:not(.blurred) .discord-card { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.25s; opacity: 0; }

#main-container:not(.blurred) .social-btn:nth-child(1) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.35s; opacity: 0; }
#main-container:not(.blurred) .social-btn:nth-child(2) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.40s; opacity: 0; }
#main-container:not(.blurred) .social-btn:nth-child(3) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.45s; opacity: 0; }
#main-container:not(.blurred) .social-btn:nth-child(4) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.50s; opacity: 0; }
#main-container:not(.blurred) .social-btn:nth-child(5) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.55s; opacity: 0; }
#main-container:not(.blurred) .social-btn:nth-child(6) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.60s; opacity: 0; }
#main-container:not(.blurred) .social-btn:nth-child(n+7) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.65s; opacity: 0; }

#main-container:not(.blurred) .profile-custom-link-card:nth-child(1) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.5s; opacity: 0; }
#main-container:not(.blurred) .profile-custom-link-card:nth-child(2) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s; opacity: 0; }
#main-container:not(.blurred) .profile-custom-link-card:nth-child(3) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.7s; opacity: 0; }
#main-container:not(.blurred) .profile-custom-link-card:nth-child(n+4) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.8s; opacity: 0; }

#main-container:not(.blurred) .profile-media-embed-card:nth-child(1) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.85s; opacity: 0; }
#main-container:not(.blurred) .profile-media-embed-card:nth-child(2) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.95s; opacity: 0; }
#main-container:not(.blurred) .profile-media-embed-card:nth-child(n+3) { animation: cascadeSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.05s; opacity: 0; }

/* Disable cascading animation after it has finished running once */
#main-container.cascade-finished .profile-header,
#main-container.cascade-finished .music-player,
#main-container.cascade-finished .discord-card,
#main-container.cascade-finished .social-btn,
#main-container.cascade-finished .profile-custom-link-card,
#main-container.cascade-finished .profile-media-embed-card {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}


