.hero {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--gradient-primary);
  overflow: hidden;
}

.hero__cover-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Khi ảnh/video lỗi (chưa có file, sai định dạng...), ẩn media,
   để lộ nền gradient mặc định của .hero__cover phía sau */
.hero__cover--fallback .hero__cover-media {
  display: none;
}

/* Tôn trọng lựa chọn "giảm chuyển động" của người dùng: dừng video,
   giữ lại khung hình đầu tiên, vừa tiết kiệm pin/dữ liệu vừa dễ chịu hơn */
@media (prefers-reduced-motion: reduce) {
  video.hero__cover-media {
    display: none;
  }
}

.hero__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(6, 6, 14, 0.75) 100%);
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 24px;
}

.hero__avatar-wrap {
  position: relative;
  width: 116px;
  height: 116px;
  margin-bottom: 14px;
}

/* Đĩa nền đặc phía sau avatar (tách khỏi ảnh cover) để viền/glow luôn rõ nét
   dù cover là ảnh sáng hay tối */
.hero__avatar-wrap::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #1b1d2b;
  z-index: 0;
}

.hero__avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7c5cff, #22d3ee, #a78bfa, #7c5cff);
  filter: blur(10px);
  opacity: 0.85;
  animation: glowPulse 2.6s ease-in-out infinite;
  z-index: 1;
}

.hero__avatar {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #d9dbe3;
}

/* Nền đặc riêng cho khu vực tên + badge, tách khỏi ảnh cover phía sau
   để huy hiệu xác minh màu xanh luôn nổi bật dù cover là ảnh gì */
.hero__name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(11, 13, 22, 0.55);
  -webkit-backdrop-filter: var(--blur-md);
  backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__name {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-name);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Badge phẳng - chỉ giữ màu xanh xác minh cố định, không viền/nền trắng bao quanh */
.hero__badge {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* Màu cố định — không kế thừa currentColor trong suốt từ gradient text */
  color: #2563eb;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
}

.hero__pill svg {
  width: 14px;
  height: 14px;
}

.hero__domain {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-light-muted);
  word-break: break-all;
}

.hero__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
}

.hero__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
}

.hero__social-btn img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

/* Nút chính - đặc màu, nổi bật nhất (thường là mạng xã hội chính) */
.hero__social-btn--solid {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Nút phụ - viền kính trong suốt (glassmorphism), đồng bộ hiệu ứng với header */
.hero__social-btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: var(--blur-md);
  backdrop-filter: var(--blur-md);
}

.hero__social-btn--outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (min-width: 768px) {
  .hero__cover {
    aspect-ratio: 16 / 8;
  }

  .hero__avatar-wrap {
    width: 140px;
    height: 140px;
  }

  .hero__name {
    font-size: 30px;
  }
}
