.account-page {
  width: 100%;
  margin: var(--page-margin-desktop);
  box-sizing: border-box;
}

.account-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  padding: 32px;
  box-sizing: border-box;
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-title-row h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  color: #111827;
}

.page-eyebrow {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-content {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
}

.form-message {
  min-height: 24px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.form-message:empty {
  display: none;
}

.form-message.info {
  color: #0f172a;
  background: #e2e8f0;
}

.form-message.success {
  color: #065f46;
  background: #d1fae5;
}

.form-message.error {
  color: #991b1b;
  background: #fee2e2;
}

.profile-grid {
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}

.profile-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid #e5e7eb;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row dt,
.profile-row dd {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.profile-row dt {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.profile-row dd {
  color: #111827;
  word-break: break-word;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.account-action-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.account-action-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .account-page {
    width: 100%;
    margin: var(--page-margin-mobile);
  }

  .account-card {
    border-radius: 18px;
    padding: 20px 16px;
  }

  .page-title-row h1 {
    font-size: 24px;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .profile-row dt {
    padding-bottom: 4px;
  }

  .profile-row dd {
    padding-top: 0;
  }
}
