:root {
  --bg: #07000f;
  --purple-500: #7c3aed;
  --purple-400: #a78bfa;
  --purple-300: #c4b5fd;
  --text: #f3e8ff;
  --text-dim: #c4b5fd;
  --glass: rgba(18, 5, 35, 0.65);
  --border: rgba(167, 139, 250, 0.22);
  --glow: 0 0 30px rgba(124, 58, 237, 0.35);
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  overflow: hidden;
  background: var(--bg);
}

/* Background */
.background {
  position: fixed;
  inset: 0;
  background: url("background.png") center/cover no-repeat;
  filter: brightness(0.38) saturate(1.15);
  z-index: -2;
}

.background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(124, 58, 237, 0.22), transparent 55%),
              linear-gradient(to bottom, rgba(7, 0, 15, 0.3), rgba(7, 0, 15, 0.75));
}

/* Intro Overlay */
.intro {
  position: fixed;
  inset: 0;
  background: rgba(7, 0, 15, 0.9);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.intro.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  position: relative;
}

.intro-content h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e9d5ff, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
  letter-spacing: -1px;
}

.intro-content p {
  color: var(--purple-400);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.intro-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

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

/* Card */
.card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.8rem 2.2rem;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: var(--glow), 0 25px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 45px rgba(124, 58, 237, 0.45), 0 25px 50px rgba(0, 0, 0, 0.5);
}

.avatar-wrap {
  margin-bottom: 1.4rem;
}

.avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple-500);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.55);
}

.name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f3e8ff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--purple-400);
  margin-bottom: 0.9rem;
}

.bio {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1.9rem;
}

/* Payment Buttons */
.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pay-btn {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 14px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  padding: 0;
}

.pay-btn:hover {
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--purple-400);
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.4);
}

.pay-btn:active {
  transform: scale(0.94);
}

.pay-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4));
}

/* Volume Control */
.volume-control {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  box-shadow: var(--glow);
  z-index: 100;
  transition: opacity 0.5s ease;
}

#mute-btn {
  background: none;
  border: none;
  color: var(--purple-300);
  cursor: pointer;
  display: flex;
  padding: 0.2rem;
  transition: color 0.2s;
}

#mute-btn:hover {
  color: var(--purple-400);
}

#volume-icon {
  width: 22px;
  height: 22px;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 5px;
  background: rgba(167, 139, 250, 0.25);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--purple-400);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.7);
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--purple-400);
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.7);
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #22c55e;
  color: white;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.toast.show {
  opacity: 1;
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    padding: 2.2rem 1.6rem;
  }
  
  .name {
    font-size: 1.65rem;
  }
  
  .volume-control {
    bottom: 1.2rem;
    right: 1.2rem;
  }
}
