* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #18191c;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 30px;

  background-image: url('santi.gif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  cursor: url('path/to/your/cross-cursor.png'), auto;
}


body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.profile-panel {
  width: 700px;
  background: rgba(47, 49, 54, 0.15);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: fixed;
  max-height: 90vh;
  overflow-y: auto;
}


.profile-panel::-webkit-scrollbar {
  width: 8px;
}

.profile-panel::-webkit-scrollbar-track {
  background: transparent;
}

.profile-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.profile-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(32, 34, 37, 0.3), rgba(47, 49, 54, 0.3));
  display: block;
  backdrop-filter: blur(8px);
}

.banner.hidden {
  display: none;
}

.profile-info {
  display: flex;
  padding: 20px;
  gap: 20px;
  align-items: center;
}

.avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
}

.profile-info #avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #ffffff00;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.avatar-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  pointer-events: none;
  z-index: 10;
}

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

.username-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.username-section h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
}

.username-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guild-tag {
  background: rgba(29, 29, 30, 0.3);
  border: 1px solid rgba(88, 88, 90, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.guild-tag.hidden {
  display: none;
}

.guild-badge {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9bbbe;
  font-size: 14px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5) inset, 0 0 10px currentColor;
  animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
  cursor: pointer;
}

.social-links a:hover:not(.disabled) {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.social-links a.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.custom-status {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #b9bbbe;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icon {
  font-size: 16px;
}

.activities {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 80px;
}

.activity,
.spotify,
.music-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(15px) saturate(170%);
  -webkit-backdrop-filter: blur(15px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(54, 57, 63, 0.1);
}

.activity {
  background: rgba(54, 57, 63, 0.08);
}

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

.activity-large-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.activity-small-img {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(47, 49, 54, 0.9);
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.activity-state {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #8e9297;
}

.spotify img,
.music-player img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.activity-info h3,
.spotify-info h3,
.music-player-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.activity-info p,
.spotify-info p,
.music-player-info p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #b9bbbe;
}

.spotify {
  background: rgba(29, 185, 84, 0.08);
  border: 1px solid rgba(29, 185, 84, 0.2);
}

.music-player {
  background: rgba(251, 251, 251, 0);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.spotify-progress,
.music-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.spotify-progress:hover .spotify-progress-inner,
.music-progress:hover .music-progress-inner {
  background: linear-gradient(90deg, rgba(29, 185, 84, 1), rgba(26, 163, 74, 0.8));
}

.music-progress:hover .music-progress-inner {
  background: linear-gradient(90deg, rgba(114, 137, 218, 1), rgba(88, 101, 242, 0.8));
}

.spotify-progress-inner,
.music-progress-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(29, 185, 84, 0.95), rgba(26, 163, 74, 0.7));
  border-radius: 8px;
  position: relative;
  transition: width 0.15s linear;
}

.music-progress-inner {
  background: linear-gradient(90deg, rgba(114, 137, 218, 0.95), rgba(88, 101, 242, 0.7));
}

.spotify-progress-inner::after,
.music-progress-inner::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}

.spotify-progress:hover .spotify-progress-inner::after,
.music-progress:hover .music-progress-inner::after {
  opacity: 1;
}

.spotify-timestamps,
.music-timestamps {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
}

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

.music-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 12px;
  font-weight: 600;
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.music-btn.active {
  background: rgba(114, 137, 218, 0.5);
}

.badge {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.no-activity {
  text-align: center;
  color: #72767d;
  padding: 20px;
  font-size: 14px;
}

#typewriterText {
  position: relative;
  display: inline-block;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  overflow: visible;
  min-height: 24px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(255, 255, 255, 0.3);
  font-family: 'Courier New', monospace;
  white-space: normal;
  word-wrap: break-word;
  max-width: 600px;
  line-height: 1.4;
}

#typewriterText::after {
  content: "";
  display: inline;
  width: 3px;
  height: 1.2em;
  background: #010101;
  animation: cursor-glow 0.6s infinite;
  box-shadow: 0 0 8px #f9f9f9, 0 0 15px rgba(252, 252, 252, 0.7);
  margin-left: 2px;
  vertical-align: text-bottom;
}

#typewriterText.typewriter-glow {
  animation: glow-pulse 2s infinite;
}

@keyframes cursor-glow {

  0%,
  49% {
    opacity: 1;
    box-shadow: 0 0 8px #f9f9f9, 0 0 15px rgba(3, 3, 3, 0.7);
  }

  50%,
  100% {
    opacity: 0;
    box-shadow: 0 0 8px #fcfcfc, 0 0 15px rgba(3, 3, 3, 0.7);
  }
}

@keyframes glitch {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-2px);
  }

  40% {
    transform: translateX(2px);
  }

  60% {
    transform: translateX(-1px);
  }

  80% {
    transform: translateX(1px);
  }
}
