:root {
  --background: #0b0a12;
  --background-alt: #121020;
  --card: #151323;
  --card-border: #29253f;
  --muted: #9a95ab;
  --foreground: #f5f4fa;
  --brand-1: #694fec;
  --brand-2: #c757f5;
  --brand-3: #e8b038;
  --gradient-brand: linear-gradient(115deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  --gradient-brand-soft: linear-gradient(115deg, rgba(105, 79, 236, 0.18) 0%, rgba(199, 87, 245, 0.18) 55%, rgba(232, 176, 56, 0.18) 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 16s ease-in-out infinite;
}

.blob.b1 {
  background: var(--brand-1);
  top: -12%;
  left: -10%;
}

.blob.b2 {
  background: var(--brand-2);
  bottom: -14%;
  right: -8%;
  animation-delay: -6s;
}

.blob.b3 {
  background: var(--brand-3);
  top: 30%;
  right: 20%;
  opacity: 0.22;
  animation-delay: -11s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3vw, 4vw) scale(1.08);
  }
}

.card-wrap {
  position: relative;
  z-index: 1;
  perspective: 1000px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
}

.card {
  position: relative;
  background: rgba(21, 19, 35, 0.72);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 40px 32px 32px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(105, 79, 236, 0.12), 0 30px 60px -20px rgba(199, 87, 245, 0.35);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  animation: card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: white;
  box-shadow: 0 0 0 4px rgba(21, 19, 35, 0.9), 0 0 0 5px var(--card-border);
  overflow: hidden;
}

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

.status-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #23a55a;
  border: 4px solid var(--card);
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gradient-brand-soft);
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.status-text {
  margin-top: 6px;
  font-size: 13px;
  color: #23a55a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.status-text .dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #23a55a;
}

.bio {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.divider {
  margin: 26px 0 22px;
  height: 1px;
  background: var(--card-border);
}

.promo-banner {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(199, 87, 245, 0.35);
  text-decoration: none;
  color: var(--foreground);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.promo-banner:hover {
  transform: translateY(-1px);
  border-color: var(--brand-2);
}

.promo-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

.promo-banner-icon svg {
  width: 15px;
  height: 15px;
  color: white;
}

.promo-banner-text {
  text-align: left;
  min-width: 0;
}

.promo-banner-title {
  font-size: 12.5px;
  font-weight: 600;
}

.promo-banner-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: var(--brand-2);
}

.promo-banner-sub {
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
}

.music {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  text-align: left;
}

.music-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.music-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.music-bar {
  margin-top: 10px;
  height: 4px;
  border-radius: 9999px;
  background: var(--card-border);
  cursor: pointer;
  overflow: hidden;
}

.music-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  transition: width 0.1s linear;
}

.music-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: none;
  background: var(--gradient-brand);
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.music-play:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.music-play svg {
  width: 14px;
  height: 14px;
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: var(--muted);
}

.music-volume svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.music-volume input[type="range"] {
  flex: 1;
  accent-color: var(--brand-2);
  height: 4px;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--foreground);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-btn:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
  transform: translateY(-2px);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--brand-2);
}

.footer-link img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

@media (max-width: 420px) {
  .card {
    padding: 32px 22px 26px;
  }
}
