/* ─────────────────────────────────────────────────────────────
   TTP CLOUD — cloud.ttpjsc.com
   Nhận diện: navy #12395F + vàng đồng #C8922F (theo logo TTP),
   thêm xanh ngọc làm điểm nhấn kỹ thuật.
   ───────────────────────────────────────────────────────────── */

:root {
  --navy: #12395F;
  --navy-dam: #0B2440;
  --navy-sau: #061726;
  --vang: #C8922F;
  --vang-sang: #E5B357;
  --ngoc: #2FB3A8;
  --ngoc-sang: #57D6C9;

  --nen: #FFFFFF;
  --nen-mo: #F4F7FA;
  --vien: #E2E8F0;
  --chu: #16202B;
  --chu-nhat: #55677A;

  --bk-nho: 0 1px 2px rgba(11, 36, 64, .06), 0 2px 8px rgba(11, 36, 64, .05);
  --bk-vua: 0 4px 12px rgba(11, 36, 64, .08), 0 14px 32px rgba(11, 36, 64, .09);
  --bk-lon: 0 10px 24px rgba(11, 36, 64, .12), 0 30px 60px rgba(11, 36, 64, .14);

  --r: 14px;
  --r-nho: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--chu);
  background: var(--nen);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: .89em;
  background: rgba(18, 57, 95, .07);
  padding: .12em .38em;
  border-radius: 5px;
}
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }

.khung { width: min(1180px, 100% - 40px); margin-inline: auto; }
.khung-hep { width: min(880px, 100% - 40px); margin-inline: auto; }

/* ───────────── NÚT ───────────── */
.nut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .82em 1.5em;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .18s ease, background-color .18s ease;
  text-decoration: none !important;
}
.nut:hover { transform: translateY(-1px); }
.nut:active { transform: translateY(0); }
.nut-vang { background: var(--vang); color: #1A1204; box-shadow: 0 6px 18px rgba(200, 146, 47, .35); }
.nut-vang:hover { background: #D8A03A; }
.nut-navy { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(18, 57, 95, .28); }
.nut-navy:hover { background: #17456F; }
.nut-vien-sang { border-color: rgba(255, 255, 255, .38); color: #fff; background: rgba(255, 255, 255, .06); }
.nut-vien-sang:hover { background: rgba(255, 255, 255, .14); }
.nut-vien { border-color: var(--vien); color: var(--navy); background: #fff; }
.nut-vien:hover { border-color: var(--navy); }
.nut-rong { width: 100%; }

/* ───────────── THANH TRÊN ───────────── */
.thanh-tren {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 23, 38, .82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.thanh-tren .khung {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}
.hieu { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 700; letter-spacing: .01em; }
.hieu:hover { text-decoration: none; }
.hieu img { height: 30px; width: auto; display: block; }
.hieu span { font-size: 1.04rem; }
.hieu small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { color: rgba(255, 255, 255, .8); font-size: .95rem; font-weight: 550; }
.menu a:hover { color: #fff; text-decoration: none; }
.thanh-tren .nut { padding: .6em 1.15em; font-size: .94rem; }

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(47, 179, 168, .22), transparent 60%),
    radial-gradient(760px 420px at 88% 8%, rgba(200, 146, 47, .18), transparent 62%),
    linear-gradient(168deg, #0C2C4A 0%, var(--navy-sau) 72%);
  color: #fff;
  padding: 78px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 72%);
  pointer-events: none;
}
.hero .khung { position: relative; }
.hero-luoi {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}
.nhan-nho {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .4em .9em;
  border: 1px solid rgba(87, 214, 201, .45);
  border-radius: 999px;
  background: rgba(47, 179, 168, .13);
  color: var(--ngoc-sang);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.nhan-nho::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ngoc-sang);
  box-shadow: 0 0 0 4px rgba(87, 214, 201, .22);
}
.hero h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.35rem);
  font-weight: 760;
  letter-spacing: -.028em;
  margin-bottom: .48em;
}
.hero h1 em { font-style: normal; color: var(--vang); }
.hero-phude {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: rgba(255, 255, 255, .8);
  max-width: 44ch;
  margin-bottom: 30px;
}
.hero-phude strong { color: #fff; }
.hero-nut { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-ghi {
  margin: 20px 0 0;
  font-size: .87rem;
  color: rgba(255, 255, 255, .55);
}

/* Bảng số dưới hero */
.dai-so {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 62px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r);
  overflow: hidden;
}
.dai-so div { background: rgba(6, 23, 38, .55); padding: 20px 22px; }
.dai-so b {
  display: block;
  font-size: 1.62rem;
  font-weight: 740;
  color: var(--vang);
  letter-spacing: -.02em;
}
.dai-so span { font-size: .85rem; color: rgba(255, 255, 255, .66); line-height: 1.45; }

/* Thẻ terminal */
.the-may {
  border-radius: 16px;
  background: rgba(3, 14, 25, .78);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: var(--bk-lon);
  overflow: hidden;
}
.the-may-dau {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.the-may-dau i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.the-may-dau i:first-child { background: #E5734B; }
.the-may-dau i:nth-child(2) { background: #E0B341; }
.the-may-dau i:nth-child(3) { background: #55B97C; }
.the-may-dau span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .76rem;
  color: rgba(255, 255, 255, .5);
}
.the-may pre {
  margin: 0;
  padding: 18px 18px 22px;
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, .86);
  overflow-x: auto;
}
.the-may .nhac { color: var(--ngoc-sang); }
.the-may .khoa { color: #93B4D0; }
.the-may .ok { color: #7EDCA0; }
.the-may .cmt { color: rgba(255, 255, 255, .42); }

/* ───────────── MỤC CHUNG ───────────── */
.muc { padding: 84px 0; }
.muc-mo { background: var(--nen-mo); border-block: 1px solid var(--vien); }
.muc-dau { max-width: 720px; margin-bottom: 46px; }
.muc-dau.giua { margin-inline: auto; text-align: center; }
.muc-nhan {
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--vang);
  margin-bottom: 12px;
}
.muc-dau h2 {
  font-size: clamp(1.6rem, 3vw, 2.28rem);
  font-weight: 730;
  color: var(--navy-dam);
}
.muc-dau p { font-size: 1.06rem; color: var(--chu-nhat); margin: 0; }

/* ───────────── NỖI ĐAU ───────────── */
.luoi-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.the-dau {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: var(--r);
  padding: 26px 22px;
  box-shadow: var(--bk-nho);
}
.the-dau .icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(18, 57, 95, .08);
  color: var(--navy);
  margin-bottom: 16px;
}
.the-dau .icon svg { width: 22px; height: 22px; }
.the-dau h3 { font-size: 1.04rem; font-weight: 700; color: var(--navy-dam); }
.the-dau p { font-size: .95rem; color: var(--chu-nhat); margin: 0; }
.cau-chot {
  margin-top: 38px;
  padding: 22px 26px;
  border-left: 4px solid var(--vang);
  background: #fff;
  border-radius: 0 var(--r) var(--r) 0;
  box-shadow: var(--bk-nho);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-dam);
}
.cau-chot p { margin: 0; }

/* ───────────── NĂNG LỰC ───────────── */
.luoi-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.the-nl {
  position: relative;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: var(--r);
  box-shadow: var(--bk-nho);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.the-nl:hover { transform: translateY(-3px); box-shadow: var(--bk-vua); border-color: #C9D6E4; }
.the-nl .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(47, 179, 168, .18), rgba(18, 57, 95, .1));
  color: var(--navy);
  margin-bottom: 18px;
}
.the-nl .icon svg { width: 23px; height: 23px; }
.the-nl h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy-dam); }
.the-nl p { font-size: .96rem; color: var(--chu-nhat); margin: 0; }

/* ───────────── BẢNG GIÁ ───────────── */
.luoi-gia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.the-gia {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: var(--bk-nho);
}
.the-gia.noi-bat {
  border-color: var(--navy);
  box-shadow: var(--bk-lon);
  transform: translateY(-8px);
  position: relative;
}
.the-gia.noi-bat::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 18px;
  border: 1px solid rgba(200, 146, 47, .55);
  pointer-events: none;
}
.nhan-noi-bat {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--vang);
  color: #1A1204;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35em 1em;
  border-radius: 999px;
  white-space: nowrap;
}
.the-gia h3 { font-size: 1.22rem; font-weight: 740; color: var(--navy-dam); margin-bottom: .25em; }
.the-gia .mota { font-size: .92rem; color: var(--chu-nhat); min-height: 2.9em; }
.gia-so {
  display: flex;
  align-items: baseline;
  gap: .3em;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--vien);
  margin-bottom: 20px;
}
.gia-so b { font-size: 2.05rem; font-weight: 760; color: var(--navy-dam); letter-spacing: -.03em; }
.gia-so span { font-size: .92rem; color: var(--chu-nhat); font-weight: 600; }
.ds-check { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.ds-check li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: .95rem;
  color: #26374A;
}
.ds-check li::before {
  content: "";
  width: 18px; height: 18px;
  margin-top: .28em;
  border-radius: 50%;
  background: rgba(47, 179, 168, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232FB3A8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.the-gia .nut { margin-top: auto; }
.ghi-chu-gia {
  margin-top: 30px;
  font-size: .9rem;
  color: var(--chu-nhat);
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

/* ───────────── SO SÁNH ───────────── */
.bang-ss { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--vien); border-radius: var(--r); overflow: hidden; box-shadow: var(--bk-nho); }
.bang-ss th, .bang-ss td { padding: 15px 20px; text-align: left; font-size: .96rem; border-bottom: 1px solid var(--vien); }
.bang-ss thead th { background: var(--navy-dam); color: #fff; font-weight: 650; font-size: .92rem; }
.bang-ss thead th:last-child { background: var(--navy); color: var(--vang); }
.bang-ss tbody tr:last-child th, .bang-ss tbody tr:last-child td { border-bottom: 0; }
.bang-ss tbody th { font-weight: 640; color: var(--navy-dam); width: 34%; }
.bang-ss td:nth-of-type(1) { color: var(--chu-nhat); }
.bang-ss td:last-child { font-weight: 620; color: #15402B; background: rgba(47, 179, 168, .07); }
.bang-ss tbody tr:hover td, .bang-ss tbody tr:hover th { background-color: rgba(18, 57, 95, .03); }

/* ───────────── BƯỚC ───────────── */
.luoi-buoc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.the-buoc { padding-top: 14px; border-top: 3px solid var(--vang); }
.the-buoc b {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy-dam);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 720;
  margin-bottom: 14px;
}
.the-buoc h3 { font-size: 1.08rem; color: var(--navy-dam); }
.the-buoc p { font-size: .96rem; color: var(--chu-nhat); margin: 0; }

/* ───────────── SẮP CÓ ───────────── */
.sap-co {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  padding: 44px;
  border-radius: 20px;
  background: linear-gradient(150deg, #0E3152, var(--navy-sau));
  color: #fff;
  box-shadow: var(--bk-lon);
  position: relative;
  overflow: hidden;
}
.sap-co::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 146, 47, .22), transparent 68%);
}
.sap-co > * { position: relative; }
.nhan-sap {
  display: inline-block;
  padding: .34em .85em;
  border-radius: 999px;
  background: rgba(200, 146, 47, .2);
  border: 1px solid rgba(200, 146, 47, .5);
  color: var(--vang);
  font-size: .78rem;
  font-weight: 720;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sap-co h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 730; }
.sap-co p { color: rgba(255, 255, 255, .76); }
.sap-co .ds-check li { color: rgba(255, 255, 255, .88); font-size: .94rem; }
.sap-co .ds-check li::before { background-color: rgba(87, 214, 201, .18); }
.o-nhan-tin {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: var(--r);
  padding: 26px;
}
.o-nhan-tin h3 { font-size: 1.05rem; }
.o-nhan-tin p { font-size: .9rem; margin-bottom: 16px; }

/* ───────────── FORM ───────────── */
.o-form {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--bk-vua);
}
.hang-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.o-nhap { display: block; margin-bottom: 16px; }
.o-nhap > span { display: block; font-size: .88rem; font-weight: 640; color: var(--navy-dam); margin-bottom: 6px; }
.o-nhap .buoc { color: #C0392B; }
.o-nhap input, .o-nhap select, .o-nhap textarea {
  width: 100%;
  padding: .78em .9em;
  font-family: inherit;
  font-size: .98rem;
  color: var(--chu);
  background: #fff;
  border: 1px solid #CFDAE6;
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.o-nhap textarea { min-height: 96px; resize: vertical; }
.o-nhap input:focus, .o-nhap select:focus, .o-nhap textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18, 57, 95, .14);
}
.an-di { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ghi { font-size: .85rem; color: var(--chu-nhat); margin: 14px 0 0; }

/* trên nền tối */
.tren-toi .o-nhap > span { color: rgba(255, 255, 255, .82); }
.tren-toi .o-nhap input {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}
.tren-toi .o-nhap input::placeholder { color: rgba(255, 255, 255, .45); }
.tren-toi .o-nhap input:focus { border-color: var(--ngoc-sang); box-shadow: 0 0 0 3px rgba(87, 214, 201, .2); }

.bao {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.bao-ok { background: rgba(47, 179, 168, .12); border: 1px solid rgba(47, 179, 168, .4); color: #14584F; }
.bao-loi { background: rgba(192, 57, 43, .08); border: 1px solid rgba(192, 57, 43, .32); color: #8E2A1F; }

/* ───────────── CÂU HỎI ───────────── */
.ds-hoi { display: grid; gap: 12px; }
.ds-hoi details {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: var(--r);
  box-shadow: var(--bk-nho);
  overflow: hidden;
}
.ds-hoi summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--navy-dam);
  position: relative;
}
.ds-hoi summary::-webkit-details-marker { display: none; }
.ds-hoi summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -7px;
  border-right: 2.4px solid var(--vang);
  border-bottom: 2.4px solid var(--vang);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.ds-hoi details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.ds-hoi .dap { padding: 0 22px 20px; color: var(--chu-nhat); font-size: .98rem; }
.ds-hoi .dap p:last-child { margin: 0; }

/* ───────────── CTA CUỐI ───────────── */
.cta-cuoi {
  background:
    radial-gradient(700px 360px at 80% 10%, rgba(47, 179, 168, .2), transparent 62%),
    linear-gradient(160deg, #0D2E4D, var(--navy-sau));
  color: #fff;
  padding: 84px 0;
}
.cta-luoi { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 52px; align-items: start; }
.cta-luoi h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 740; }
.cta-luoi p { color: rgba(255, 255, 255, .78); }
.cta-diem { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.cta-diem li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; color: rgba(255, 255, 255, .86); }
.cta-diem svg { width: 19px; height: 19px; flex: none; margin-top: .22em; color: var(--ngoc-sang); }

/* ───────────── CHÂN TRANG ───────────── */
.chan { background: #061523; color: rgba(255, 255, 255, .62); padding: 52px 0 32px; font-size: .93rem; }
.chan-luoi { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.chan h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.chan a { color: rgba(255, 255, 255, .72); }
.chan a:hover { color: #fff; }
.chan .hieu { margin-bottom: 14px; }
.chan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.chan-day {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: .87rem;
  color: rgba(255, 255, 255, .45);
}

/* ───────────── TRANG PHỤ ───────────── */
.trang-gon { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }
.trang-gon .hop { max-width: 560px; }
.trang-gon .dau-ok {
  width: 66px; height: 66px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(47, 179, 168, .14);
  color: var(--ngoc);
}
.trang-gon h1 { font-size: 1.85rem; color: var(--navy-dam); }
.trang-gon p { color: var(--chu-nhat); }

/* ───────────── QUẢN TRỊ ───────────── */
.qt { padding: 34px 0 70px; }
.qt h1 { font-size: 1.5rem; color: var(--navy-dam); }
.qt-bang { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--vien); border-radius: var(--r); font-size: .92rem; overflow: hidden; }
.qt-bang th, .qt-bang td { padding: 10px 13px; border-bottom: 1px solid var(--vien); text-align: left; vertical-align: top; }
.qt-bang thead th { background: var(--nen-mo); font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; color: var(--chu-nhat); }
.qt-bang tr:last-child td { border-bottom: 0; }
.tt { display: inline-block; padding: .18em .6em; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.tt-moi { background: rgba(200, 146, 47, .16); color: #7A5710; }
.tt-dang_xu_ly { background: rgba(18, 57, 95, .12); color: var(--navy); }
.tt-da_chot { background: rgba(47, 179, 168, .16); color: #14584F; }
.tt-bo { background: rgba(0, 0, 0, .07); color: #5B6B7A; }
.qt form { display: inline; }
.qt select, .qt button { font-family: inherit; font-size: .84rem; padding: .28em .5em; border-radius: 7px; border: 1px solid var(--vien); background: #fff; cursor: pointer; }

/* ───────────── CO GIÃN ───────────── */
@media (max-width: 1040px) {
  .hero-luoi { grid-template-columns: 1fr; gap: 42px; }
  .hero-phude { max-width: none; }
  .luoi-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sap-co { grid-template-columns: 1fr; gap: 32px; padding: 34px; }
  .cta-luoi { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 860px) {
  .menu { display: none; }
  .luoi-3, .luoi-gia, .luoi-buoc { grid-template-columns: 1fr; }
  .the-gia.noi-bat { transform: none; }
  .dai-so { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chan-luoi { grid-template-columns: 1fr; gap: 28px; }
  .muc { padding: 62px 0; }
  .hero { padding: 56px 0 72px; }
  .bang-ss thead { display: none; }
  .bang-ss tbody th, .bang-ss tbody td { display: block; width: auto; border-bottom: 0; padding: 4px 18px; }
  .bang-ss tbody th { padding-top: 16px; }
  .bang-ss tbody td:last-child { padding-bottom: 16px; border-bottom: 1px solid var(--vien); }
  .bang-ss tbody td::before { content: attr(data-nhan) ": "; font-weight: 650; color: var(--navy-dam); }
}
@media (max-width: 560px) {
  .khung, .khung-hep { width: min(100% - 32px, 1180px); }
  .luoi-4 { grid-template-columns: 1fr; }
  .hang-form { grid-template-columns: 1fr; }
  .o-form { padding: 22px; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =====================================================================
   KHU QUAN TRI + CONG KHACH HANG (admin, /cong, cac trang dang nhap)
   ===================================================================== */

body.nen-qt { background: var(--nen-mo); }

.phu { color: var(--chu-nhat); }
.nho { font-size: .88rem; }

.qt-thanh {
  background: var(--navy-sau);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  position: sticky; top: 0; z-index: 40;
}
.qt-thanh .khung { display: flex; align-items: center; gap: 22px; height: 60px; }
.qt-menu { display: flex; gap: 20px; margin-left: 14px; }
.qt-menu a {
  color: rgba(255, 255, 255, .72);
  font-size: .94rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.qt-menu a:hover { color: #fff; text-decoration: none; }
.qt-menu a.dang { color: #fff; border-bottom-color: var(--vang); }
.qt-nguoi { margin-left: auto; display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .72); font-size: .9rem; }
.qt-nguoi code { background: rgba(255, 255, 255, .12); color: #fff; }
.qt-nguoi a { color: var(--vang); font-weight: 600; }

.qt-dau { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 26px 0 16px; }
.qt-dau h1 { margin: 0; font-size: 1.45rem; color: var(--navy-dam); }
.qt-dau p { margin: 0; font-size: .94rem; }
.qt-dau form { margin-left: auto; }

.qt-the {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: var(--r);
  box-shadow: var(--bk-nho);
  padding: 24px;
  margin-bottom: 20px;
}
.qt-the h2 { font-size: 1.1rem; color: var(--navy-dam); margin-bottom: 16px; }
.qt-the .qt-bang { box-shadow: none; }

.hang-day { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.hang-day .o-nhap { margin-bottom: 0; }
.hang-day form { margin: 0; }

.ds-buoc { margin: 0; padding-left: 20px; display: grid; gap: 9px; color: var(--chu-nhat); font-size: .96rem; }
.ds-buoc code { white-space: nowrap; }

/* O han muc trong cong khach hang */
.luoi-han-muc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.the-so .nhan {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--chu-nhat);
  margin-bottom: 10px;
}
.the-so b { display: block; font-size: 2rem; font-weight: 750; color: var(--navy-dam); letter-spacing: -.02em; }
.the-so b span { font-size: .5em; font-weight: 600; color: var(--chu-nhat); letter-spacing: 0; }
.the-so .thanh {
  height: 8px;
  border-radius: 999px;
  background: rgba(18, 57, 95, .1);
  margin: 12px 0 10px;
  overflow: hidden;
}
.the-so .thanh i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ngoc), var(--navy)); }

/* Trang dang nhap (quan tri + khach) */
body.trang-vao {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(760px 420px at 20% 0%, rgba(47, 179, 168, .22), transparent 62%),
    linear-gradient(165deg, #0C2C4A, var(--navy-sau));
}
.hop-vao {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--bk-lon);
  padding: 34px 32px 30px;
}
.hop-vao .hieu { margin-bottom: 22px; }
.hop-vao .hieu span { color: var(--navy-dam); }
.hop-vao .hieu small { color: var(--chu-nhat); }
.hop-vao h1 { font-size: 1.4rem; color: var(--navy-dam); margin-bottom: .3em; }
.hop-vao .phu { font-size: .93rem; }
.hop-vao form { margin-top: 20px; }
.hop-vao .nut { margin-top: 6px; }
.hop-vao .phu.nho { margin: 18px 0 0; line-height: 1.6; }

@media (max-width: 860px) {
  .luoi-han-muc { grid-template-columns: 1fr; }
  .qt-menu { gap: 14px; margin-left: 0; }
  .qt-thanh .khung { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .qt-nguoi { margin-left: 0; }
}
