/* ============================================================
   My Profile — photo upload page
   Reuses vars, fonts, and .page-top/.back-link/.btn from style.css
   ============================================================ */

.pf-panel{
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 24px 96px;
}

.pf-card{
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 36px -26px rgba(0,0,0,0.6);
  animation: fadeInUp .5s ease both;
}

.pf-avatar-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pf-avatar{
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #4a4a52, #232327);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "slight-chance", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

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

.pf-upload-btn{
  cursor: pointer;
}

.pf-name{
  font-family: "slight-chance", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 6px;
}

.pf-hint{
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.pf-status{
  font-size: 0.82rem;
  min-height: 1.2em;
  margin: 0;
}

.pf-status.is-success{ color: #3ecf8e; }
.pf-status.is-error{ color: var(--red-glow); }

.pf-password-card,
.pf-name-card{
  margin-top: 20px;
  text-align: left;
}

.pf-name-card{
  border-color: var(--red);
}

.pf-section-title{
  font-family: "slight-chance", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}

.pf-password-card .pf-hint{
  margin: 0 0 16px;
}

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

.pf-input{
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.pf-input:focus{
  outline: none;
  border-color: var(--red);
}

.pf-btn-primary{
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  align-self: flex-start;
}

.pf-btn-primary:hover{
  background: var(--red-glow);
  border-color: var(--red-glow);
  transform: translateY(-2px);
}

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

.pf-password-card .pf-status{
  margin-top: 6px;
}
