/* =========================================================================
   Khối giao diện minh hoạ — dựng lại theo app task.natavn.com.
   Dữ liệu trong các khối này là DỮ LIỆU MẪU, không phải khách hàng thật.
   ========================================================================= */

.mock { position: relative; font-size: 13px; line-height: 1.45; }
.mock * { box-sizing: border-box; }

/* Nền toả sáng sau khối minh hoạ */
.mock-glow { position: relative; }
.mock-glow::before {
  content: ""; position: absolute; inset: 6% -6% -8% -6%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-rgb), .18), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}
.mock-glow > * { position: relative; z-index: 1; }

/* ------------------------------------------------------ Khung trình duyệt */

.browser {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  background: var(--chip-bg);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.browser-dots i:nth-child(1) { background: #f0a7a7; }
.browser-dots i:nth-child(2) { background: #f3d08f; }
.browser-dots i:nth-child(3) { background: #a9ddb9; }
.browser-url {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  color: var(--ink-3); font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-url svg { width: 11px; height: 11px; flex: none; color: var(--green); }
.browser-body { background: var(--cream); }

/* --------------------------------------------------- Khung điện thoại */

.phone {
  width: 230px;
  background: #1b120f;
  border-radius: 30px;
  padding: 9px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(46,13,3,.12);
}
.phone-screen {
  background: var(--cream);
  border-radius: 23px;
  overflow: hidden;
}
.phone-notch {
  height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
}
.phone-notch i { width: 58px; height: 5px; border-radius: 3px; background: var(--border-strong); }

/* ------------------------------------------------ Trang tiến độ công khai */

.pub { padding: 16px; }
.pub-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.pub-logo {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #5b9bf0, #3d7fd6);
  color: #fff; font-size: 13px; font-weight: 900;
}
.pub-head b { display: block; color: var(--brand); font-size: 13.5px; font-weight: 800; }
.pub-head span { color: var(--ink-3); font-size: 11px; }
.pub-share {
  margin-left: auto; padding: 5px 11px;
  background: var(--chip-bg); border-radius: 999px;
  color: var(--ink-2); font-size: 10.5px; font-weight: 700;
}

.pub-title { margin-top: 16px; color: var(--brand); font-size: 16px; font-weight: 800; line-height: 1.3; }
.pub-sub { margin-top: 4px; color: var(--ink-3); font-size: 11.5px; }

.pub-prog { margin-top: 16px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
/* gap: trong khung điện thoại hẹp, dòng "11/16 hạng mục" xuống hàng và
   dính vào số phần trăm nếu chỉ có space-between. */
.pub-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pub-prog-top b { color: var(--brand); font-size: 24px; font-weight: 900; letter-spacing: -.02em; flex: none; }
.pub-prog-top span { color: var(--ink-3); font-size: 11px; text-align: right; }
.bar { height: 7px; margin-top: 10px; border-radius: 99px; background: var(--chip-bg); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #41c489, #2fae77); }
.bar.warn > i { background: linear-gradient(90deg, #f7b24a, #f0981f); }
.bar.multi { display: flex; }
.bar.multi > i { border-radius: 0; }

.pub-items { margin-top: 14px; display: grid; gap: 8px; }
.pub-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  background: #fff; border: 1px solid var(--border); border-radius: 11px;
}
.pub-item .tick {
  width: 19px; height: 19px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  font-size: 10px; font-weight: 900;
}
.pub-item.done .tick { background: color-mix(in srgb, var(--green) 16%, transparent); color: #1f7a52; }
.pub-item.doing .tick { background: color-mix(in srgb, var(--blue) 16%, transparent); color: #2b6cb8; }
.pub-item.wait .tick { background: var(--chip-bg); color: var(--ink-3); }
.pub-item b { flex: 1; min-width: 0; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.pub-item.done b { color: var(--ink-2); }
.pub-item em {
  font-style: normal; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.pub-item.done em { background: color-mix(in srgb, var(--green) 13%, transparent); color: #1f7a52; }
.pub-item.doing em { background: color-mix(in srgb, var(--blue) 13%, transparent); color: #2b6cb8; }
.pub-item.wait em { background: var(--chip-bg); color: var(--ink-3); }

.pub-files { margin-top: 14px; display: grid; gap: 7px; }
.pub-file {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  background: var(--brown-50); border: 1px solid var(--brown-100); border-radius: 10px;
  color: var(--ink); font-size: 12px; font-weight: 600;
}
.pub-file svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.pub-file span { margin-left: auto; color: var(--ink-3); font-size: 10.5px; font-weight: 600; }

.pub-feedback {
  margin-top: 14px; padding: 12px 13px;
  background: #fff; border: 1px dashed var(--border-strong); border-radius: 11px;
  color: var(--ink-3); font-size: 11.5px;
  display: flex; align-items: center; gap: 9px;
}
.pub-feedback svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* Nhãn "ẩn với khách" */
.hidden-tag {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--ink-2); font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.hidden-tag svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }

/* ---------------------------------------------------- Thẻ công nợ (tối) */

.debt-card {
  padding: 22px 24px;
  background: linear-gradient(145deg, #3a1c0e 0%, #27140d 60%, #1d110c 100%);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.debt-card .label {
  color: #c8a492; font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.debt-card .amount { margin-top: 8px; font-size: 38px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.debt-card .amount small { font-size: 22px; font-weight: 800; }
.debt-card .meta { margin-top: 7px; color: #a98a79; font-size: 12px; }

.debt-bar-head { display: flex; justify-content: space-between; margin-top: 20px; font-size: 11.5px; color: #c8a492; font-weight: 700; }
.debt-bar { height: 9px; margin-top: 8px; border-radius: 99px; background: rgba(255,255,255,.08); display: flex; overflow: hidden; }
.debt-bar i:first-child { background: linear-gradient(90deg, #41c489, #2fae77); }
.debt-bar i:last-child {
  background: repeating-linear-gradient(45deg, #f7b24a 0 6px, #e8a033 6px 12px);
}
.debt-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 11px; font-size: 11.5px; color: #c8a492; }
.debt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.debt-legend i { width: 8px; height: 8px; border-radius: 2px; }

.debt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.debt-tile {
  padding: 13px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
}
.debt-tile span { color: #c8a492; font-size: 11px; font-weight: 700; }
.debt-tile b { display: block; margin-top: 5px; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.debt-tile em { display: block; margin-top: 2px; font-style: normal; color: #8a6b5c; font-size: 10.5px; }
.debt-tile.danger b { color: #ff9b86; }

/* Danh sách mốc thu bên dưới */
.debt-rows { margin-top: 14px; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.debt-rows-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--divider);
}
.debt-rows-head b { color: var(--brand); font-size: 13.5px; font-weight: 800; }
.debt-rows-head span { color: var(--ink-3); font-size: 11.5px; }

.debt-row { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-left: 3px solid var(--red); }
.debt-row + .debt-row { border-top: 1px solid var(--divider); }
.debt-row.ok { border-left-color: var(--green); }
.debt-row .date { text-align: center; flex: none; width: 30px; }
.debt-row .date b { display: block; color: var(--brand); font-size: 16px; font-weight: 900; line-height: 1; }
.debt-row .date span { color: var(--ink-3); font-size: 10px; font-weight: 700; }
.debt-row .who { flex: 1; min-width: 0; }
.debt-row .who b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.debt-row .who span { color: var(--ink-3); font-size: 11px; }
.debt-row .sum { flex: none; text-align: right; }
.debt-row .sum b { display: block; color: var(--brand); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.debt-row .sum em {
  display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 999px;
  font-style: normal; font-size: 10px; font-weight: 800;
  background: color-mix(in srgb, var(--red) 13%, transparent); color: #c2344a;
}
.debt-row.ok .sum em { background: color-mix(in srgb, var(--green) 14%, transparent); color: #1f7a52; }

/* ----------------------------------------------------------- Chat Zalo */

.chat {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #0a7cff, #0068e1);
  color: #fff;
}
.chat-head .av {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.2);
  font-size: 13px; font-weight: 900;
}
.chat-head b { display: block; font-size: 13.5px; font-weight: 800; }
.chat-head span { font-size: 11px; opacity: .85; }

.chat-body { padding: 16px 15px; background: #eef3f8; display: grid; gap: 10px; }
.chat-day { text-align: center; color: #8697a8; font-size: 10.5px; font-weight: 700; }

.msg { max-width: 82%; padding: 10px 13px; border-radius: 15px; font-size: 12.5px; line-height: 1.5; }
.msg.out { margin-left: auto; background: #cfe6ff; color: #0b2b4d; border-bottom-right-radius: 5px; }
.msg.in  { background: #fff; color: var(--ink); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.msg b { font-weight: 800; }
.msg .tasks { margin: 7px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.msg .tasks li {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 8px 10px; background: var(--brown-50); border-radius: 9px;
  font-size: 11.5px;
}
.msg .tasks li i { font-style: normal; flex: none; }
.msg .tasks li.late { background: color-mix(in srgb, var(--red) 9%, #fff); color: #a8243a; font-weight: 600; }
.msg .time { display: block; margin-top: 5px; color: var(--ink-3); font-size: 10px; text-align: right; }
.msg.out .time { color: #5a87b8; }

.chat-input {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px; background: #fff; border-top: 1px solid var(--border);
  color: var(--ink-3); font-size: 12px;
}
.chat-input .box { flex: 1; padding: 8px 13px; background: var(--chip-bg); border-radius: 999px; }
.chat-input .send { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #0a7cff; color: #fff; flex: none; }
.chat-input .send svg { width: 14px; height: 14px; }

/* -------------------------------------------- "Cần xử lý ngay" chips */

.todo-card {
  padding: 20px 22px;
  background: linear-gradient(135deg, #fdeee7, #fbe7e9);
  border: 1px solid #f6dbd2;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.todo-card > b { display: block; color: var(--brand); font-size: 16px; font-weight: 800; }
.todo-card > span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 12px; }
.todo-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.todo-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 7px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(46,13,3,.07);
  color: var(--ink); font-size: 12.5px; font-weight: 700;
}
.todo-chip i {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  font-style: normal; font-size: 11px; font-weight: 900; color: #fff;
}
.todo-chip.red i    { background: var(--red); }
.todo-chip.orange i { background: var(--accent); }
.todo-chip.yellow i { background: var(--yellow); color: #2a2000; }
.todo-chip.purple i { background: var(--purple); }
.todo-chip.grey i   { background: var(--border-strong); color: var(--ink-3); }
.todo-chip.grey     { color: var(--ink-3); }

/* ----------------------------------------- Thẻ hồ sơ khách (Freelancer) */

.client-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.client-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--divider); }
.client-top .av {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(135deg, #9d7bf8, #7c57e8); color: #fff;
  font-size: 15px; font-weight: 900;
}
.client-top b { display: block; color: var(--brand); font-size: 15px; font-weight: 800; }
.client-top span { color: var(--ink-3); font-size: 12px; }
.client-top em {
  margin-left: auto; font-style: normal; padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--green) 13%, transparent); color: #1f7a52;
  font-size: 11px; font-weight: 800;
}

.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.client-stat { padding: 15px 18px; border-right: 1px solid var(--divider); }
.client-stat:last-child { border-right: 0; }
.client-stat span { display: block; color: var(--ink-3); font-size: 11px; font-weight: 700; }
.client-stat b { display: block; margin-top: 4px; color: var(--brand); font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.client-stat.debt b { color: #c2344a; }

.client-list { padding: 6px 0 10px; border-top: 1px solid var(--divider); }
.client-proj { display: flex; align-items: center; gap: 11px; padding: 11px 20px; }
.client-proj .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.client-proj .dot.green { background: var(--green); }
.client-proj .dot.blue  { background: var(--blue); }
.client-proj .dot.grey  { background: var(--border-strong); }
.client-proj b { flex: 1; min-width: 0; color: var(--ink); font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-proj .mini-bar { width: 64px; height: 5px; border-radius: 99px; background: var(--chip-bg); flex: none; overflow: hidden; }
.client-proj .mini-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.client-proj span { flex: none; width: 34px; text-align: right; color: var(--ink-3); font-size: 11px; font-weight: 700; }

/* ------------------------------------------- Bản tin sáng thứ Hai (DN) */

.brief {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.brief-head {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #2a1610, #1b120f);
  color: #fff;
}
.brief-head .ic-box {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--accent-grad); color: #fff;
}
.brief-head .ic-box svg { width: 18px; height: 18px; }
.brief-head b { display: block; font-size: 13.5px; font-weight: 800; }
.brief-head span { color: #a98a79; font-size: 11px; }

.brief-body { padding: 16px 18px; display: grid; gap: 9px; }
.brief-line {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  background: var(--cream); border: 1px solid var(--border); border-radius: 11px;
}
.brief-line .num {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center; border-radius: 9px;
  font-size: 13px; font-weight: 900;
}
.brief-line.red .num    { background: color-mix(in srgb, var(--red) 14%, transparent); color: #c2344a; }
.brief-line.yellow .num { background: color-mix(in srgb, var(--yellow) 20%, transparent); color: #9a6b10; }
.brief-line.blue .num   { background: color-mix(in srgb, var(--blue) 15%, transparent); color: #2b6cb8; }
.brief-line.purple .num { background: color-mix(in srgb, var(--purple) 15%, transparent); color: #6741c9; }
.brief-line b { flex: 1; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.brief-line span { color: var(--ink-3); font-size: 11px; white-space: nowrap; }

.brief-foot {
  padding: 12px 18px; border-top: 1px solid var(--divider);
  background: var(--brown-50);
  color: var(--ink-3); font-size: 11px;
  display: flex; align-items: center; gap: 8px;
}
.brief-foot svg { width: 13px; height: 13px; flex: none; }

/* -------------------------------------------- Trung tâm hỗ trợ (cam kết) */

.support-card {
  padding: 24px;
  background: linear-gradient(145deg, #2a1610, #1b120f);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.support-card .label { color: #c8a492; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.support-card h3 { margin-top: 10px; color: #fff; font-size: 22px; line-height: 1.25; }
.support-card > p { margin-top: 10px; color: #a98a79; font-size: 13px; }
.support-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.support-tile {
  padding: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
}
.support-tile .ic-box {
  width: 30px; height: 30px; margin-bottom: 10px;
  display: grid; place-items: center; border-radius: 9px;
  color: #fff;
}
.support-tile .ic-box svg { width: 16px; height: 16px; }
.support-tile.a .ic-box { background: linear-gradient(135deg, #f97943, #f26322); }
.support-tile.b .ic-box { background: linear-gradient(135deg, #5b9bf0, #3d7fd6); }
.support-tile.c .ic-box { background: linear-gradient(135deg, #41c489, #2fae77); }
.support-tile span { display: block; color: #c8a492; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.support-tile b { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 800; word-break: break-word; }
.support-tile em { display: block; margin-top: 3px; font-style: normal; color: #8a6b5c; font-size: 11px; }

.support-hours {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 8px 14px;
  background: rgba(255,255,255,.06); border-radius: 999px;
  color: #c8a492; font-size: 11.5px; font-weight: 700;
}
.support-hours svg { width: 13px; height: 13px; }

/* ------------------------------------------------- Bố cục xếp chồng Hero */

.hero-art { position: relative; }
.hero-art .browser { position: relative; z-index: 1; }
.hero-art .debt-float {
  position: absolute; right: -18px; bottom: -34px; z-index: 2;
  width: 290px;
}
.hero-art .hidden-tag { left: -16px; top: 54%; }

@media (max-width: 1040px) {
  .hero-art { max-width: 620px; }
  .hero-art .debt-float { position: static; width: auto; margin-top: 18px; }
  .hero-art .hidden-tag { display: none; }
}

/* Bố cục trang tiến độ: desktop + phone cạnh nhau */
.progress-art { position: relative; padding-bottom: 20px; }
.progress-art .phone {
  position: absolute; right: -10px; bottom: -22px; z-index: 2;
}
.progress-art .browser { max-width: 520px; }

@media (max-width: 1040px) {
  .progress-art .phone { position: static; margin: 18px auto 0; }
  .progress-art .browser { max-width: none; }
}

/* Lưới hai khối minh hoạ cho tab Nhóm */
.stack { display: grid; gap: 16px; }
