/* BRN — Profil Saya */

.profile-demo-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-primary-light);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
}

.profile-demo-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.profile-form--static input:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.profile-security-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.profile-hero {
  position: sticky;
  top: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-hero__banner {
  height: 88px;
  background: var(--gradient-brand);
  opacity: 0.85;
}

.profile-hero__body {
  padding: 0 1.35rem 1rem;
  margin-top: -44px;
  text-align: center;
}

.profile-hero__avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #0a0a0a;
  background: var(--gradient-brand);
  border: 4px solid var(--color-surface);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.profile-hero__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
  word-break: break-word;
}

.profile-hero__email {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
  word-break: break-all;
}

.profile-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.profile-role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-primary-light);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.profile-role-badge--inline {
  margin-right: 0.25rem;
}

.profile-hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.profile-hero__meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  border-top: 1px solid var(--color-border);
}

.profile-hero__meta li:first-child {
  border-top: none;
}

.profile-hero__meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.profile-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
}

.profile-mini-stat {
  padding: 0.85rem 0.5rem;
  text-align: center;
  background: var(--color-surface);
}

.profile-mini-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary-light);
}

.profile-mini-stat span {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-hero__actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--color-border);
}

.profile-hero__actions form {
  flex: 1;
}

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

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-card .panel-card__head span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.profile-dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.profile-dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.profile-dl > div:last-child {
  border-bottom: none;
}

.profile-dl dt {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

.profile-dl dd {
  margin: 0;
  font-size: 0.9rem;
}

.profile-code {
  font-size: 0.75rem;
  word-break: break-all;
  color: var(--color-text-muted);
}

.profile-quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.profile-quick-link {
  display: block;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.profile-quick-link:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.profile-quick-link__icon {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.35rem;
}

.profile-quick-link strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.profile-quick-link small {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

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

  .profile-hero {
    position: static;
  }

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

@media (max-width: 560px) {
  .profile-dl > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
