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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

/* Background Video */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #000;
}

.bg-dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* Entry Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.overlay.zoom-out {
  transform: scale(2);
  opacity: 0;
  filter: blur(20px);
  pointer-events: none;
}

.overlay h1 {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 2px;
  animation: blink 1.5s infinite;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

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

/* 3D Wrapper */
.wrap {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

/* Main Card - Guns.lol Style */
.card {
  width: 420px;
  max-width: 90%;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: visible; /* To allow avatar overlapping */
  padding-bottom: 30px;
}

/* Banner */
.banner {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #111, #333);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Avatar overlapping banner */
.avatar-container {
  display: flex;
  justify-content: center;
  margin-top: -55px; /* Overlap effect */
  position: relative;
  z-index: 10;
}

.avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(20, 20, 20, 0.8);
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  box-sizing: border-box;
}

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

/* Name & Badges */
.nick-container {
  text-align: center;
  margin-top: 12px;
}

.nick {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 0 15px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Discord Badges Row */
.badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: help;
  position: relative;
  transition: all 0.2s ease;
}

.badge img, .badge svg {
  width: 18px;
  height: 18px;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.badge-text {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0 8px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #ddd;
}

/* Tooltip for badges */
.badge::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  border: 1px solid rgba(255,255,255,0.2);
}
.badge:hover::after {
  opacity: 1;
  top: -30px;
}

/* Discord Presence Box */
.presence {
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 85%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px 16px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  /* Keep 3D transform style if it needs to pop out */
  transform-style: preserve-3d;
}

.p-avatar {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

.p-text { 
  text-align: left; 
  flex: 1; 
  overflow: hidden; 
}

.sp-box { display: flex; flex-direction: column; justify-content: center; line-height: 1.3; }
.tr-name { font-weight: 600; font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-name { font-size: 13px; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }

.status-dot {
  width: 18px;
  height: 18px;
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.status-dot svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

/* Social Icons Row */
.icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: 0.25s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.icon:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Social Colors on Hover */
.icon.discord:hover { background: #5865F2; border-color: #5865F2; box-shadow: 0 5px 15px rgba(88,101,242,0.4); }
.icon.spotify:hover { background: #1DB954; border-color: #1DB954; box-shadow: 0 5px 15px rgba(29,185,84,0.4); }
.icon.instagram:hover { background: #C13584; border-color: #C13584; box-shadow: 0 5px 15px rgba(193,53,132,0.4); }
.icon.twitter:hover { background: #000; border-color: #333; box-shadow: 0 5px 15px rgba(255,255,255,0.2); } 
.icon.tiktok:hover { background: #6e5494; border-color: #6e5494; box-shadow: 0 5px 15px rgba(110,84,148,0.4); }
.icon.github:hover { background: #2c3e50; border-color: #2c3e50; box-shadow: 0 5px 15px rgba(44,62,80,0.4); }
.icon.whatsapp:hover { background: #25D366; border-color: #25D366; box-shadow: 0 5px 15px rgba(37,211,102,0.4); }

/* Glitch Nickname Overlay (if keeping it) */
#nick_overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 100;
  letter-spacing: 2px;
}

/* Toasts and Modals */
.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  font-size: 14px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.volume-control {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.5);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.volume-control input[type=range] {
  accent-color: #fff;
  width: 100px;
}

/* WhatsApp Pop - Fixed Sizes */
#pop_wa {
  position: fixed; z-index: 1000;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: none; width: 340px;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 30px 20px; text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 70px rgba(0,0,0,0.8);
}

#pop_wa h2 { 
  margin: 0 0 15px 0; color: #fff; 
  font-size: 15px; font-weight: 400; letter-spacing: 0.5px; opacity: 0.9;
}

.sep { height: 1px; width: 70%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); margin: 0 auto 25px auto; }

.f-row { display: flex; justify-content: center; gap: 30px; align-items: center; }

.f-img { 
  width: 90px; height: 60px;
  border-radius: 8px; border: 2px solid rgba(255,255,255,0.1); 
  cursor: pointer; transition: 0.3s;
  object-fit: cover;
}
.f-img:hover { transform: scale(1.1); border-color: #fff; box-shadow: 0 8px 25px rgba(255,255,255,0.2); }

#bg_blur { 
  display: none; position: fixed; inset: 0; 
  background: rgba(0,0,0,0.6); 
  backdrop-filter: blur(8px); z-index: 990; 
}

/* Visit count */
#visitor-count {
  margin-top: 24px;
  text-align: center;
  color: white;
  font-size: 13px;
  opacity: 0.6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
