/* Account profile */

.profile-page {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.profile-header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar-large {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--dk-primary),
      #7c3aed
    );
  border-radius: 1.25rem;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
  font-size: 1.5rem;
  font-weight: 800;
}

.profile-header .page-eyebrow {
  margin-bottom: 0.2rem;
  color: var(--dk-primary);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-header h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.profile-header p:last-child {
  margin: 0;
  color: var(--dk-text-muted);
}

.profile-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(18rem, 0.75fr);
  align-items: start;
  gap: 1.25rem;
}

.profile-sidebar {
  display: grid;
  gap: 1.25rem;
}

.profile-card {
  padding: 1.5rem;
  background: var(--dk-surface);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-lg);
  box-shadow: var(--dk-shadow-sm);
}

.profile-card-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dk-border);
}

.profile-card-header .card-eyebrow {
  margin: 0 0 0.2rem;
  color: var(--dk-primary);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.profile-card-header p:last-child {
  margin: 0;
  color: var(--dk-text-muted);
  font-size: 0.84rem;
}

.profile-form {
  display: grid;
  gap: 1.1rem;
}

.profile-form .validation-summary-valid {
  display: none;
}

.profile-form-field .text-danger {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.profile-form-field .form-text {
  margin-bottom: 0;
  color: var(--dk-text-muted);
}

.profile-form-actions {
  padding-top: 0.25rem;
  display: flex;
  justify-content: flex-end;
}

.profile-form-actions .btn {
  min-width: 9rem;
}

.profile-email {
  margin-bottom: 1rem;
  padding: 0.9rem;
  background: var(--dk-surface-muted);
  border: 1px solid var(--dk-border);
  border-radius: 0.8rem;
}

.profile-email-address {
  overflow-wrap: anywhere;
  display: block;
  margin-bottom: 0.55rem;
  color: var(--dk-navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.profile-verification-badge {
  width: fit-content;
  padding: 0.3rem 0.55rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
}

.profile-verification-badge.verified {
  color: #166534;
  background: #dcfce7;
}

.profile-verification-badge.pending {
  color: #92400e;
  background: #fef3c7;
}

.profile-security-links {
  display: grid;
  gap: 0.6rem;
}

.profile-security-links a {
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--dk-text);
  background: var(--dk-surface-muted);
  border: 1px solid var(--dk-border);
  border-radius: 0.75rem;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.profile-security-links a:hover,
.profile-security-links a:focus {
  color: var(--dk-text);
  background: var(--dk-primary-soft);
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.profile-security-links a > span:first-child {
  min-width: 0;
}

.profile-security-links strong,
.profile-security-links small {
  display: block;
}

.profile-security-links strong {
  margin-bottom: 0.15rem;
  color: var(--dk-navy);
  font-size: 0.84rem;
}

.profile-security-links small {
  color: var(--dk-text-muted);
  font-size: 0.7rem;
}

.profile-security-links a > span:last-child {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 1.4rem;
}

/* Tablet and mobile */

@media (max-width: 991.98px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767.98px) {
  .profile-header {
    align-items: flex-start;
  }

  .profile-avatar-large {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1rem;
    font-size: 1.2rem;
  }

  .profile-card {
    padding: 1.15rem;
  }

  .profile-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-form-actions {
    display: block;
  }

  .profile-form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 419.98px) {
  .profile-header {
    flex-direction: column;
  }
}