@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

body, html { 
  margin: 0; 
  padding: 0; 
  width: 100%; 
  height: 100%; 
  overflow: hidden; 
  background-color: #0a0a0f; 
  font-family: 'Outfit', sans-serif;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4) contrast(1.1);
}

.bg-dim {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.bg-dim::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.5;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  30% { transform: translate(3%, -8%); }
  50% { transform: translate(-8%, 3%); }
  70% { transform: translate(8%, 8%); }
  90% { transform: translate(-3%, 5%); }
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  cursor: pointer;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay h1 {
  font-family: 'Darker Grotesque', sans-serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
  position: relative;
}

.overlay h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-gradient);
  animation: expandWidth 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes expandWidth {
  0%, 100% { width: 60px; }
  50% { width: 100px; }
}

.wrap { 
  perspective: 1200px; 
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card { 
  transform-style: preserve-3d;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 32px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 60px rgba(102, 126, 234, 0.2);
  will-change: transform;
  transition: box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.3) 0%, 
    rgba(118, 75, 162, 0.3) 50%, 
    rgba(102, 126, 234, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: borderPulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 8px rgba(102, 126, 234, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.avatar:hover {
  transform: scale(1.05) translateY(-4px);
}

.nick {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 42px;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
  position: relative;
}

.presence {
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 380px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px 18px;
  position: relative;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform-style: preserve-3d;
  transform: translateZ(80px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.presence:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.p-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.presence:hover .p-avatar {
  transform: scale(1.05);
}

.p-text { 
  text-align: left;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

#txt1 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#txt2 {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.sp-box { 
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  line-height: 1.3;
}

.tr-name { 
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.ar-name { 
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: absolute;
  right: 14px;
  top: 14px;
  box-shadow: 0 0 12px currentColor;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--glass-bg);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.icon:hover::before {
  opacity: 1;
}

.icon:hover {
  transform: translateY(-4px) scale(1.05);
}

.icon:active {
  transform: translateY(-2px) scale(1.02);
}

.icon.discord:hover { 
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  border-color: #5865F2;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
}

.icon.spotify:hover { 
  background: linear-gradient(135deg, #1DB954 0%, #1AA34A 100%);
  border-color: #1DB954;
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.5);
}

.icon.instagram:hover { 
  background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
  border-color: #E4405F;
  box-shadow: 0 8px 24px rgba(193, 53, 132, 0.5);
}

.icon.twitter:hover { 
  background: linear-gradient(135deg, #000 0%, #333 100%);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.icon.tiktok:hover { 
  background: linear-gradient(135deg, #000 0%, #EE1D52 50%, #69C9D0 100%);
  border-color: #EE1D52;
  box-shadow: 0 8px 24px rgba(238, 29, 82, 0.5);
}

.icon.github:hover { 
  background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
  border-color: #24292e;
  box-shadow: 0 8px 24px rgba(36, 41, 46, 0.5);
}

.icon.whatsapp:hover { 
  background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
  border-color: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 14px 24px;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#pop_wa {
  position: fixed;
  z-index: 999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: none;
  width: 460px;
  max-width: 90vw;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 36px 32px;
  text-align: center;
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pop_wa.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#pop_wa h2 { 
  margin: 0 0 20px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.sep { 
  height: 1px;
  width: 80%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  margin: 0 auto 28px auto;
}

.f-row { 
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
}

.f-img { 
  width: 110px;
  height: 70px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.f-img:hover { 
  transform: scale(1.1) translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

#bg_blur { 
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 990;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#bg_blur.active {
  opacity: 1;
}

.volume-control {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 16px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.volume-control input[type=range] {
  accent-color: #667eea;
  width: 120px;
  height: 4px;
}

.volume-control i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
  .card {
    padding: 36px 28px;
    border-radius: 24px;
  }

  .nick {
    font-size: 36px;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }

  .presence {
    max-width: 100%;
  }

  .icon {
    width: 48px;
    height: 48px;
  }

  #pop_wa {
    width: 90vw;
    padding: 28px 24px;
  }

  .f-img {
    width: 90px;
    height: 60px;
  }
}
