:root {
  --bg-dark: #000000;
  --card-bg: rgba(10, 10, 12, 0.88);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.22);

  --tile-bg: rgba(16, 16, 20, 0.75);
  --tile-border: rgba(255, 255, 255, 0.06);
  --tile-hover: rgba(26, 26, 32, 0.95);

  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #52525b;

  --accent-white: #ffffff;

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

.enter-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

.enter-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-badge {
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  animation: pulseBadge 2.2s infinite ease-in-out;
}

.enter-prompt {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f3f4f6;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(0.98); opacity: 0.55; }
  50% { transform: scale(1.02); opacity: 1; }
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ambient-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 2;
}

.cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 18px;
  perspective: 1200px;
}

.profile-card-3d {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 26px 24px;
  box-shadow: 
    0 40px 90px -15px rgba(0, 0, 0, 0.98),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.profile-card-3d:hover {
  border-color: var(--card-hover-border);
  box-shadow: 
    0 45px 100px -15px rgba(0, 0, 0, 1),
    0 0 25px rgba(255, 255, 255, 0.04);
}

.card-specular {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 320px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 70%);
  z-index: 0;
}

.card-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  transform: translateZ(30px);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.status-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.status-chip {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 10px;
}

.mini-clock {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #71717a;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 10px;
}

.mini-clock i {
  font-size: 0.62rem;
  color: #52525b;
}

.status-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.status-pulse.dnd {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.status-pulse.idle {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.status-pulse.offline {
  background: #71717a;
  box-shadow: none;
}

.user-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.1;
}

.verified-icon {
  font-size: 1.05rem;
  color: #e5e7eb;
}

.typewriter-box {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #d1d5db;
  min-height: 20px;
  display: flex;
  align-items: center;
}

.cursor-bar {
  animation: blinkBar 0.9s infinite;
  color: #9ca3af;
  margin-left: 2px;
}

@keyframes blinkBar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.user-bio-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

.avatar-capsule {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  border-radius: 22px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.avatar-status-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #0a0a0c;
  background: #22c55e;
  z-index: 2;
}

.capsule-glow {
  position: absolute;
  inset: -3px;
  border-radius: 25px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
}

.avatar-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px;
  display: block;
}

.avatar-decoration {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
  z-index: 3;
}

.hidden {
  display: none !important;
}

.avatar-decoration.hidden {
  display: none !important;
}

/* WIDGET DISCORD PRESENCE RICH */
.discord-activity-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 14, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px 14px;
  position: relative;
  z-index: 1;
  transform: translateZ(28px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease;
}

.discord-activity-widget:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.activity-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.activity-icon-wrap i {
  font-size: 1.05rem;
  color: #fff;
}

.activity-icon-wrap i.hidden {
  display: none !important;
}

.activity-custom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-custom-img.hidden {
  display: none !important;
}

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

.activity-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #71717a;
  text-transform: uppercase;
}

.activity-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-details {
  font-size: 0.72rem;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  transform: translateZ(26px);
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.badge-tag:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.badge-tag i {
  font-size: 0.72rem;
  color: #71717a;
}

.social-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
  transform: translateZ(25px);
}

.bento-tile {
  background: var(--tile-bg);
  border: 1px solid var(--tile-border);
  border-radius: 16px;
  padding: 13px 15px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bento-tile:hover {
  background: var(--tile-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tile-icon {
  font-size: 1.25rem;
  color: #fff;
  transition: transform 0.2s ease;
}

.bento-tile:hover .tile-icon {
  transform: scale(1.1);
  color: #ffffff;
}

.tile-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}

.bento-tile:hover .tile-arrow {
  color: #fff;
  transform: translate(2px, -2px);
}

.tile-label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.discord-quick-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(16, 16, 20, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  transform: translateZ(22px);
}

.discord-quick-copy:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
}

.copy-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-icon {
  color: #71717a;
  font-size: 0.95rem;
}

.copy-user {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e4e4e7;
}

.copy-action {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #71717a;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.discord-quick-copy:hover .copy-action {
  color: #fff;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  transform: translateZ(20px);
}

.embedded-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
}

.player-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.player-btn:hover {
  background: #ffffff;
  color: #000;
  border-color: #ffffff;
}

.player-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.track-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.progress-bar-bg {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
  flex-shrink: 0;
}

.equalizer-bars span {
  width: 2.5px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 1px;
}

.equalizer-bars.playing span {
  background: #ffffff;
  animation: eqBounce 1s infinite alternate ease-in-out;
}

.equalizer-bars.playing span:nth-child(1) { animation-delay: 0.1s; }
.equalizer-bars.playing span:nth-child(2) { animation-delay: 0.35s; }
.equalizer-bars.playing span:nth-child(3) { animation-delay: 0.2s; }

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

.volume-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.vol-icon-btn {
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  width: 20px;
  height: 20px;
  transition: color 0.2s ease;
}

.vol-icon-btn:hover {
  color: #fff;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  flex-grow: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s ease;
}

.vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.vol-percentage {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #71717a;
  width: 32px;
  text-align: right;
}

.footer-views {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .profile-card-3d {
    padding: 22px 18px;
    border-radius: 20px;
  }
}
