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

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

body {
  min-height: 100vh;
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(1.2);
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.4) 0%,
    rgba(5, 8, 20, 0.2) 50%,
    rgba(5, 8, 20, 0.65) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.profile-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 420px;
  width: 100%;
  background: rgba(8, 10, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
}

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

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #e879f9, #818cf8, #38bdf8, #e879f9);
  animation: spin 4s linear infinite;
}

.avatar-ring-inner {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #080a19;
}

.avatar-img {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.status-dot {
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 15px;
  height: 15px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #080a19;
  z-index: 3;
  animation: pulse-dot 2s ease-in-out infinite;
}

.username {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #f0f4ff;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 0 30px rgba(129, 140, 248, 0.6);
}

.username span {
  color: #a78bfa;
}

.tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.6), transparent);
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  width: 100%;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-tikalert {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fda4af;
}
.btn-tikalert:hover {
  background: rgba(251, 113, 133, 0.18);
  box-shadow: 0 4px 24px rgba(251, 113, 133, 0.2);
}

.btn-donation {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.btn-donation:hover {
  background: rgba(52, 211, 153, 0.18);
  box-shadow: 0 4px 24px rgba(52, 211, 153, 0.2);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.35);
  color: #4ade80;
}
.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.18);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.2);
}

.btn-discord {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}
.btn-discord:hover {
  background: rgba(99, 102, 241, 0.18);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.2);
}

.btn-tiktok {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}
.btn-tiktok:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.08);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.85); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile-card > * { animation: fadeUp 0.5s ease both; }
.profile-card > *:nth-child(1) { animation-delay: 0.00s; }
.profile-card > *:nth-child(2) { animation-delay: 0.08s; }
.profile-card > *:nth-child(3) { animation-delay: 0.14s; }
.profile-card > *:nth-child(4) { animation-delay: 0.20s; }
.profile-card > *:nth-child(5) { animation-delay: 0.26s; }

.socials > *:nth-child(1) { animation: fadeUp 0.5s ease 0.32s both; }
.socials > *:nth-child(2) { animation: fadeUp 0.5s ease 0.38s both; }
.socials > *:nth-child(3) { animation: fadeUp 0.5s ease 0.44s both; }
.socials > *:nth-child(4) { animation: fadeUp 0.5s ease 0.50s both; }
.socials > *:nth-child(5) { animation: fadeUp 0.5s ease 0.56s both; }

@media (max-width: 480px) {
  body { padding: 1.5rem 1rem; }
  .username { font-size: 1.5rem; }
  .social-btn { padding: 12px 16px; font-size: 0.88rem; }
  .profile-card { padding: 1.8rem 1.2rem; gap: 1rem; }
  .avatar-wrapper { width: 100px; height: 100px; }
  .tagline { font-size: 0.75rem; letter-spacing: 2px; }
  #mute-btn, #admin-btn { width: 38px; height: 38px; top: 12px; }
  #mute-btn { right: 12px; }
  #admin-btn { left: 12px; }
}

@media (hover: none) {
  .bg-video {
    display: none;
  }
  body {
    background: url('/images/bg-poster.jpg') center center / cover no-repeat fixed;
  }
}

#mute-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(8, 10, 25, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: rgba(255,255,255,0.75);
}

#mute-btn svg {
  width: 20px;
  height: 20px;
}

#mute-btn:hover {
  background: rgba(99,102,241,0.3);
  border-color: rgba(99,102,241,0.5);
  transform: scale(1.08);
  color: #fff;
}

#mute-btn.is-muted {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

#admin-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8, 10, 25, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}

#admin-btn svg {
  width: 20px;
  height: 20px;
}

#admin-btn:hover {
  background: rgba(99,102,241,0.25);
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
  transform: scale(1.08);
}

.loading-links {
  text-align: center;
  color: #374151;
  font-size: 0.85rem;
  padding: 1rem;
}

.btn-default {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.35);
  color: #a5b4fc;
}
.btn-default:hover {
  background: rgba(99,102,241,0.18);
  box-shadow: 0 4px 24px rgba(99,102,241,0.2);
}
