[hidden] {
  display: none !important;
}

body {
  background: #fff;
}

.pf-page {
  padding: 28px 20px 56px;
}

.pf-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.pf-state {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  color: var(--muted);
}

.pf-state-error h1 {
  margin: 0;
  font-size: 34px;
  color: var(--text);
}

.pf-state-error p {
  margin: 0;
}

.pf-spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--red);
  animation: pf-spin 0.8s linear infinite;
}

@keyframes pf-spin {
  to {
    transform: rotate(360deg);
  }
}

.pf-hero,
.pf-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.pf-hero {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 24px;
  margin-bottom: 18px;
}

.pf-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #f6f0ee;
  color: #6b4d4d;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 700;
}

.pf-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}

.pf-username {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.05;
}

.pf-fullname {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.pf-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pf-meta-item {
  background: #faf8f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 14px;
}

.pf-meta-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pf-meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.pf-hero-actions {
  display: flex;
  justify-content: flex-end;
}

.pf-btn {
  border: none;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 18px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.pf-btn:hover {
  transform: translateY(-1px);
}

.pf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pf-btn-primary {
  background: var(--red);
  color: #fff;
}

.pf-btn-secondary {
  background: #f3f3f3;
  color: var(--text);
}

.pf-notice {
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff8e6;
  color: #8a6d3b;
  font-size: 13px;
  line-height: 1.6;
}

.pf-section {
  padding: 22px;
  margin-bottom: 18px;
}

.pf-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pf-section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.pf-section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pf-bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  white-space: pre-wrap;
}

.pf-bio.is-empty {
  color: var(--muted);
  font-style: italic;
}

.pf-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.pf-field input,
.pf-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.pf-field textarea {
  resize: vertical;
  min-height: 140px;
}

.pf-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pf-empty {
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: #fcfcfc;
}

.pf-books-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pf-book-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pf-book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
}

.pf-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-book-title {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.pf-book-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .pf-hero {
    grid-template-columns: 1fr;
  }

  .pf-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pf-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pf-form-grid,
  .pf-meta-grid,
  .pf-books-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .pf-page {
    padding: 20px 14px 40px;
  }

  .pf-hero,
  .pf-section {
    padding: 16px;
    border-radius: 18px;
  }

  .pf-hero-actions,
  .pf-form-actions {
    flex-direction: column;
  }

  .pf-btn {
    width: 100%;
  }

  .pf-form-grid,
  .pf-meta-grid,
  .pf-books-grid {
    grid-template-columns: 1fr;
  }
}