/* Personal info (ProfileView.swift, from the site's profile.css): photo, white cards of settings rows. */

.pf-content {
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 22px 54px;
  color: var(--pf-ink);
}
.pf-body {
  display: flex;
  flex-direction: column;
}

/* Photo */
.pf-identity {
  padding: 8px 0 31px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pf-avatar-wrap {
  position: relative;
}
.pf-avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6275d5, #33469e);
  box-shadow: 0 14px 30px var(--pf-avatar-shadow);
}
.pf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-initial {
  font-family: 'Outfit', sans-serif;
  font-size: 47px;
  font-weight: 600;
  color: #fff;
}
.pf-camera {
  position: absolute;
  right: -12px;
  bottom: -6px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-camera > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--pf-brand);
  background: var(--pf-camera);
  border: 4px solid var(--surface);
}
.pf-camera:disabled {
  opacity: 0.6;
}
.pf-photo-hint {
  padding-top: 17px;
  font-size: 13px;
  color: var(--pf-muted);
}

.pf-notice {
  margin: 2px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-ok);
  background: var(--pf-ok-soft);
}
.pf-notice.is-error {
  color: var(--pf-error);
  background: var(--pf-error-soft);
}
.pf-form .pf-notice {
  margin: 0 0 4px;
}

/* Cards */
.pf-card {
  margin-top: 16px;
  padding: 21px 18px 6px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--pf-line);
  box-shadow: 0 5px 18px var(--wd-card-shadow);
}
.pf-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.45px;
}
.pf-form {
  display: flex;
  flex-direction: column;
}
.pf-row {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: var(--pf-ink);
}
label.pf-row {
  cursor: pointer;
}
.pf-icon {
  width: 40px;
  height: 40px;
  flex: none;
  margin-right: 2px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--pf-brand);
  background: var(--pf-soft);
}
.pf-icon .icon-svg {
  width: 19px;
  height: 19px;
}
.pf-row-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pf-muted);
}
.pf-value,
.pf-value-input {
  font-size: 15px;
  font-weight: 600;
  color: var(--pf-value);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-value-input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
}
.pf-value-input::placeholder {
  color: var(--pf-placeholder);
}
.pf-value-input:focus {
  box-shadow: 0 1.5px 0 var(--pf-brand);
}
.pf-row-trailing {
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-trailing-icon {
  font-size: 16px;
  color: var(--pf-brand);
}
.pf-trailing-icon.is-muted {
  color: var(--pf-muted);
}
.pf-edit {
  width: 44px;
  height: 44px;
  margin: -3px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pf-edit:hover {
  background: var(--pf-soft, rgba(141, 92, 255, 0.08));
}
.pf-edit:focus-visible {
  outline: 2px solid var(--pf-brand);
  outline-offset: 1px;
}
.pf-chevron {
  font-size: 31px;
  line-height: 1;
  color: var(--pf-muted);
}
.pf-help {
  margin: -6px 0 0;
  padding: 0 0 14px 53px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--pf-muted);
}
.pf-divider {
  height: 1px;
  background: var(--pf-line);
}
.pf-card-end {
  height: 8px;
}
.pf-save {
  margin: 8px 0 14px;
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--pf-save);
}
.pf-save:disabled {
  opacity: 0.6;
  cursor: default;
}
.pf-save.is-danger {
  background: var(--pf-danger);
}

/* Contact details dropdown */
.pf-card.is-dropdown {
  padding-top: 15px;
}
.pf-dropdown-head {
  width: 100%;
  min-height: 44px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--pf-ink);
}
.pf-dropdown-head.is-open {
  padding-bottom: 0;
}
.pf-dropdown-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-summary {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-dropdown-chevron {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--pf-brand);
  background: var(--pf-soft);
  transition: transform 0.3s;
}
.pf-dropdown-head.is-open .pf-dropdown-chevron {
  transform: rotate(180deg);
}

/* Dark mode switch */
.pf-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 51px;
  height: 31px;
  flex: none;
  margin: 0;
  border-radius: 16px;
  background: var(--pf-line);
  cursor: pointer;
  transition: background-color 0.2s;
}
.pf-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.pf-switch:checked {
  background: var(--pf-brand);
}
.pf-switch:checked::after {
  transform: translateX(20px);
}
.pf-switch:focus-visible {
  outline: 2px solid var(--pf-brand);
  outline-offset: 2px;
}

/* Update password */
.pf-password {
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--pf-password-bg);
  border: 1px solid var(--pf-line);
}
.pf-password-head {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--pf-ink);
}
.pf-password-head .pf-chevron {
  transition: transform 0.2s;
}
.pf-password-head.is-open .pf-chevron {
  transform: rotate(90deg);
}
.pf-password-body {
  padding-top: 6px;
}
.pf-password-body .pf-form {
  gap: 7px;
}
.pf-password-body .pf-label:not(:first-child) {
  margin-top: 6px;
}
.pf-password-body .pf-save {
  margin-top: 12px;
}
.pf-input {
  height: 46px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--pf-field-line);
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--pf-ink);
  background: var(--surface);
}
.pf-input:focus {
  border-color: var(--pf-brand);
}
.pf-input.has-error {
  border-color: var(--pf-danger);
}

/* Privacy Policy / Terms of Service */
.pf-link-row {
  margin-top: 12px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--pf-ink);
  background: var(--surface);
  border: 1px solid var(--pf-line);
}
.pf-password + .pf-link-row {
  margin-top: 20px;
}
.pf-link-row > span:nth-child(2) {
  flex: 1;
  text-align: left;
}
.pf-link-chevron {
  font-size: 13px;
  color: var(--pf-muted);
}
.pf-close-account {
  margin-top: 70px;
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pf-danger);
  background: var(--surface);
  border: 1px solid var(--pf-danger-line);
}

/* Password sheet (closing the account) */
.pf-sheet {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  color: var(--pf-ink);
}
.pf-sheet-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--pf-brand);
  background: var(--pf-soft);
}
.pf-sheet-icon.is-danger {
  color: var(--pf-danger);
}
.pf-sheet-title {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 600;
}
.pf-sheet-message {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pf-muted);
}
.pf-sheet .pf-input {
  margin-top: 6px;
  text-align: left;
}
.pf-sheet-error {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-danger);
}
.pf-sheet .pf-save {
  margin: 0;
}
.pf-sheet-cancel {
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pf-muted);
}
