:root {
  color: #191919;
  background-color: #f5f8fc;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Roboto Slab", "Times New Roman", serif;
  --font-slab: var(--font-serif);

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 48px;

  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-normal: var(--font-regular);
}

body {
  margin: 0;
  background-color: #f5f8fc;
  color: #191919;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: 1.6;
}

.profile-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.profile-content {
  padding: 48px 60px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background-color: #fff;
}

.hero-card {
  border: 2px solid #d86a6a;
  border-radius: 28px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid #fff5f5;

  background-image: url("/assets/profile/avatar.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-color: transparent;
  /* xoá màu xám fallback */
}
.hero-info h1 {
  margin: 0;
  font-family: var(--font-slab);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: 1.05;
}

.profile-tags,
.profile-follow {
  margin: 6px 0;
  color: #4c4c58;
  font-size: var(--text-sm);
}

.hero-card .primary-btn {
  margin-left: auto;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background-color: #c44e4c;
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
}

.hero-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #d6d6dc;
  position: absolute;
  top: 16px;
  right: 32px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card-panel {
  border: 1px solid #e1e4f0;
  border-radius: 24px;
  padding: 24px;
  background-color: #fdfefe;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 18px 32px rgba(30, 30, 30, 0.05);
}

.card-panel h2 {
  margin: 0;
  font-family: var(--font-slab);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
}

.booster-badge {
  width: 140px;
  height: 140px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booster-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.booster-level {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: #5a5a66;
}

.booster-stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.booster-stats .booster-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.booster-stats .stat-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.achievements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.achievement-icon {
  width: 150px;
  height: auto;
  object-fit: contain;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-content {
    padding: 32px 24px;
  }

  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .hero-card .primary-btn {
    margin-left: 0;
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .hero-avatar {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 480px) {
  .profile-content {
    padding: 20px 16px;
  }

  .hero-card {
    padding: 20px;
    gap: 20px;
  }

  .hero-info h1 {
    font-size: var(--text-3xl);
  }

  .hero-avatar {
    width: 90px;
    height: 90px;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
