/* ═══════ TÀI KHOẢN KHÁCH — fotarivn.com · Thợ Cả 04/12/2026 ═══════
   Mọi lớp đều mang tiền tố `ftr-` để không đụng một dòng CSS nào của NINA.
   ⚠ Hotline của web đang ở z-index 999999 (ghi nhớ 02/12), nên lớp phủ phải
   cao hơn số đó. */

.ftr-tk { display: flex; align-items: center; gap: 6px; flex: none; }

/* Cụm chữ khi chưa đăng nhập */
.ftr-tk-chua { font-size: 13px; font-weight: 700; color: #1b2a6b;
  white-space: nowrap; cursor: pointer; line-height: 1.2; }
.ftr-tk-chua b { font-weight: 700; }
.ftr-tk-chua span { color: #8a97a8; font-weight: 400; margin: 0 5px; }
.ftr-tk-chua b:hover { color: #e31e24; }

/* Cụm ảnh + tên khi đã đăng nhập */
.ftr-tk-roi { display: flex; align-items: center; gap: 8px; cursor: pointer;
  position: relative; }
.ftr-tk-tron { width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: #1b2a6b; color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 12.5px;
  overflow: hidden; }
.ftr-tk-tron img { width: 100%; height: 100%; object-fit: cover; }
.ftr-tk-ten { font-size: 13px; font-weight: 700; color: #1b2a6b;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.ftr-tk-mui { font-size: 10px; color: #8a97a8; }

/* Menu nhỏ dưới tên */
.ftr-menu { position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: #fff; border: 1px solid #e2e7ee; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20,40,70,.16); min-width: 196px; padding: 6px;
  display: none; z-index: 1000030; }
.ftr-menu.ftr-hien { display: block; }
.ftr-menu a { display: block; padding: 9px 11px; font-size: 13px;
  color: #17365d; border-radius: 7px; text-decoration: none; }
.ftr-menu a:hover { background: #f1f5fa; color: #e31e24; }
.ftr-menu .ftr-vach { height: 1px; background: #eef2f6; margin: 5px 2px; }

/* ───────── Lớp phủ và hộp ───────── */
.ftr-phu { position: fixed; inset: 0; background: rgba(12,22,40,.55);
  display: none; align-items: center; justify-content: center; padding: 16px;
  z-index: 1000020; overflow-y: auto; }
.ftr-phu.ftr-hien { display: flex; }
.ftr-hop { background: #fff; border-radius: 14px; width: 100%; max-width: 380px;
  padding: 20px; box-shadow: 0 18px 48px rgba(7,15,24,.3); position: relative;
  margin: auto; }
.ftr-dong { position: absolute; top: 10px; right: 12px; border: 0;
  background: transparent; font-size: 22px; line-height: 1; color: #9aa8b8;
  cursor: pointer; padding: 4px 6px; }
.ftr-dong:hover { color: #e31e24; }
.ftr-hop h4 { margin: 0 0 3px; font-size: 19px; color: #1b2a6b;
  font-weight: 800; }
.ftr-hop .ftr-phu-chu { font-size: 12px; color: #8a97a8; margin: 0 0 14px; }

.ftr-chon { display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 14px; }
.ftr-loai { border: 1.5px solid #e2e7ee; border-radius: 10px; padding: 9px 10px;
  background: #fbfdff; cursor: pointer; }
.ftr-loai.ftr-chon-roi { border-color: #e31e24; background: #fff5f5;
  box-shadow: 0 0 0 2px rgba(227,30,36,.12); }
.ftr-loai i { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid #b9c6d6;
  display: inline-block; vertical-align: -2px; margin-right: 5px; background: #fff; }
.ftr-loai.ftr-chon-roi i { border: 4.5px solid #e31e24; }
.ftr-loai b { font-size: 12.5px; color: #17365d; }
.ftr-loai span { display: block; font-size: 10.5px; color: #8a97a8;
  line-height: 1.4; margin-top: 3px; font-weight: 400; }

.ftr-nhan { font-size: 11px; color: #8a97a8; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px;
  display: block; }
.ftr-nhan em { color: #e31e24; font-style: normal; }
.ftr-hop input[type=text], .ftr-hop input[type=tel], .ftr-hop input[type=email],
.ftr-hop input[type=password], .ftr-hop textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #e2e7ee;
  border-radius: 8px; padding: 9px 11px; font-size: 14px; color: #17365d;
  background: #fff; margin-bottom: 10px; font-family: inherit; }
.ftr-hop textarea { min-height: 62px; resize: vertical; }
.ftr-hop input:focus, .ftr-hop textarea:focus { outline: 0;
  border-color: #1b2a6b; box-shadow: 0 0 0 2px rgba(27,42,107,.1); }

.ftr-nut { width: 100%; border: 0; border-radius: 8px; background: #e31e24;
  color: #fff; font-weight: 800; font-size: 14.5px; padding: 11px;
  cursor: pointer; font-family: inherit; }
.ftr-nut:hover { background: #c4181d; }
.ftr-nut[disabled] { opacity: .6; cursor: default; }
.ftr-doi { text-align: center; font-size: 12.5px; color: #8a97a8;
  margin-top: 11px; }
.ftr-doi b { color: #1b2a6b; cursor: pointer; }
.ftr-doi b:hover { color: #e31e24; }
.ftr-loi { background: #fdecea; border: 1px solid #f5c6c3; color: #b3261e;
  border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin-bottom: 11px;
  display: none; line-height: 1.5; }
.ftr-loi.ftr-hien { display: block; }
.ftr-ghi { font-size: 11.5px; color: #8a97a8; line-height: 1.5; margin-top: 10px; }

/* ───────── Khối tự điền ở trang giỏ hàng ───────── */
.ftr-tu-dien { background: #eef7f0; border: 1px solid #bfe0cb; color: #1c6b3a;
  border-radius: 8px; padding: 8px 11px; font-size: 12.5px; line-height: 1.5;
  margin-bottom: 12px; }
.ftr-tu-dien b { font-weight: 700; }
.ftr-luu-dc { display: flex; gap: 7px; align-items: flex-start;
  font-size: 12.5px; color: #5b6b82; margin: 4px 0 12px; cursor: pointer; }
.ftr-luu-dc input { margin: 2px 0 0; flex: none; }

/* ───────── Điện thoại ───────── */
@media (max-width: 991.98px) {
  .ftr-tk-ten { max-width: 96px; }
  .ftr-tk-chua { font-size: 12px; }
  .ftr-hop { max-width: 100%; padding: 18px 16px; }
}


/* ═══════════ 04/12/2026 chiều — CỤM LÊN HÀNG TRÊN CÙNG, KIỂU SHOPEE ═══════════
   Nhân viên chốt: nút lên hàng trên · chữ TO và IN ĐẬM · cố định cùng header ·
   KHÔNG thu gọn khi cuộn (họ xem bản vẽ thu gọn và bảo "nhìn không đẹp lắm").
   Làm cả giao diện điện thoại. */

/* ───── Máy tính: cụm ở hàng trên cùng ───── */
.header_top_right { display: flex; align-items: center; gap: 16px; }
#ftr-tk { margin-left: 4px; }

.ftr-tk-chua { display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 800; color: var(--ftr-lam, #1b2a6b);
  white-space: nowrap; cursor: pointer; line-height: 1.2; }
.ftr-tk-chua b { font-weight: 800; }
.ftr-tk-chua .ftr-dk { color: #e31e24; }          /* "Đăng ký" đỏ cho bắt mắt */
.ftr-tk-chua b:hover { opacity: .78; }
.ftr-vach-doc { width: 1px; height: 15px; background: #c9d2de;
  display: inline-block; font-style: normal; }
.ftr-tk-ten { font-size: 14px; font-weight: 800; max-width: 170px; }
.ftr-tk-tron { width: 30px; height: 30px; font-size: 12px; }

/* ⚠ Ô tìm kiếm: TRẢ LẠI bề rộng cũ. Trưa nay tôi thu nó còn 330px để lấy chỗ
   cho cụm ở hàng giữa; nay cụm đã lên hàng trên nên không còn lý do thu. */
@media (min-width: 992px) {
  .menu_right_1 .search { max-width: none; }
}

/* ───── Dính cả khối đầu trang ─────
   `body.ftr-dinh` do `ftr-taikhoan.js` gắn khi web tự cho `.menu` lớp `fixed`.
   Biến `--ftr-cao-tren` là chiều cao THẬT của hàng trên, do phần chạy đo. */
/* ⚠ CHỈ MÁY TÍNH. Ở điện thoại `header.header` là khối LOGO cao 118px; cho nó
   dính thì nó đè mất thanh xanh (`section.menu-res` z-index 501) vốn đã tự dính
   sẵn và đang chứa nút Đăng nhập — màn hình trông như mất nút (mắc 04/12).
   🪤 Đừng tin `offsetParent === null` là "đã ẩn": phần tử `position:fixed` luôn
   trả null. Phải đo bằng `elementFromPoint` xem ai thật sự nằm trên. */
@media (min-width: 992px) {
  body.ftr-dinh header.header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000012;               /* trên `.menu` (999), dưới lớp phủ hộp */
    background: #fff;
    box-shadow: 0 1px 0 rgba(20,40,70,.06);
  }
  body.ftr-dinh .menu.fixed { top: var(--ftr-cao-tren, 53px); }
  /* Bù đúng phần vừa cho dính thêm, để nội dung không bị hàng trên che mất. */
  body.ftr-dinh { padding-top: var(--ftr-cao-tren, 53px); }
}

/* ───── Điện thoại: cụm trong thanh xanh ───── */
#ftr-tk-dt { display: none; }       /* máy tính không dùng chỗ này */

.ftr-dt-nut { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1px; color: #fff; font-size: 10px;
  font-weight: 800; line-height: 1.15; text-decoration: none;
  position: relative; flex: none; min-width: 44px; cursor: pointer; }
.ftr-dt-nut:hover, .ftr-dt-nut:focus { color: #fff; }
.ftr-dt-hinh { font-size: 17px; font-style: normal; line-height: 1; }
.ftr-dt-roi .ftr-tk-tron { width: 24px; height: 24px; font-size: 10px;
  background: #fff; color: #1b2a6b; }
.ftr-dt-nut .ftr-menu { top: calc(100% + 6px); right: 0; }

@media (max-width: 991.98px) {
  #ftr-tk { display: none; }        /* hàng trên không hiện ở điện thoại */
  #ftr-tk-dt { display: flex; align-items: center; }
  .menu-bar-res { gap: 8px; }
}


/* ═══════════ TRANG "HỒ SƠ CỦA TÔI" — 04/12/2026 chiều ═══════════
   Trang riêng ở `/ftr-ho-so`. Dùng lại đúng các lớp ô nhập và nút của hộp
   đăng ký để hai nơi nhìn như một, chỉ thêm phần khung và thẻ. */

.ftr-hs-trang h1 { font-size: 26px; color: #1b2a6b; font-weight: 800; }

/* Chưa đăng nhập */
.ftr-hs-moi { max-width: 440px; margin: 40px auto 60px; text-align: center; }
.ftr-hs-moi p { color: #5b6b82; font-size: 14px; margin: 10px 0 20px; }
.ftr-hs-hai-nut { display: flex; gap: 10px; justify-content: center; }
.ftr-nut-hep { width: auto; min-width: 140px; }
.ftr-nut-vien { background: #fff; color: #1b2a6b; border: 1.5px solid #c9d2de; }
.ftr-nut-vien:hover { background: #f1f5fa; color: #e31e24; border-color: #e31e24; }

/* Khung hai cột; điện thoại tự xuống một cột. */
.ftr-hs-luoi { display: grid; grid-template-columns: 290px 1fr; gap: 16px;
  align-items: start; margin-top: 22px; }
.ftr-hs-cot { display: flex; flex-direction: column; gap: 16px; }
.ftr-hs-the { background: #fff; border: 1px solid #e2e7ee; border-radius: 12px;
  padding: 18px; box-shadow: 0 2px 10px rgba(20,40,70,.04); }
.ftr-hs-the h4 { margin: 0 0 14px; font-size: 16px; font-weight: 800;
  color: #1b2a6b; }

/* Cột ảnh đại diện */
.ftr-hs-anh { text-align: center; }
.ftr-hs-tron { width: 108px; height: 108px; border-radius: 50%; margin: 2px auto 12px;
  background: #1b2a6b; color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 36px; overflow: hidden; }
.ftr-hs-tron img { width: 100%; height: 100%; object-fit: cover; }
.ftr-hs-ten { font-size: 17px; font-weight: 800; color: #17365d; }
.ftr-hs-loai { display: inline-block; margin: 7px 0 15px; padding: 3px 11px;
  border-radius: 999px; background: #eef2f9; color: #5b6b82;
  font-size: 11.5px; font-weight: 700; }
.ftr-hs-loai-dl { background: #fff1f1; color: #e31e24; }
.ftr-hs-chon-anh { display: block; text-align: center; cursor: pointer;
  padding: 10px; }
.ftr-hs-anh .ftr-ghi { text-align: center; }
.ftr-hs-thoat { margin-top: 16px; border: 0; background: transparent;
  color: #8a97a8; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; padding: 6px; }
.ftr-hs-thoat:hover { color: #e31e24; }

/* Dòng báo kết quả trong từng thẻ */
.ftr-bao { display: none; border-radius: 8px; padding: 8px 10px; font-size: 12.5px;
  margin-bottom: 12px; line-height: 1.5;
  background: #eef7f0; border: 1px solid #bfe0cb; color: #1c6b3a; }
.ftr-bao.ftr-hien { display: block; }
.ftr-bao-hong { background: #fdecea; border-color: #f5c6c3; color: #b3261e; }

/* Ô nhập của trang dùng chung kiểu với hộp đăng ký. */
.ftr-hs-the input[type=text], .ftr-hs-the input[type=tel],
.ftr-hs-the input[type=email], .ftr-hs-the input[type=password] {
  width: 100%; box-sizing: border-box; border: 1px solid #e2e7ee;
  border-radius: 8px; padding: 9px 11px; font-size: 14px; color: #17365d;
  background: #fff; margin-bottom: 10px; font-family: inherit; }
.ftr-hs-the input:focus { outline: 0; border-color: #1b2a6b;
  box-shadow: 0 0 0 2px rgba(27,42,107,.1); }
.ftr-hs-the .ftr-nut { margin-top: 6px; }

@media (max-width: 767.98px) {
  .ftr-hs-luoi { grid-template-columns: 1fr; }
  .ftr-hs-trang h1 { font-size: 21px; }
}


/* ═══════ NÚT ẨN / HIỆN MẬT KHẨU — 04/12/2026 (nhân viên yêu cầu) ═══════
   Phần chạy tự bọc mỗi ô mật khẩu bằng `.ftr-mk-boc` rồi gài nút vào. Lề dưới
   10px vốn nằm ở ô nhập nay chuyển lên lớp bọc, không thì hai ô dính nhau. */

.ftr-mk-boc { position: relative; display: block; margin-bottom: 10px; }
.ftr-mk-boc > input { margin-bottom: 0 !important; padding-right: 42px !important; }

.ftr-mk-nut { position: absolute; top: 0; bottom: 0; right: 4px; width: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; padding: 0; cursor: pointer;
  color: #8a97a8; line-height: 0; }
.ftr-mk-nut:hover { color: #1b2a6b; }
.ftr-mk-nut:focus-visible { outline: 2px solid #1b2a6b; outline-offset: -2px;
  border-radius: 6px; }
