/* Profile identity and account-information redesign */
.container.py-4:has(> .profile-highlights-section) > .row.g-4 {
  --profile-accent: #f59e0b;
  --profile-accent-bright: #fcd34d;
  --profile-accent-deep: #f97316;
  align-items: stretch;
  margin-top: 0.4rem;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > [class*="col-lg-"] {
  display: flex;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > [class*="col-lg-"] > .card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.34) !important;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.13), transparent 32%),
    linear-gradient(145deg, #050505 0%, #0a0907 52%, #030303 100%) !important;
  color: #f8fafc;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > [class*="col-lg-"] > .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f59e0b 24%, #fcd34d 52%, #f97316 78%, transparent);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.48);
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-4 .card-body {
  display: flex;
  min-height: 100%;
  padding: 2rem 1.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-4 img.rounded-circle {
  width: 132px;
  height: 132px;
  padding: 4px;
  border: 2px solid rgba(252, 211, 77, 0.92);
  background: #050505;
  box-shadow:
    0 0 0 6px rgba(245, 158, 11, 0.09),
    0 18px 34px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(245, 158, 11, 0.2) !important;
  object-fit: cover;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-4 h4 {
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-4 p.text-muted {
  margin-bottom: 1rem;
  color: #b7bec9 !important;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-4 .badge {
  min-width: 92px;
  border: 1px solid rgba(252, 211, 77, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  color: #090704;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.2);
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .card-body {
  padding: 1.75rem;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 h5 {
  position: relative;
  display: inline-flex;
  margin-bottom: 1.35rem !important;
  padding-bottom: 0.65rem;
  background: linear-gradient(90deg, #fcd34d, #f59e0b 52%, #f97316);
  color: transparent;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  background-clip: text;
  -webkit-background-clip: text;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 h5::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, rgba(249, 115, 22, 0.16));
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .card-body > .row.g-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .card-body > .row.g-3 > .col-md-6 {
  position: relative;
  width: auto;
  min-width: 0;
  min-height: 104px;
  margin: 0;
  padding: 1rem 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.065), transparent 46%),
    #080808;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 26px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .card-body > .row.g-3 > .col-md-6:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 211, 77, 0.48);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3), 0 0 22px rgba(245, 158, 11, 0.08);
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 label.text-muted {
  display: block;
  margin-bottom: 0.4rem;
  color: #f6b83f !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: uppercase;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .fw-bold {
  color: #f8fafc;
  font-size: 0.98rem;
  line-height: 1.5;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .btn-outline-primary {
  width: fit-content;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(245, 158, 11, 0.72) !important;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.09) !important;
  color: #fde68a !important;
  font-weight: 750;
  box-shadow: none;
}

.container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .btn-outline-primary:hover {
  border-color: #fcd34d !important;
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  color: #090704 !important;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.2);
}

@media (max-width: 767px) {
  .container.py-4:has(> .profile-highlights-section) > .row.g-4 > [class*="col-lg-"] > .card {
    border-radius: 20px;
  }

  .container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-4 .card-body,
  .container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .card-body {
    padding: 1.35rem;
  }

  .container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .card-body > .row.g-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .container.py-4:has(> .profile-highlights-section) > .row.g-4 > .col-lg-8 .card-body > .row.g-3 > .col-md-6 {
    min-height: auto;
    padding: 0.95rem 1rem;
  }
}
