/* =========================================================
   profile.css — หน้าโปรไฟล์ + เปลี่ยนรหัสผ่าน
   ========================================================= */
.profile-sub { margin: -8px 0 16px; font-size: 17px; color: var(--c-blue); }

.profile-layout { display: grid; gap: 16px; padding-bottom: 32px; align-items: start; }
.profile-card {
  padding: 10px 16px 16px;
  background: var(--c-cream);
  border: 1px solid var(--c-blue);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

/* ---------- ข้อมูลบัญชี ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  width: 59px;
  height: 59px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-avatar);
  color: var(--c-blue-strong);
  font-size: 30px;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-name { font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--c-text); overflow-wrap: anywhere; }
.profile-balance { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--c-blue); }
.profile-balance img { width: 16px; height: 16px; opacity: 0.6; }

.joined {
  margin-top: 14px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--c-blue);
  border-radius: 10px;
  line-height: 1.5;
}
.joined span { display: block; font-size: 14px; color: var(--c-blue); }
.joined strong { font-size: 16px; font-weight: 400; color: var(--c-text); }

.btn-soft,
.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 45px;
  margin-top: 13px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
}
.btn-soft { background: var(--c-blue-pale); color: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12); transition: background 0.15s; }
.btn-soft:hover { background: var(--c-blue); }
.btn-logout { background: #fff; border: 1px solid var(--c-blue); color: var(--c-blue); font-size: 18px; }
.btn-logout svg { width: 20px; height: 20px; }

/* ---------- เปลี่ยนรหัสผ่าน ---------- */
.cp-title { font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--c-text); }
.cp-sub { margin-bottom: 16px; font-size: 13px; color: var(--c-blue); }
.profile-card .field-label { font-size: 14px; font-weight: 500; color: var(--c-text); margin-bottom: 8px; }

.pw-rules { margin-top: 6px; font-size: 10px; line-height: 1.7; color: var(--c-blue); }
.pw-rules ul { padding-left: 4px; }
.pw-rules li { display: flex; align-items: center; gap: 6px; transition: color 0.15s; }
.pw-rules li::before { content: '•'; width: 10px; text-align: center; }
.pw-rules li.is-ok { color: #2FA548; }
.pw-rules li.is-ok::before { content: '✓'; font-weight: 700; }
.pw-rules li.is-bad { color: var(--c-red); }

/* ข้อความสำเร็จสีเขียว */
.form-success {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid #BFE8C7;
  border-radius: 10px;
  background: #EEFAF0;
  color: #2E8B45;
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
}
