/* Own profile: preview, photos, form fields, my point, search settings, badges, referral, switches. */
.pf-head {
  padding: 16px var(--gap) 4px;
}

.pf-lead {
  margin: 4px var(--gap) 8px;
  color: var(--hint);
  font-size: 14px;
}

.pf-preview {
  margin: 0 var(--gap) var(--gap);
  padding: 10px;
  border-radius: var(--radius);
  background: var(--section);
}

.pf-preview .pc-photo {
  max-height: 46vh;
}

.pf-section h3 {
  margin-bottom: 10px;
}

.pf-section > .hint {
  margin: 0 0 10px;
}

.pf-segments {
  margin: 0;
}

.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-textarea {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-readonly {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg2);
}

.pf-age {
  font-weight: 600;
}

.field-error > label,
.field-error-text {
  color: var(--danger);
}

.field-error .input {
  border-color: var(--danger);
  outline-color: var(--danger);
}

.field-error .pf-chips,
.field-error .segments {
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--danger);
}

.field-error-text {
  font-size: 13px;
}

/* Photos */
.pf-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.pf-photo {
  position: relative;
}

.pf-photo-main {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.pf-photo-actions {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 6px;
}

.pf-photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
}

.pf-photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 3 / 4;
  border: 2px dashed var(--separator);
  border-radius: 12px;
  background: var(--bg2);
  color: var(--hint);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.pf-photo-plus {
  font-size: 24px;
}

/* My point */
.pf-city {
  margin: 0 0 8px;
  font-weight: 600;
}

.pf-map {
  min-height: 120px;
  margin-bottom: 8px;
}

/* The picker (js/map/picker.js) brings its own hint and button; only the map height is set here. */
.pf-map .picker-frame {
  height: 220px;
}

.pf-pending {
  margin-bottom: 8px;
}

.pf-pending[hidden] {
  display: none;
}

.pf-pending .btn-primary {
  flex: 1;
}

.pf-city-search {
  margin-top: 8px;
}

.pf-cities {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.pf-city-item {
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid var(--separator);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pf-left {
  margin: 8px 0 0;
}

/* Search settings */
.pf-age-range span {
  color: var(--hint);
}

.pf-age-select {
  flex: 1;
  width: auto;
}

.pf-radius-hint {
  margin: 6px 0 0;
}

/* Badges */
.pf-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.pf-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--bg2);
  text-align: center;
}

.pf-badge-emoji {
  font-size: 30px;
  line-height: 1.2;
}

.pf-badge-locked .pf-badge-emoji {
  filter: grayscale(1);
  opacity: 0.45;
}

.pf-badge-title {
  font-size: 14px;
  font-weight: 600;
}

.pf-badge-desc,
.pf-badge-ok {
  color: var(--hint);
  font-size: 12px;
}

.pf-progress-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin-top: 6px;
}

.pf-progress {
  width: 80%;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(120, 120, 128, 0.25);
}

.pf-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.pf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

/* Referral */
.pf-link {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg2);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

.pf-link-actions {
  margin: 8px 0 12px;
}

.pf-link-actions .btn {
  flex: 1;
}

.pf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: var(--bg2);
  text-align: center;
}

.pf-stat-value {
  font-size: 18px;
  font-weight: 700;
}

/* Pause switch and deletion */
.pf-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  cursor: pointer;
}

.pf-switch-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.pf-switch-title {
  font-weight: 600;
}

.pf-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pf-switch-ui {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: rgba(120, 120, 128, 0.32);
  transition: background 0.2s ease;
}

.pf-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.pf-switch-input:checked + .pf-switch-ui {
  background: var(--accent);
}

.pf-switch-input:checked + .pf-switch-ui::after {
  transform: translateX(20px);
}

.pf-switch-input:disabled + .pf-switch-ui {
  opacity: 0.5;
}

.pf-switch-input:focus-visible + .pf-switch-ui {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
