:root {
  --chinh: #0b8f7f;
  --chinh-dam: #076b5f;
  --chinh-nhat: #e3f4f1;
  --vang: #ffb703;
  --hong: #e85d75;
  --nen: #f4f7f6;
  --the: #ffffff;
  --chu: #1d2b28;
  --phu: #5f6f6b;
  --vien: #dde6e3;
  --bong: 0 2px 10px rgba(16, 60, 52, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--nen); color: var(--chu); font-size: 16px; line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 150px; }
.dang-tai { padding: 40px; text-align: center; color: var(--phu); }
a { color: var(--chinh-dam); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.nho { font-size: 13px; color: var(--phu); }

/* đầu trang */
.dau {
  background: linear-gradient(135deg, var(--chinh) 0%, #14a88f 100%);
  color: #fff; padding: 20px 16px 56px; border-radius: 0 0 24px 24px;
}
.dau .ten { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.dau .ten .logo { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.dau .khau-hieu { opacity: .92; margin-top: 4px; font-size: 14px; }
.tren-dau { margin: -40px 16px 0; }

.the { background: var(--the); border-radius: 16px; box-shadow: var(--bong); padding: 16px; margin: 0 16px 14px; }
.tren-dau.the { margin: -40px 16px 14px; }

.bang-ron { background: #fff4e0; border: 1px solid #ffd99a; border-radius: 14px; padding: 12px 14px; margin: 0 16px 14px; font-size: 14px; }
.bang-ron b { color: #b35c00; }
.dai-thu { background: #fff3cd; color: #7a5b00; font-size: 12px; text-align: center; padding: 6px 12px; }

/* lưới dịch vụ */
.luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.o-dv {
  background: var(--the); border: 1px solid var(--vien); border-radius: 14px; padding: 12px 6px 10px;
  text-align: center; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column;
  align-items: center; gap: 4px; min-height: 112px;
}
.o-dv:active { transform: scale(.97); }
.o-dv .bt { font-size: 30px; line-height: 1; }
.o-dv .t { font-size: 13px; font-weight: 600; line-height: 1.25; }
.o-dv .g { font-size: 11.5px; color: var(--chinh-dam); }

.tieu-de-muc { margin: 18px 16px 10px; font-weight: 700; font-size: 17px; }
.diem { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--vien); }
.diem:last-child { border-bottom: 0; }
.diem .bt { font-size: 22px; width: 32px; flex: none; text-align: center; }

/* đặt lịch */
.thanh-buoc { display: flex; gap: 6px; padding: 14px 16px 6px; }
.thanh-buoc i { flex: 1; height: 5px; border-radius: 3px; background: var(--vien); }
.thanh-buoc i.xong { background: var(--chinh); }
.dau-nho { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.dau-nho button { border: 0; background: var(--the); box-shadow: var(--bong); width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.dau-nho .tt { font-weight: 700; font-size: 17px; }

.nhan { display: block; font-weight: 600; margin: 14px 0 8px; font-size: 15px; }
.nhan:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--vien); background: var(--the); border-radius: 999px; padding: 8px 14px;
  font: inherit; font-size: 14px; cursor: pointer; color: var(--chu);
}
.chip.chon { border-color: var(--chinh); background: var(--chinh-nhat); color: var(--chinh-dam); font-weight: 700; }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=date], textarea, select {
  width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--vien); border-radius: 12px;
  background: #fff; color: var(--chu);
}
input::placeholder { text-transform: none; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--chinh); }
textarea { min-height: 84px; resize: vertical; }
.dong-them { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--vien); }
.dong-them:last-child { border-bottom: 0; }
.dem { display: flex; align-items: center; gap: 8px; flex: none; }
.dem button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--chinh); background: #fff; color: var(--chinh); font-size: 18px; cursor: pointer; line-height: 1; }
.dem b { min-width: 18px; text-align: center; }
.goi-y { background: var(--chinh-nhat); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-top: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--chinh); }

.anh-luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.anh-o { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--nen); }
.anh-o img { width: 100%; height: 100%; object-fit: cover; }
.anh-o button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.them-anh { aspect-ratio: 1; border: 2px dashed var(--chinh); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--chinh-dam); font-size: 13px; cursor: pointer; background: #fff; }
.them-anh span { font-size: 26px; }

.tom-tat td { padding: 6px 0; vertical-align: top; font-size: 14px; }
.tom-tat td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.tom-tat td[colspan] { text-align: left; white-space: normal; padding-left: 0; }
.tom-tat { width: 100%; border-collapse: collapse; }
.tong { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; border-top: 1px solid var(--vien); padding-top: 10px; margin-top: 6px; }
.tong span:last-child { color: var(--chinh-dam); }

/* thanh giá dính đáy */
.thanh-gia {
  position: fixed; left: 0; right: 0; bottom: 64px; z-index: 5;
  background: #fff; border-top: 1px solid var(--vien); box-shadow: 0 -4px 14px rgba(0,0,0,.06);
}
.thanh-gia .trong { max-width: 560px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.thanh-gia .so { flex: 1; }
.thanh-gia .so small { display: block; color: var(--phu); font-size: 12px; }
.thanh-gia .so b { font-size: 19px; color: var(--chinh-dam); }
.nut {
  border: 0; border-radius: 12px; background: var(--chinh); color: #fff; font: inherit; font-weight: 700;
  padding: 12px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.nut:disabled { opacity: .55; }
.nut.phu { background: var(--chinh-nhat); color: var(--chinh-dam); }
.nut.zalo { background: #0068ff; }
.nut.rong { width: 100%; }
.hang-nut { display: flex; gap: 10px; }
.hang-nut .nut { flex: 1; }
.loi { background: #fdecef; color: #a3253b; border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: 14px; }

/* thanh điều hướng dưới */
.thanh-duoi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; border-top: 1px solid var(--vien);
  display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom);
}
.thanh-duoi a { flex: 1; max-width: 140px; text-align: center; padding: 8px 0 10px; font-size: 12px; color: var(--phu); text-decoration: none; }
.thanh-duoi a span { display: block; font-size: 20px; line-height: 1.3; }
.thanh-duoi a.dang { color: var(--chinh-dam); font-weight: 700; }

/* lịch của tôi */
.lich { border-left: 4px solid var(--chinh); }
.nhan-tt { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--chinh-nhat); color: var(--chinh-dam); }
.nhan-tt.moi { background: #fff4e0; color: #b35c00; }
.nhan-tt.huy { background: #eee; color: #777; }
.sao { display: flex; gap: 4px; font-size: 30px; }
.sao button { border: 0; background: none; cursor: pointer; padding: 0; color: #ccc; font-size: 30px; }
.sao button.bat { color: var(--vang); }

.bang-gia { width: 100%; border-collapse: collapse; font-size: 14px; }
.bang-gia td { padding: 9px 0; border-bottom: 1px dashed var(--vien); vertical-align: top; }
.bang-gia td:last-child { text-align: right; font-weight: 700; color: var(--chinh-dam); white-space: nowrap; padding-left: 10px; }
.ma-lich { font-size: 32px; font-weight: 800; letter-spacing: 3px; color: var(--chinh-dam); text-align: center; margin: 8px 0; }
.giua { text-align: center; }

/* ảnh trước – đang làm – sau */
.ts-luoi { display: grid; gap: 8px; }
.ts-luoi.ts-3 { grid-template-columns: repeat(3, 1fr); }
.ts-luoi.ts-2 { grid-template-columns: repeat(2, 1fr); }
.ts-cot { position: relative; }
.ts-anh { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--nen); cursor: zoom-in; }
.ts-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-nhan { position: absolute; left: 6px; bottom: 6px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 3px 8px; border-radius: 999px; }
.xem-anh { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; z-index: 20; cursor: zoom-out; }
.xem-anh img { max-width: 100%; max-height: 100%; }

/* đánh giá của khách */
.dg-dau { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dg-sao { color: var(--vang); letter-spacing: 1px; font-size: 18px; }
.dg-chu { margin: 10px 0 0; font-size: 15px; }
.dg-anh { display: block; width: 100%; border: 0; padding: 0; margin-top: 10px; background: none; cursor: zoom-in; }
.dg-anh img { width: 100%; border-radius: 12px; display: block; }
.dg-video { position: relative; aspect-ratio: 16 / 9; margin-top: 10px; border-radius: 12px; overflow: hidden; background: #000; }
.dg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dg-vid { width: 100%; border-radius: 12px; margin-top: 10px; background: #000; }
.dg-tong { display: flex; align-items: center; gap: 14px; }
.dg-diem { font-size: 44px; font-weight: 800; color: var(--chinh-dam); line-height: 1; }

/* tuyển công nhân */
.dau-tuyen { background: linear-gradient(135deg, #e07a1f 0%, #f0a030 100%); }
.td-cong { text-align: center; padding: 4px 0; }
.td-so { font-size: 38px; font-weight: 800; color: #b35c00; line-height: 1.1; }
.td-ds { margin: 0; padding-left: 20px; }
.td-ds li { margin: 6px 0; }
.td-so { list-style: decimal; }
ol.td-ds { font-size: 15px; }
ol.td-ds.td-so { font-size: 15px; font-weight: 400; color: inherit; }

.bia-nha { position: relative; margin: 0 16px 14px; border-radius: 16px; overflow: hidden; box-shadow: var(--bong); }
.bia-nha img { display: block; width: 100%; height: 190px; object-fit: cover; }
.bia-chu { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 40, 34, .72)); }
.bia-chu b { display: block; font-size: 19px; }
.bia-chu span { font-size: 13px; opacity: .95; }
.mh-luoi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mh-luoi img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; display: block; }
.bia-nha { margin-top: -40px; position: relative; z-index: 1; }
.bia-nha + .tren-dau { margin-top: 0; }
