:root {
  --ink: #142433;
  --ink-soft: #4b5c6b;
  --line: #d9e2e8;
  --bg: #f5f7f9;
  --card: #ffffff;
  --brand: #0f5d8c;
  --brand-dark: #0a3f5f;
  --ok: #1a7a4c;
  --warn: #b9770e;
  --bad: #b3261e;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

header.top {
  background: var(--brand-dark);
  color: #fff;
  padding: 18px 20px;
}
header.top .wrap { max-width: 880px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header.top h1 { font-size: 18px; margin: 0; }
header.top .tag { font-size: 12.5px; opacity: .85; }
header.top a { color: #cfe6f7; text-decoration: none; font-size: 13px; }

main { max-width: 880px; margin: 24px auto 64px; padding: 0 16px; }

.notice {
  background: #fff7e6;
  border: 1px solid #f0cf8a;
  color: #6b4d05;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 20px;
}
.notice b { display: block; margin-bottom: 4px; }
.notice a { color: var(--brand-dark); font-weight: 600; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

h2 { font-size: 16px; margin: 0 0 14px; }
h3 { font-size: 14px; margin: 18px 0 8px; color: var(--brand-dark); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field { margin-bottom: 12px; }

button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
button:hover { background: var(--brand-dark); }
button.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
button.small { padding: 6px 10px; font-size: 12.5px; }
button:disabled { opacity: .5; cursor: not-allowed; }

.button-like {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.button-like:hover { background: var(--brand-dark); }

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item .label { flex: 1; font-size: 13.5px; }
.checklist-item .req { color: var(--bad); font-size: 11.5px; font-weight: 600; margin-left: 4px; }
.checklist-item .opt { color: var(--ink-soft); font-size: 11.5px; margin-left: 4px; }
.checklist-item .state { font-size: 12.5px; white-space: nowrap; }
.checklist-item .state.done { color: var(--ok); font-weight: 600; }
.checklist-item .state.missing { color: var(--ink-soft); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-moi_tao { background: #e7ecf0; color: var(--ink-soft); }
.status-da_nop_dvc { background: #e2eefb; color: var(--brand-dark); }
.status-cho_bo_sung { background: #fdecea; color: var(--bad); }
.status-da_thanh_toan { background: #fff3da; color: var(--warn); }
.status-da_co_ket_qua { background: #e3f3e8; color: var(--ok); }

.steps ol { padding-left: 18px; font-size: 13.5px; }
.steps li { margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-soft); font-weight: 600; }
tr:hover td { background: #fafcfd; }

.muted { color: var(--ink-soft); font-size: 12.5px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.copylink { font-size: 12.5px; background: #eef3f6; padding: 8px 10px; border-radius: 8px; word-break: break-all; }
.hidden { display: none !important; }

/* Blog */
header.top nav { display: flex; gap: 14px; align-items: center; }
.breadcrumb { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: inherit; }
.post-card:hover { border-color: var(--brand); }
.post-card h2 { margin: 0 0 6px; font-size: 16px; color: var(--brand-dark); }
.post-card .post-date { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.post-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.article .post-date { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; }
.article h2 { font-size: 16px; color: var(--brand-dark); margin: 26px 0 10px; }
.article h3 { font-size: 14px; margin: 18px 0 8px; }
.article p { font-size: 14.5px; margin: 0 0 12px; }
.article ul, .article ol { font-size: 14.5px; padding-left: 20px; margin: 0 0 14px; }
.article li { margin-bottom: 6px; }
.cta-box { background: #eef3f6; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 24px; }
.cta-box a.button-link { display: inline-block; margin-top: 8px; background: var(--brand); color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 8px; font-size: 13.5px; }
.cta-box a.button-link:hover { background: var(--brand-dark); }
