/* ===== PROFILE PAGE V2 ===== */
.profile-page-v2 { min-height: 100vh; padding-top: 56px; position: relative; overflow: hidden; }

/* Header Banner */
.profile-banner-wrap {
  position: relative;
  height: 240px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(185, 28, 28, 0.12), transparent);
  overflow: hidden;
}
.profile-banner-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% -20%, rgba(239, 68, 68, 0.15), transparent 70%);
}

/* User Info Section */
.profile-user-section {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.profile-card-modern {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: profileFadeUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  border: 4px solid var(--bg2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  background: var(--bg2);
}
.profile-status-dot {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  background: #22c55e;
  border: 6px solid var(--bg2);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.profile-info-main {
  flex: 1;
  min-width: 250px;
}
.profile-username-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.profile-username-row h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}
.profile-badges-row {
  display: flex;
  gap: 8px;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 24px;
}
.profile-meta-row i { font-size: 12px; opacity: 0.6; }

/* Stats Grid */
.profile-stats-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pstat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 20px;
  min-width: 100px;
  transition: all 0.2s;
}
.pstat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}
.pstat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.pstat-label {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.profile-actions {
  display: flex;
  gap: 12px;
}

/* Grid Section */
.profile-content-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px 80px;
}
.section-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header-modern h2 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-header-modern h2 i { color: var(--accent2); }

@media (max-width: 768px) {
  .profile-card-modern {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }
  .profile-username-row { justify-content: center; }
  .profile-meta-row { justify-content: center; }
  .profile-stats-grid { justify-content: center; }
  .profile-actions { width: 100%; }
  .profile-actions a { flex: 1; }
}
