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

body {
  font-family: Monospace, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: #0a0e1a;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.5s ease-in-out;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 26, 0.8) 0%,
    rgba(20, 30, 50, 0.7) 100%
  );
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 250px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #5865f2;
  position: relative;
  background: url("../../assets/images/N1s.jpg") center/cover;
  flex-shrink: 0;
}

.status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #0a0e1a;
  background: #23a55a;
}

.status-dot.idle {
  background: #f0b232;
}
.status-dot.dnd {
  background: #f13f43;
}
.status-dot.offline {
  background: #80848e;
}
.status-dot.null {
  background: #80848e;
}
.status-dot.skeleton {
  background: #80848e;
}

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

.user-info h1 {
  color: #ff6b9d;
  font-size: 2rem;
  margin-bottom: 5px;
  word-break: break-word;
}

.welcome-text {
  color: #b3b8c4;
  font-size: 1.1rem;
  letter-spacing: 2px;
  word-break: break-all;
  overflow: hidden;
}

.vc-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.vc-member {
  position: relative;
  cursor: pointer;
}

.vc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #5865f2;
  transition: all 0.3s ease;
}

.vc-avatar:hover {
  border-color: #ff6b9d;
  transform: scale(1.1);
}

.vc-overflow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.8);
  border: 2px solid #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vc-overflow:hover {
  background: rgba(255, 107, 157, 0.8);
  border-color: #ff6b9d;
  transform: scale(1.1);
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.vc-member:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(20, 30, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ff6b9d;
}

.modal-close {
  background: none;
  border: none;
  color: #b3b8c4;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ff6b9d;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 30, 50, 0.95);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  z-index: 3000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Modal (already styled, just add textarea inside) */
.modal-textarea {
  width: 100%;
  height: 120px;
  resize: none;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  font-family: JetBrains Mono, monospace;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.modal-btn {
  display: inline-block;
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid #5865f2;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  background: rgba(255, 107, 157, 0.3);
  border-color: #ff6b9d;
}

.modal-btn.cancel {
  background: none;
  border: 1px solid #5865f2;
}

.modal-btn.cancel:hover {
  background: rgba(88, 101, 242, 0.2);
}

.modal-body {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.guild-info {
  text-align: center;
  margin-bottom: 20px;
  color: #b3b8c4;
  font-size: 0.9rem;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.member-item:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: #5865f2;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #5865f2;
  flex-shrink: 0;
}

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

.member-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.member-username {
  color: #b3b8c4;
  font-size: 0.8rem;
  margin-top: 2px;
}

.followers {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.games-grid-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 40px;
  padding: 0;
}

.games-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  overflow: hidden;
  margin-top: -15px;
  padding: 10px 20px;
  box-sizing: border-box;
  margin-bottom: 0;
}

.game-item {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 80px;
}

.game-icon {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.game-icon img {
  width: 50px;
  height: 100%;
  object-fit: cover;
}

.game-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  border-radius: 50%;
  transition: left 0.5s ease;
  z-index: 1;
}

.game-icon:hover {
  border-color: #5865f2;
}

.game-icon:hover::before {
  left: 100%;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  margin-bottom: 5px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.game-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1200px) {
  .game-item {
    max-width: 70px;
  }
}

@media (max-width: 900px) {
  .game-item {
    max-width: 60px;
  }
}

@media (max-width: 700px) {
  .game-item {
    max-width: 50px;
  }
  .tooltip {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 500px) {
  .game-item {
    max-width: 40px;
  }
}

@media (max-width: 400px) {
  .game-item {
    max-width: 32px;
  }
}

.discord-rpc {
  background: rgba(20, 30, 50, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  margin-top: -30px;
  backdrop-filter: blur(20px);
}

.rpc-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.rpc-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #5865f2;
  flex-shrink: 0;
}

.rpc-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.activity-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3b8c4;
  flex-shrink: 0;
}

.activity-info {
  min-width: 0;
}

.activity-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  word-break: break-word;
}

.activity-details {
  color: #b3b8c4;
  margin-bottom: 3px;
  word-break: break-word;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5865f2, #ff6b9d);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.time-stamps {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #80848e;
  margin-top: 5px;
}

.buttons-section {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.rpc-button {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.rpc-button:hover {
  background: rgba(88, 101, 242, 0.3);
  border-color: #5865f2;
}

.spotify-section {
  border-radius: 20px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  max-width: 400px;
  margin: 50px auto;
}

.spotify-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.spotify-content {
  position: relative;
  z-index: 2;
}

.audio-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.album-cover {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.track-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-art {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.play-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.play-button:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

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

.waveform-container {
  margin-bottom: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 10px;
}

.wave-bar {
  width: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.wave-bar.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scaleY(1.2);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 2px;
}

.time-stamps {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.8;
}

.hidden-pc {
  display: none;
}

@media (max-width: 768px) {
  .hidden-pc {
    display: block;
  }

  .audio-header {
    margin-bottom: 15px;
  }

  .album-cover {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .track-title {
    font-size: 1rem;
  }

  .track-artist {
    font-size: 0.8rem;
  }

  .modal-content {
    padding: 20px;
    margin: 20px;
  }

  .vc-avatar,
  .vc-overflow {
    width: 28px;
    height: 28px;
  }

  .tooltip {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .spotify-section {
    padding: 15px;
  }

  .play-button {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .waveform-container {
    height: 30px;
  }

  .wave-bar {
    width: 2px;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 5px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-text {
  height: 20px;
  margin: 5px 0;
}

.skeleton-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header {
    flex-direction: column;
    gap: 15px;
  }

  .profile-section {
    justify-content: center;
    min-width: auto;
  }

  .user-info h1 {
    font-size: 1.8rem;
  }

  .welcome-text {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    max-width: 100%;
  }

  .discord-rpc {
    padding: 20px;
  }

  .rpc-content {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: left;
  }

  .activity-image {
    align-self: center;
    justify-self: center;
  }

  .buttons-section {
    justify-content: center;
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .avatar {
    width: 70px;
    height: 70px;
  }

  .status-dot {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }

  .user-info h1 {
    font-size: 1.6rem;
  }

  .welcome-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .followers {
    padding: 6px 12px;
    font-size: 0.9rem;
    position: fixed;
    bottom: 16px;
    left: 90%;
    transform: translateX(-50%);
    z-index: 3;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
  }

  .discord-rpc {
    padding: 15px;
  }

  .rpc-header {
    gap: 10px;
  }

  .rpc-avatar {
    width: 50px;
    height: 50px;
  }

  .activity-image {
    width: 60px;
    height: 60px;
  }

  .activity-title {
    font-size: 1.1rem;
  }

  .activity-details {
    font-size: 0.9rem;
  }

  .buttons-section {
    gap: 8px;
    margin-top: 10px;
  }

  .rpc-button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .user-info h1 {
    font-size: 1.4rem;
  }

  .welcome-text {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  .activity-title {
    font-size: 1rem;
  }

  .activity-details {
    font-size: 0.8rem;
  }
}

.games-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  overflow: hidden;
  margin-top: -15px;
  padding: 10px 20px;
  box-sizing: border-box;
  margin-bottom: 0;
}

@media (max-width: 748px) {
  .games-grid {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto;
    padding: 10px 15px;
    position: relative;
  }

  .games-grid::-webkit-scrollbar {
    display: none;
  }

  .games-grid > div {
    flex-shrink: 0;
    min-width: auto;
  }
}

.game-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.game-icon:hover {
  transform: scale(1.1);
}

.game-icon img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}
