/* page-profile — dựng theo ceoacc client/profile (đo getComputedStyle 13/10/2026).
   Giá trị px là CSS px trước zoom .86 của body. Mọi luật gói trong #page-profile. */
#page-profile {
  --pf-label: #213446;
  --pf-box: #f9fbfe;
  --pf-heading-font: "Plus Jakarta Sans", sans-serif;
}
/* Khoảng cách ceoacc viết bằng rem giữ đơn vị rem: base.css hạ cỡ gốc html xuống 15.5px khi ≤767.98px như ceoacc. */
.cg-dark #page-profile {
  --pf-label: var(--cg-text);
  --pf-box: var(--cg-soft);
}

/* Lưới Bootstrap: cột 15px hai bên, hàng -15px */
#page-profile .pf-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
#page-profile .pf-col-side,
#page-profile .pf-col-main { position: relative; width: 100%; padding: 0 15px; min-width: 0; }
@media (min-width: 992px) {
  #page-profile .pf-col-side { flex: 0 0 33.333333%; max-width: 33.333333%; }
  #page-profile .pf-col-main { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

/* Thẻ kính chung của ceoacc */
#page-profile .pf-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  margin-bottom: 30px;
  color: var(--cg-text);
  background: linear-gradient(155deg, var(--cg-surface) 65%, var(--cg-soft));
  border: 1px solid var(--cg-line);
  border-radius: 24px;
  box-shadow: var(--cg-shadow);
  font-size: 14px; line-height: 1.6;
}

/* Thẻ hồ sơ bên trái */
#page-profile .pf-p-card { padding: 20px; }
#page-profile .pf-profile-box { position: relative; padding-bottom: 250px; background: var(--pf-box); border-radius: 0 0 5px 5px; }
#page-profile .pf-profile-card {
  position: relative; overflow: hidden; padding: 37px 0; border-radius: 5px;
  background: linear-gradient(135deg, var(--cg-surface), var(--cg-blue-soft));
}
#page-profile .pf-profile-card::before {
  content: ""; position: absolute; right: -63px; top: -3px; width: 120px; height: 120px;
  border-radius: 5px; background: rgba(255,255,255,.2); transform: rotate(36deg);
}
#page-profile .pf-profile-card::after {
  content: ""; position: absolute; left: -62px; bottom: 9px; width: 126px; height: 125px;
  border-radius: 35px; background: #2771f9; transform: rotate(28deg);
}
#page-profile .pf-avatar { display: block; width: 100px; height: 100px; margin: 0 auto 1.25rem; border-radius: 5px; overflow: hidden; }
#page-profile .pf-name { margin: 0; text-align: center; color: var(--cg-text); font-family: var(--pf-heading-font); font-size: 31.248px; font-weight: 600; line-height: 1.2; }
#page-profile .pf-balance { margin: 0 0 2.5rem; text-align: center; color: var(--cg-text); font-size: 14px; line-height: 1.6; }
#page-profile .pf-pro-content {
  position: absolute; left: 20px; right: 20px; margin-top: -55px; padding: 20px;
  background: var(--cg-surface); color: var(--cg-text); border-radius: 5px;
  box-shadow: 0 2px 25px 0 rgba(45,69,95,.06);
}
#page-profile .pf-pro-item { display: flex; align-items: center; margin-bottom: 1.25rem; }
#page-profile .pf-p-icon {
  display: flex; align-items: center; justify-content: center; flex: 0 0 45px;
  width: 45px; height: 45px; margin-right: 1.25rem; border-radius: 14px;
  background: var(--cg-blue-soft); color: var(--cg-primary); font-size: 26px; line-height: 45px; text-align: center;
}
/* Biểu tượng thư và Voi mang lớp text-primary (#3378ff) như ceoacc; khiên 2FA ăn màu ô (#2465bd) */
#page-profile .pf-pro-item:nth-child(-n+2) .pf-p-icon > * { color: #3378ff; }
.cg-dark #page-profile .pf-pro-item:nth-child(-n+2) .pf-p-icon > * { color: var(--cg-primary); }
#page-profile .pf-pro-text { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
#page-profile .pf-social-wrap { display: flex; justify-content: center; }
#page-profile .pf-social-ic { display: inline-flex; padding: 5px; background: var(--pf-box); border-radius: 5px; }
#page-profile .pf-social-ic a {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 5px; border-radius: 5px;
  color: #3378ff; text-decoration: none;
}
/* 4 biểu tượng là SVG chép từ gốc (tô đen); đổi trắng khi rê */
#page-profile .pf-social-ic svg { position: relative; z-index: 1; display: block; width: 24px; height: 24px; }
#page-profile .pf-social-ic svg path { fill: #000; transition: fill .3s ease-in-out; }
.cg-dark #page-profile .pf-social-ic svg path { fill: var(--cg-text); }
/* Rê chuột: ô #3378ff trượt vào (nút 1, 3 từ trên xuống; 2, 4 từ dưới lên) như ceoacc.
   Khác gốc có chủ đích: biểu tượng nổi lên màu trắng, không bị ô xanh che mất. */
#page-profile .pf-social-ic a::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 0;
  border-radius: 5px; background: #3378ff; opacity: 0; transition: all .3s ease-in-out;
}
#page-profile .pf-social-ic a:nth-child(even)::before { top: auto; bottom: 0; }
#page-profile .pf-social-ic a:hover::before { height: 100%; opacity: 1; }
#page-profile .pf-social-ic a:hover svg path { fill: #fff; }

/* Ba ô số tiền */
#page-profile .pf-stats { display: flex; flex-wrap: wrap; margin: 0 -15px; }
#page-profile .pf-stat-col { display: flex; width: 100%; padding: 0 15px; }
@media (min-width: 576px) {
  #page-profile .pf-stat-col { flex: 0 0 33.333333%; max-width: 33.333333%; }
}
#page-profile .pf-stat { flex: 1; padding: 20px; text-align: center; }
#page-profile .pf-stat-value { margin: 1.25rem 0 .625rem; font-family: var(--pf-heading-font); font-size: 2.441rem; font-weight: 600; line-height: 1.2; }
#page-profile .pf-stat-label { margin: 0; color: var(--cg-text); font-family: var(--pf-heading-font); font-size: 1.563rem; font-weight: 600; line-height: 1.2; }
#page-profile .pf-c-primary { color: #3378ff; }
#page-profile .pf-c-success { color: #3cb72c; }
#page-profile .pf-c-warning { color: #db7e06; }

/* Thẻ thông tin cá nhân */
#page-profile .pf-card-header {
  display: flex; justify-content: space-between; padding: 16px 20px 0;
  background: var(--cg-surface); border-radius: 23px 23px 0 0;
}
#page-profile .pf-card-title { margin: 0; color: var(--cg-text); font-family: var(--pf-heading-font); font-size: 17px; font-weight: 700; line-height: 1.5; }
#page-profile .pf-card-body { flex: 1 1 auto; padding: 20px; }
#page-profile .pf-form-row { display: flex; flex-wrap: wrap; margin: 0 -15px 1rem; }
#page-profile .pf-label { flex: 0 0 100%; max-width: 100%; margin: 0; padding: calc(.625rem + 1px) 15px; color: var(--pf-label); font-size: 14px; font-weight: 500; line-height: 1.5; }
#page-profile .pf-field { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
@media (min-width: 992px) {
  #page-profile .pf-label { flex-basis: 33.333333%; max-width: 33.333333%; }
  #page-profile .pf-field { flex-basis: 66.666667%; max-width: 66.666667%; }
}
#page-profile .pf-input {
  display: block; width: 100%; height: 46px; padding: .625rem 1.25rem;
  color: var(--cg-text); background: var(--cg-surface);
  border: 1px solid var(--cg-line-strong); border-radius: 12px;
  font-family: inherit; font-size: 14px; line-height: 45px; /* như .form-control gốc */
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
#page-profile .pf-input::placeholder { color: var(--cg-muted); opacity: 1; }
#page-profile .pf-input:focus { outline: 0; border-color: var(--cg-primary); box-shadow: 0 0 0 2px var(--cg-field-ring); }
#page-profile .pf-input[readonly] { background: var(--cg-soft); color: var(--cg-muted); }
#page-profile .pf-card-footer {
  padding: 14px 20px;
  background: var(--cg-soft); border-radius: 0 0 23px 23px;
}
/* Nút: primary rê chuột KHÔNG đổi màu (luật ceo-glass), danger đậm hơn */
#page-profile .pf-btn {
  display: inline-block; padding: .625rem 1.25rem; border: 1px solid transparent; border-radius: 12px;
  color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 21px;
  text-align: center; vertical-align: middle; cursor: pointer; box-shadow: 0 4px 8px 0 rgba(255,255,255,.05);
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
/* Hai nút cách nhau đúng một khoảng trắng giữa hai thẻ inline-block (3.8px) như gốc, không thêm margin */
/* Vòng focus bàn phím lấy từ luật chung (base.css); nút chỉ bỏ bóng khi focus như ceoacc */
#page-profile .pf-btn:focus-visible { box-shadow: none; }
#page-profile .pf-btn:disabled { opacity: .65; cursor: default; }
#page-profile .pf-btn-primary,
#page-profile .pf-btn-primary:hover { background: #2465bd; border-color: #2465bd; color: #fff; }
#page-profile .pf-btn-danger { background: #f42b3d; border-color: #f42b3d; font-family: var(--pf-heading-font); }
#page-profile .pf-btn-danger:hover,
#page-profile .pf-btn-danger:focus { background: #ec0c20; border-color: #e00c1f; }
/* Nhấn giữ: primary xanh sáng, danger đỏ đậm, bỏ bóng (Bootstrap :active của gốc) */
#page-profile .pf-btn-primary:active { background: #0056ff; border-color: #0052f2; box-shadow: none; }
#page-profile .pf-btn-danger:active { background: #e00c1f; border-color: #d40b1d; box-shadow: none; }

/* Tên người dùng là h3 Bootstrap: cỡ chữ co theo khung khi ≤1200px */
@media (max-width: 1200px) {
  #page-profile .pf-name { font-size: calc(1.3203rem + .8436vw); }
}
/* ≤767px: ô mạng xã hội 28×28 như ceoacc (biểu tượng giữ 24px) */
@media (max-width: 767px) {
  #page-profile .pf-social-ic a { width: 28px; height: 28px; }
}

/* Khổ hẹp như ceoacc (≤600px) */
@media (max-width: 600px) {
  #page-profile .pf-card { border-radius: 20px; }
  #page-profile .pf-card-header { border-radius: 19px 19px 0 0; padding: 14px 16px 0; }
  #page-profile .pf-card-body,
  #page-profile .pf-stat { padding: 16px; }
  #page-profile .pf-card-footer { border-radius: 0 0 19px 19px; padding: 12px 16px; }
  #page-profile .pf-input { font-size: 16px; }
}
