/* Tai khoan Dorabot — dung token cua /dora-assets/home/home.css (--brand, --ink, --line, --r, --sh) */
.tk { min-height: 62vh; padding: 28px 0 56px; background: var(--bg-2); }
.tk h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
.tk-h2 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; color: var(--ink); }
.tk-sub { color: var(--ink-3); font-size: 14px; margin: 2px 0 10px; }
.tk-note { background: var(--amber-l); color: #7a4d00; border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 10px 0; }
.tk-err { color: #c62828; font-size: 14px; margin: 10px 0 0; }
.tk-link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.tk-mute { color: var(--ink-3); font-size: 13px; }
.tk-spin { width: 34px; height: 34px; border: 3px solid var(--brand-l); border-top-color: var(--brand); border-radius: 50%; animation: tk-r .8s linear infinite; margin: 0 auto 12px; }
@keyframes tk-r { to { transform: rotate(360deg); } }
.tk-load { text-align: center; padding-top: 80px; color: var(--ink-3); }

/* Chua dang nhap */
.tk-login { max-width: 520px; margin: 24px auto 0; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 32px 28px; text-align: center; }
.tk-lead { color: var(--ink-2); margin: 0 0 22px; line-height: 1.6; }
.tk-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tk-btns.busy { opacity: .5; pointer-events: none; }
.tk-gbtn { display: flex; justify-content: center; min-height: 44px; }
.tk-alt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 320px; height: 44px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.tk-alt-ic { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.tk-zalo { background: #0068FF; color: #fff; }
.tk-zalo:hover { background: #0057d6; }
.tk-zalo .tk-alt-ic { background: #fff; color: #0068FF; }
.tk-apple { background: #000; color: #fff; }
.tk-apple:hover { background: #222; }
.tk-apple .tk-alt-ic { font-size: 18px; }
.tk-webview { background: var(--brand-l); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 14px; }
.tk-why { list-style: none; padding: 0; margin: 24px 0 0; text-align: left; border-top: 1px solid var(--line); }
.tk-why li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); position: relative; }
.tk-why li:before { content: '✓'; position: absolute; left: 4px; color: var(--teal-d); font-weight: 700; }
.tk-why b { color: var(--ink); }

/* Da dang nhap */
.tk-hello { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; }
.tk-av { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tk-who { flex: 1; min-width: 0; }
.tk-who h1 { font-size: 21px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-who p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.tk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tk-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; display: flex; flex-direction: column; }
.tk-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tk-card-h h3 { font-size: 17px; font-weight: 700; margin: 0; color: var(--ink); }
.tk-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-l); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.tk-plan { margin: 6px 0 10px; color: var(--ink-2); font-size: 14px; }
.tk-plan b { color: var(--ink); }
.tk-meter { position: relative; background: var(--bg-2); border-radius: 8px; height: 30px; overflow: hidden; margin-bottom: 6px; }
.tk-meter span { position: relative; z-index: 1; display: block; font-size: 13px; line-height: 30px; padding: 0 10px; color: var(--ink); }
.tk-meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-l); }
.tk-meter i.hi { background: var(--amber-l); }
.tk-meter.sm { height: 26px; } .tk-meter.sm span { line-height: 26px; }
.tk-list { list-style: none; padding: 0; margin: 4px 0 0; }
.tk-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tk-list li:last-child { border-bottom: 0; }
.tk-list small { grid-column: 1; color: var(--ink-3); font-size: 12.5px; }
.tk-fn { grid-column: 1; font-weight: 600; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.tk-fn:hover { color: var(--brand); }
.tk-list .tk-dl, .tk-list .tk-mute { grid-column: 2; grid-row: 1 / span 2; }
.tk-dl { font-weight: 600; color: var(--brand); font-size: 14px; }
.tk-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.tk .btn-sm { padding: 9px 16px; font-size: 14px; }
.btn.btn-o { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.btn.btn-o:hover { background: var(--brand-l); }
.tk-hist { margin-top: 8px; font-size: 14px; }
.tk-hist summary { cursor: pointer; color: var(--ink-2); }
.tk-hist ul { list-style: none; padding: 0; margin: 6px 0 0; }
.tk-hist li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tk-hist small { width: 100%; color: var(--ink-3); }
.tk-st { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--bg-2); }
.tk-st.ok { background: var(--teal-l); color: var(--teal-d); } .tk-st.wait { background: var(--amber-l); color: #7a4d00; } .tk-st.no { background: #fdecec; color: #c62828; }
.tk-empty { background: #fff; border-radius: var(--r); padding: 18px 20px; color: var(--ink-2); }
.tk-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

/* Hop thanh toan */
.tk-pay { border: 0; border-radius: 18px; padding: 24px 22px 20px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(31,42,68,.25); color: var(--ink); }
.tk-pay::backdrop { background: rgba(20,28,45,.45); }
.tk-pay h3 { font-size: 19px; font-weight: 700; margin: 0 28px 6px 0; }
.tk-pay-x { position: absolute; top: 10px; right: 12px; margin: 0; }
.tk-pay-x button { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px 8px; }
.tk-grp { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 8px; }
.tk-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tk-pl { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 2px; position: relative; }
.tk-pl:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.tk-pl.hot:after { content: 'Nên chọn'; position: absolute; top: -9px; right: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.tk-pl b { font-size: 15px; } .tk-pl span { font-weight: 700; color: var(--brand); } .tk-pl small { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.tk-qr { text-align: center; margin-top: 12px; }
.tk-qr img { max-width: 240px; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.tk-proof { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: left; }
.tk-file { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.tk-file input { font: inherit; font-weight: 400; border: 1.5px dashed var(--line); border-radius: 10px; padding: 10px; }
.tk-proof .btn { justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.tk-proof .btn:disabled { opacity: .6; }
.tk-pay form[method=dialog] .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* Nut tai khoan tren thanh tren (home_layout.php) dung chung o day */
@media (max-width: 640px) {
  .tk { padding-top: 16px; }
  .tk h1 { font-size: 23px; }
  .tk-login { padding: 24px 18px; }
  .tk-cards { grid-template-columns: 1fr; }
  .tk-hello { padding: 14px 16px; }
  .tk-av { width: 44px; height: 44px; font-size: 19px; }
  .tk-who h1 { font-size: 18px; }
  .tk-plans { grid-template-columns: 1fr 1fr; }
}

/* Lich su file 08/11/2026 */
.tk-hq { display: flex; gap: 8px; margin: 10px 0; }
.tk-hq input { flex: 1; min-width: 0; border: 1px solid #dfe4ec; border-radius: 10px; padding: 8px 10px; font: inherit; }
.tk-hist li { flex-wrap: wrap; }
.tk-fa { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.tk-del { color: #c62828; }
