#thp-tk {
  --red: #c62424; --red-d: #a51d1d; --navy: #00467f;
  --ink: #1c1f26; --muted: #6b7280; --line: #e7e8ec; --bg: #f4f5f7; --card: #fff;
  --green: #15803d; --amber: #b45309; --radius: 14px;
}
#thp-tk * { box-sizing: border-box; }
#thp-tk { margin: 0; font: 15px/1.5 "Be Vietnam Pro", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); }
#thp-tk a { color: var(--navy); }
#thp-tk h1 { font-size: 22px; margin: 4px 0 14px; }
#thp-tk h2 { font-size: 17px; margin: 0; }
#thp-tk h4 { margin: 14px 0 6px; font-size: 14px; }
#thp-tk .muted { color: var(--muted); }
#thp-tk .small { font-size: 13px; }
#thp-tk .mono { font-family: ui-monospace, Menlo, monospace; }
#thp-tk [hidden] { display: none !important; }
#thp-tk .top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 20px;
  background: #fff; border-bottom: 1px solid var(--line); }
#thp-tk .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
#thp-tk .brand .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
#thp-tk .brand b { display: block; font-size: 16px; line-height: 1.1; }
#thp-tk .brand small { color: var(--muted); font-size: 12px; }
#thp-tk .tabs { display: flex; gap: 4px; margin-left: 12px; }
#thp-tk .tabs button { border: 0; background: none; font: inherit; padding: 8px 14px; border-radius: 10px; color: var(--muted); cursor: pointer; font-weight: 500; }
#thp-tk .tabs button[aria-current] { background: #fdecec; color: var(--red); }
#thp-tk #orderBtn { margin-left: auto; }
#thp-tk .tk-main { max-width: 960px; margin: 0 auto; padding: 20px 16px 100px; }
#thp-tk .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
#thp-tk .card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
#thp-tk .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#thp-tk .grid2 .card { margin-bottom: 16px; }
#thp-tk .hello { font-size: 20px; }
#thp-tk .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 10px 16px;
  font: 600 14px "Be Vietnam Pro", sans-serif; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
#thp-tk .btn.primary { background: var(--red); color: #fff; }
#thp-tk .btn.primary:hover { background: var(--red-d); }
#thp-tk .btn.primary:disabled { opacity: .6; }
#thp-tk .btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
#thp-tk .btn.wide { width: 100%; margin-top: 8px; }
#thp-tk .link { border: 0; background: none; color: var(--navy); font: 500 14px "Be Vietnam Pro", sans-serif; cursor: pointer; padding: 6px 0 0; }
#thp-tk label { display: block; font-size: 14px; font-weight: 500; margin: 12px 0; }
#thp-tk input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: 16px "Be Vietnam Pro", sans-serif;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; }
#thp-tk input:focus { outline: 2px solid #f3b4b4; border-color: var(--red); }
#thp-tk .msg { min-height: 20px; color: var(--red); font-size: 14px; margin: 4px 0 10px; }
#thp-tk .msg.ok { color: var(--green); }
#thp-tk .login { display: grid; place-items: center; min-height: 70vh; }
#thp-tk .login-card { width: 100%; max-width: 400px; padding: 26px; }
#thp-tk .login-card .btn { width: 100%; }
#thp-tk .stat .lab { color: var(--muted); font-size: 13px; font-weight: 500; }
#thp-tk .stat .num, #thp-tk #balDetail .num { font-size: 26px; font-weight: 700; margin: 2px 0 4px; }
#thp-tk .num.owe { color: var(--red); }
#thp-tk .num.ok { color: var(--green); }
#thp-tk .stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
#thp-tk .stage { border: 1px solid var(--line); background: #fafafb; border-radius: 12px; padding: 10px 6px; cursor: pointer; font: inherit; text-align: center; }
#thp-tk .stage b { display: block; font-size: 22px; color: var(--red); }
#thp-tk .stage span { font-size: 12px; color: var(--muted); }
#thp-tk .stage.zero b { color: #c4c7ce; }
#thp-tk .search { margin: 0 0 10px; }
#thp-tk .chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
#thp-tk .chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 500 13px "Be Vietnam Pro", sans-serif; cursor: pointer; }
#thp-tk .chip span { color: var(--muted); }
#thp-tk .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
#thp-tk .chip[aria-pressed="true"] span { color: #cfd2d8; }
#thp-tk .ord { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
#thp-tk .card .ord { border-radius: 12px; }
#thp-tk .ord-row { display: flex; gap: 12px; padding: 12px; cursor: pointer; }
#thp-tk .thumb { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; background: #eef0f3; }
#thp-tk .ord-main { min-width: 0; flex: 1; }
#thp-tk .ord-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#thp-tk .oid { font-weight: 700; font-size: 14px; }
#thp-tk .ord-title { font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 2px 0; }
#thp-tk .badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
#thp-tk .b-buy { background: #fff4e5; color: var(--amber); }
#thp-tk .b-jp { background: #e8f0fb; color: var(--navy); }
#thp-tk .b-fly { background: #efe9fd; color: #6d28d9; }
#thp-tk .b-vn { background: #e6f6ec; color: var(--green); }
#thp-tk .b-done { background: #eef0f3; color: #4b5563; }
#thp-tk .b-cancel { background: #fdecec; color: var(--red); }
#thp-tk .ord-detail { border-top: 1px solid var(--line); padding: 14px 16px; background: #fcfcfd; }
#thp-tk .timeline { list-style: none; margin: 0 0 8px; padding: 0 0 0 4px; }
#thp-tk .timeline li { position: relative; padding: 0 0 12px 22px; color: var(--muted); font-size: 14px; }
#thp-tk .timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #d4d7dd; }
#thp-tk .timeline li::after { content: ""; position: absolute; left: 4px; top: 17px; bottom: 0; width: 2px; background: #e5e7eb; }
#thp-tk .timeline li:last-child::after { display: none; }
#thp-tk .timeline li.done { color: var(--ink); }
#thp-tk .timeline li.done::before { background: var(--red); }
#thp-tk .timeline li b { font-weight: 600; margin-right: 8px; }
#thp-tk .timeline li span { font-size: 13px; color: var(--muted); }
#thp-tk .timeline li em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
#thp-tk .photos { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; }
#thp-tk .photos img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; cursor: zoom-in; flex: none; }
#thp-tk .tbl { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
#thp-tk .tbl td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
#thp-tk .tbl td:last-child { text-align: right; font-weight: 500; padding-left: 12px; }
#thp-tk .tbl tr.sum td { border-bottom: 0; font-weight: 700; font-size: 15px; }
#thp-tk details summary { cursor: pointer; color: var(--navy); font-weight: 500; margin: 8px 0; }
#thp-tk .lines { list-style: none; padding: 0; margin: 0; }
#thp-tk .lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f1f3; font-size: 14px; }
#thp-tk .lines li span small { display: block; color: var(--muted); font-size: 12px; }
#thp-tk .lines li span b { font-weight: 500; }
#thp-tk .plus { color: var(--green); white-space: nowrap; }
#thp-tk .minus { color: var(--ink); white-space: nowrap; }
#thp-tk .steps-howto { margin: 0; padding-left: 20px; }
#thp-tk .steps-howto li { margin-bottom: 8px; }
#thp-tk .empty { color: var(--muted); text-align: center; padding: 24px 8px; }
#thp-tk .lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
#thp-tk .lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
#thp-tk .toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; font-size: 14px; }
#thp-tk .bnav { display: none; }
@media (max-width: 760px) {
#thp-tk .top { padding: 8px 16px; gap: 10px; }
#thp-tk .tabs { display: none; }
#thp-tk #orderBtn { padding: 8px 12px; font-size: 13px; }
#thp-tk .tk-main { padding: 14px 16px 96px; }
#thp-tk .grid2 { grid-template-columns: 1fr; gap: 0; }
#thp-tk .stages { grid-template-columns: repeat(2, 1fr); }
#thp-tk .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
#thp-tk .bnav button { flex: 1; border: 0; background: none; font: 500 11px "Be Vietnam Pro", sans-serif; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
#thp-tk .bnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#thp-tk .bnav button[aria-current] { color: var(--red); }
}
#thp-tk .reg-card { max-width: 640px; }
#thp-tk .reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
#thp-tk .reg-grid .full { grid-column: 1 / -1; }
#thp-tk .reg-grid label { margin: 8px 0; }
#thp-tk .reg-grid small { display: block; font-weight: 400; font-size: 12px; margin-top: 4px; }
#thp-tk .switch { text-align: center; margin: 14px 0 4px; font-size: 14px; }
#thp-tk .switch a { font-weight: 600; }
@media (max-width: 600px) {
#thp-tk .reg-grid { grid-template-columns: 1fr; }
}
#thp-tk .welcome { background: #ecfdf3; border-color: #a7e3bf; }
#thp-tk .warn { background: #fff7e6; border-color: #f5c46b; }
#thp-tk { max-width: 1250px; margin: 0 auto; padding: 22px 15px 48px; background: transparent; font-size: 16px; }
body.thp-tk-page #main { background: #f4f5f7; }
#thp-tk .card { padding: 22px 24px; }
#thp-tk h1 { font-size: 26px; }
#thp-tk .stat .num { font-size: 32px; }
#thp-tk .thumb { width: 76px; height: 76px; }
@media (min-width: 1000px) {
  #thp-tk #ordList, #thp-tk #recent { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  #thp-tk #ordList .ord, #thp-tk #recent .ord { margin-bottom: 0; }
  #thp-tk #ordList .ord.open, #thp-tk #recent .ord.open { grid-column: 1 / -1; }
  #thp-tk .ord-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  #thp-tk .ord-detail > .timeline, #thp-tk .ord-detail > .badge { grid-row: span 3; }
  #thp-tk .grid2 { grid-template-columns: 1fr 1fr; }
  #thp-tk #walletView, #thp-tk #accountView { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
  #thp-tk #walletView > h1, #thp-tk #accountView > h1 { grid-column: 1 / -1; }
  #thp-tk #walletView > .card:last-of-type { grid-column: 1 / -1; }
  #thp-tk #accountView > #logoutBtn { grid-column: 1 / -1; max-width: 300px; }
}
#thp-tk button, #thp-tk .btn { text-transform: none; letter-spacing: normal; margin: 0; min-height: 0; line-height: 1.4; box-shadow: none; }
#thp-tk input { height: auto; box-shadow: none; margin-bottom: 0; line-height: 1.4; }
#thp-tk label { color: inherit; }
#thp-tk .badge { width: auto; height: auto; min-width: 0; display: inline-block; line-height: 1.4; }
#thp-tk .link, #thp-tk .chip, #thp-tk .btn { white-space: nowrap; width: auto; max-width: none; }
#thp-tk .btn.wide { width: 100%; }
#thp-tk h1, #thp-tk h2, #thp-tk h4 { color: var(--ink); text-transform: none; letter-spacing: normal; }
#thp-tk table { margin-bottom: 0; } #thp-tk td { border-color: var(--line); }
#thp-tk ul, #thp-tk ol { margin-left: 0; }
#thp-tk .tk-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
#thp-tk .tk-bar .tabs { margin-left: 0; }
#thp-tk .tk-main { max-width: none; padding: 0; }
#thp-tk .login { min-height: 50vh; }
@media (max-width: 760px) { body .gt_switcher_wrapper { bottom: 78px !important; } body #top-link { bottom: 140px !important; } #thp-tk .tk-bar .tabs { display: none; } #thp-tk .tk-bar { justify-content: flex-end; } #thp-tk { padding-bottom: 90px; } }
