@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #040407;
  --card-bg: rgba(0, 0, 0, 0.28);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: #d1d5db;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  
  /* Discord Status Colors */
  --status-online: #22c55e;
  --status-idle: #eab308;
  --status-dnd: #ef4444;
  --status-offline: #6b7280;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Background Video */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: blur(8px) brightness(0.4);
  pointer-events: none;
}

/* Background Stars Canvas */
#bg-stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background: transparent;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Anchor top, prevents container height expansion from shifting right column vertically */
  overflow-x: hidden;
  position: relative;
  padding: 80px 0;
}

/* Background Animated Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  filter: blur(120px);
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  animation: float 25s infinite ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 80%);
  top: -15%;
  left: -10%;
  animation-duration: 28s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 80%);
  bottom: -20%;
  right: -10%;
  animation-duration: 32s;
  animation-delay: -6s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 80%);
  top: 40%;
  left: 35%;
  animation-duration: 22s;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.08);
  }
  66% {
    transform: translate(-20px, 40px) scale(0.96);
  }
}

/* Grid Layout wrapper */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 40px;
  z-index: 10;
}

.layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr 480px;
  gap: 40px;
  align-items: center; /* Center both columns vertically on Y-axis */
  min-height: calc(100vh - 160px);
}

/* Center Column (Minecraft Head Card) */
.center-column {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.center-head-card {
  position: relative;
  width: 520px;
  height: 520px;
  background: transparent;
  border: none;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatCard 6s infinite ease-in-out;
}


.head-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#center-head-canvas {
  width: 500px !important;
  height: 500px !important;
  outline: none;
  filter: drop-shadow(0 0 30px rgba(0, 191, 255, 0.18)) 
          drop-shadow(0 0 60px rgba(0, 191, 255, 0.05))
          drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.center-head-card.glow-active #center-head-canvas {
  filter: drop-shadow(0 0 35px rgba(0, 191, 255, 0.45)) 
          drop-shadow(0 0 70px rgba(0, 191, 255, 0.2))
          drop-shadow(0 15px 30px rgba(0, 0, 0, 0.35));
  transform: scale(1.04);
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


/* Independent Left Column Cards */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 340px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  align-self: center; /* Centered vertically in the grid cell */
}

/* Liquid Glass Cards */
.column-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 24px;
  padding: 20px 24px; /* Slightly tighter padding for clean compact aesthetic */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.column-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.06);
}

/* Liquid Glass Moving Gradient Overlay */
.liquid-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 35% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
              radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  animation: liquidMove 25s infinite alternate ease-in-out;
}

@keyframes liquidMove {
  0% {
    transform: rotate(0deg) translate(0px, 0px) scale(1);
  }
  50% {
    transform: rotate(180deg) translate(40px, -20px) scale(1.08);
  }
  100% {
    transform: rotate(360deg) translate(-20px, 30px) scale(0.95);
  }
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Settings Gear button inside Discord Card */
.settings-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.settings-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
}

/* Profile Header Section */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  margin-bottom: 5px;
}

.avatar-wrapper {
  position: relative;
  width: 106px;
  height: 106px;
  margin-bottom: 16px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.12);
  background: #0f0f15;
  transition: var(--transition-smooth);
}

/* Discord Status dot indicator */
.status-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid #07070e;
  background-color: var(--status-offline);
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.status-online { background-color: var(--status-online); box-shadow: 0 0 12px var(--status-online); }
.status-idle { background-color: var(--status-idle); box-shadow: 0 0 12px var(--status-idle); }
.status-dnd { background-color: var(--status-dnd); box-shadow: 0 0 12px var(--status-dnd); }
.status-offline { background-color: var(--status-offline); }
.status-loading {
  background-color: #64748b;
  box-shadow: 0 0 12px #64748b;
  animation: pulseStatus 1.5s infinite ease-in-out;
}

@keyframes pulseStatus {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

.discord-card-loading .avatar-wrapper {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: pulseSkeleton 1.5s infinite ease-in-out;
}

.discord-card-loading .avatar {
  opacity: 0 !important;
}

.discord-card-loading .display-name {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: rgba(255, 255, 255, 0.08) !important;
  -webkit-background-clip: border-box !important;
  border-radius: 6px;
  width: 140px;
  height: 24px;
  display: inline-block;
  animation: pulseSkeleton 1.5s infinite ease-in-out 0.2s;
}

.discord-card-loading .username-tag {
  color: transparent !important;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  width: 90px;
  height: 16px;
  display: inline-block;
  margin-top: 6px;
  animation: pulseSkeleton 1.5s infinite ease-in-out 0.4s;
}

.discord-card-loading .discord-id-tag {
  color: transparent !important;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  width: 110px;
  height: 12px;
  display: inline-block;
  margin-top: 6px;
  animation: pulseSkeleton 1.5s infinite ease-in-out 0.6s;
}

@keyframes pulseSkeleton {
  0% { opacity: 0.3; }
  50% { opacity: 0.75; }
  100% { opacity: 0.3; }
}


.user-names {
  margin-bottom: 8px;
}

.display-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.username-tag {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.custom-status {
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d1d5db;
  margin-top: 5px;
}

/* Discord Live Activity Card */
.discord-activity {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
  margin-top: 20px;
  display: none;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}

.discord-activity.active {
  display: flex;
  animation: fadeIn 0.5s ease-out;
}

.activity-image-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.activity-image {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.activity-small-image {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(10, 10, 15, 0.9);
}

.activity-info {
  flex-grow: 1;
  min-width: 0;
}

.activity-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 4px;
}

.activity-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.activity-details, .activity-state {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Spotify Card styling */
.music-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: #d1d5db;
}

.spotify-container {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  height: 80px;
  transition: var(--transition-smooth);
}

.spotify-container iframe {
  border-radius: 12px;
  border: none;
}

.spotify-container:hover {
  border-color: rgba(29, 185, 84, 0.3);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.12);
}

/* Accordion Card (Roblox / Minecraft) headers styling */
.accordion-card {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.accordion-header-row {
  width: 100%;
  display: flex;
  align-items: center;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
  gap: 16px;
  transition: var(--transition-smooth);
}

/* Social Icon Image sizing */
.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  transition: border-radius 0.25s ease, transform 0.25s ease;
}

/* GitHub SVG adjustments */
svg.social-icon {
  fill: currentColor;
}

.accordion-header-row span {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chevron-icon {
  opacity: 0.3;
  transition: var(--transition-smooth);
}

.accordion-card.active .chevron-icon {
  opacity: 1;
  transform: rotate(180deg);
  color: var(--accent-purple);
}

/* Header Text Collapse transition */
.accordion-card.active .accordion-header-row span {
  opacity: 0;
  transform: translateX(-10px);
}

/* Accordion Expandable Panel - Smooth Fade & Expand */
.accordion-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease-out;
}

.accordion-card.active .accordion-panel {
  max-height: 260px;
  opacity: 1;
}

.panel-inner {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-card.active .panel-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Compact Card Layout Styles */
.compact-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  align-items: center;
}

.compact-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  flex-shrink: 0;
  gap: 12px;
}

.vertical-username {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  display: block;
  background: linear-gradient(180deg, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  opacity: 0;
  transform: translateY(-15px);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.vertical-username:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.accordion-card.active .vertical-username {
  animation: revealLetters 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes revealLetters {
  from {
    opacity: 0;
    transform: translateY(-15px) scaleY(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.compact-right-col {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
}

.accordion-card.active .compact-right-col {
  animation: revealAvatar 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes revealAvatar {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.compact-viewport-wrapper {
  flex-grow: 1;
  width: 100%;
}

/* Viewports inside accordion */
.avatar-preview-container, .skin-3d-viewport {
  position: relative;
  width: 100%;
  height: 200px !important;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-preview-container {
  background: transparent;
}

.skin-3d-viewport {
  background: transparent;
  cursor: grab;
}

.skin-3d-viewport:active {
  cursor: grabbing;
}

/* Canvas styling forcing exact size */
#mc-skin-canvas {
  width: 220px;
  height: 200px;
  display: block;
}

.viewport-ambient-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
  opacity: 0.3;
  filter: blur(10px);
  animation: pulseGlow 4s infinite ease-in-out;
}

.roblox-img-render {
  max-height: 170px !important;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
  animation: hoverAvatar 6s infinite ease-in-out;
}

.render-placeholder-note {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.3); opacity: 0.45; }
}

@keyframes hoverAvatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Direct Link Cards (Steam / GitHub) */
.link-card, .link-card:visited {
  text-decoration: none;
  color: var(--text-main);
}

.row-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.row-content span {
  flex-grow: 1;
  font-weight: 600;
  font-size: 1.05rem;
}

.arrow-icon {
  opacity: 0.3;
  transition: var(--transition-smooth);
}

.link-card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(4px);
}

/* Specific Social Glows */
.btn-roblox:hover, #card-roblox.active, #card-roblox-2.active {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.04);
}

.btn-namemc:hover, #card-namemc.active {
  border-color: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.04);
}

.btn-steam:hover {
  border-color: rgba(102, 192, 244, 0.15);
  box-shadow: 0 0 15px rgba(102, 192, 244, 0.04);
  color: var(--text-main);
}

.btn-github:hover {
  border-color: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.04);
  color: var(--text-main);
}

/* Header Text Collapse transition */
.accordion-card.active .accordion-header span {
  opacity: 0;
  transform: translateX(-10px);
}

/* Settings Modal Elements */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 7, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #090910;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  padding: 30px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  transform: scale(0.9);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--text-main);
}

.modal-scroll-area {
  overflow-y: auto;
  padding-right: 8px;
  flex-grow: 1;
}

.settings-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-purple);
  margin: 18px 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.settings-section-title:first-of-type {
  margin-top: 0;
}

.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.save-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  border: none;
  border-radius: 12px;
  padding: 12px;
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Discord Profile Custom Elements */
.discord-banner {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.discord-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 12px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Activity Card Styling */
.activity-card {
  padding: 24px;
}

.activity-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.discord-activity-container {
  width: 100%;
}

.discord-activity {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
  margin-top: 0 !important;
}

.spotify-activity {
  background: rgba(29, 185, 84, 0.03);
  border-color: rgba(29, 185, 84, 0.15);
}

.spotify-activity:hover {
  border-color: rgba(29, 185, 84, 0.35);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.06);
}

.brand-badge {
  border: none !important;
  background: transparent !important;
}

/* No Activity State */
.no-activity-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  text-align: center;
  gap: 10px;
  color: var(--text-muted);
}

.sleeping-icon {
  font-size: 1.6rem;
  animation: floatSleep 4s infinite ease-in-out;
}

.no-activity-text {
  font-size: 0.88rem;
  font-weight: 500;
}

@keyframes floatSleep {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

/* Responsive Grid */
@media (max-width: 1520px) {
  .container {
    padding: 0 20px;
  }
  .layout-grid {
    grid-template-columns: 300px 1fr 400px;
    gap: 20px;
  }
  .center-head-card {
    width: 520px;
    height: 520px;
  }
  #center-head-canvas {
    width: 500px !important;
    height: 500px !important;
  }
}

@media (max-width: 1260px) {
  .layout-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 30px;
  }
  
  .center-column {
    order: -1; /* Head goes on top on mobile/tablet */
  }
  
  .center-head-card {
    width: 280px;
    height: 280px;
  }
  
  #center-head-canvas {
    width: 240px !important;
    height: 240px !important;
  }
}

@media (max-width: 820px) {
  body {
    padding: 40px 0;
    align-items: flex-start;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .layout-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 24px;
    min-height: auto;
  }
  
  .center-column {
    order: -1;
  }
  
  .left-column {
    max-width: 100%;
  }
  
  .column-card {
    padding: 20px;
  }
  
  .right-column {
    margin: 0;
    max-width: 100%;
    align-self: stretch;
  }
  
  .avatar-preview-container, .skin-3d-viewport {
    height: 220px;
  }
}

/* Discord Badges */
.discord-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
}

.discord-badge {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.discord-badge:hover {
  transform: scale(1.22);
}

/* Discord Custom Status Speech Bubble */
.status-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 10;
  animation: popBubble 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             floatBubble 4s ease-in-out infinite 0.4s;
  margin-left: 8px;
}

.bubble-dot-1,
.bubble-dot-2 {
  display: none;
}

.bubble-content {
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 8px 16px;
  border-radius: 14px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  max-width: 230px;
  white-space: normal;
  word-wrap: break-word;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.bubble-content::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: -1;
}

.bubble-content .status-emoji {
  height: 1.3em;
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
}

@keyframes popBubble {
  from {
    opacity: 0;
    transform: scale(0.8) translateX(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

@keyframes floatBubble {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Roblox loading state container & animation */
.roblox-loading-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(4, 4, 7, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  border-radius: 12px;
}

.roblox-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-purple);
  animation: roblox-spin 1s ease-in-out infinite;
}

.roblox-loading-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

@keyframes roblox-spin {
  to { transform: rotate(360deg); }
}

/* Bottom Status Bar */
.bottom-bar {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(8, 8, 16, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 14px;
  z-index: 90;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.6s ease-out;
  max-width: calc(100vw - 32px);
}



.bottom-bar-music {
  display: flex;
  align-items: center;
  gap: 10px;
}

.now-playing-art {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.now-playing-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  max-width: 140px;
}

.now-playing-song {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-artist {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.now-playing-toggle:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  transform: scale(1.08);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.volume-icon {
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.volume-slider:hover {
  background: rgba(255, 255, 255, 0.15);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.5);
}

@media (max-width: 820px) {
  .bottom-bar {
    right: 8px;
    bottom: 8px;
    padding: 6px 10px;
    border-radius: 12px;
  }

  .now-playing-text {
    max-width: 90px;
  }

  .volume-slider {
    width: 50px;
  }
}
