/* =============================================================
   NHÂN LỰC HVC - Hệ thống giao diện (Design System)
   ============================================================= */

/* ---------- 1. Biến toàn cục ---------- */
:root {
  --brand: #1e50a2;
  --brand-600: #17418a;
  --brand-700: #0f3068;
  --brand-50: #eef4ff;
  --brand-100: #dbe7ff;
  --accent: #ff6b35;
  --accent-600: #e85520;
  --accent-50: #fff2ec;
  --teal: #0ea5a4;
  --green: #16a34a;
  --green-50: #ecfdf5;
  --amber: #f59e0b;
  --red: #dc2626;
  --ink: #16233a;
  --body: #45536b;
  --muted: #7b879d;
  --line: #e4e9f2;
  --line-soft: #eef1f7;
  --bg: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(16, 35, 70, .06);
  --shadow-sm: 0 2px 10px rgba(16, 35, 70, .06);
  --shadow: 0 10px 30px rgba(16, 35, 70, .08);
  --shadow-lg: 0 24px 60px rgba(16, 35, 70, .14);
  --grad: linear-gradient(120deg, #1e50a2 0%, #2b6fd4 45%, #0ea5a4 100%);
  --grad-accent: linear-gradient(120deg, #ff6b35, #ff9736);
  --container: 1220px;
  --header-h: 74px;
  --font: 'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- 2. Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.28; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; }
::selection { background: var(--brand-100); color: var(--brand-700); }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 68px 0; }
.section-sm { padding: 44px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 42px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head p { color: var(--muted); margin-top: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-50); color: var(--brand);
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.between { justify-content: space-between; align-items: center; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.text-c { text-align: center; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-0{margin-bottom:0}.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.hide { display: none !important; }

/* ---------- 4. Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .93rem; white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(30, 80, 162, .28); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 10px 26px rgba(30, 80, 162, .34); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 53, .3); }
.btn-accent:hover { background: var(--accent-600); }
.btn-ghost { background: var(--white); color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-50); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: #fff; color: var(--brand); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 15px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.saved { background: var(--accent-50); border-color: var(--accent); color: var(--accent-600); }

/* ---------- 5. Thẻ & badge ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card-pad { padding: 22px; }
.card:hover { box-shadow: var(--shadow); border-color: var(--brand-100); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 600; padding: 4px 11px;
  border-radius: 999px; background: var(--line-soft); color: var(--body); white-space: nowrap;
}
.badge-blue { background: var(--brand-50); color: var(--brand); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-orange { background: var(--accent-50); color: var(--accent-600); }
.badge-red { background: #fef2f2; color: var(--red); }
.badge-amber { background: #fffbeb; color: #b45309; }
.badge-hot { background: var(--grad-accent); color: #fff; }

/* ---------- 6. Form ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3.5px var(--brand-50);
}
.textarea { min-height: 128px; resize: vertical; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b879d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px;
}
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: .9rem; margin-bottom: 9px; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); margin-top: 3px; flex-shrink: 0; cursor: pointer; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-err { font-size: .82rem; color: var(--red); margin-top: 5px; display: none; }
.field.has-err .input, .field.has-err .select, .field.has-err .textarea { border-color: var(--red); }
.field.has-err .form-err { display: block; }

/* ---------- 7. Header ---------- */
.topbar { background: var(--brand-700); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 22px; align-items: center; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a {
  width: 25px; height: 25px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.12); transition: background .2s;
}
.topbar-social a:hover { background: var(--accent); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  letter-spacing: -.5px; box-shadow: 0 6px 16px rgba(30,80,162,.3); flex-shrink: 0;
}
.logo-text b { display: block; color: var(--ink); font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.logo-text span { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .13em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 5px; padding: 10px 13px;
  font-weight: 600; font-size: .93rem; color: var(--ink); border-radius: 8px;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { color: var(--brand); background: var(--brand-50); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 224px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s; z-index: 50;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 13px; border-radius: 7px; font-size: .9rem; font-weight: 500; }
.dropdown a:hover { background: var(--brand-50); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); place-items: center; }

.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; position: relative; }
.user-chip:hover { border-color: var(--brand); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.6rem; border-radius: 20px; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; background: var(--brand-700); color: #fff; overflow: hidden; padding: 76px 0 100px; }
.hero::before {
  content: ''; position: absolute; inset: 0; background: var(--grad); opacity: .96;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #ffd166; }
.hero-sub { font-size: 1.06rem; color: rgba(255,255,255,.9); max-width: 560px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px);
  padding: 7px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; margin-bottom: 20px;
}
.hero-stats { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.7rem; color: #fff; font-weight: 800; line-height: 1.1; }
.hero-stats span { font-size: .84rem; color: rgba(255,255,255,.78); }

.search-box { background: #fff; border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-lg); margin-top: 34px; }
.search-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 6px; }
.search-cell { position: relative; display: flex; align-items: center; padding: 0 12px; border-radius: var(--radius-sm); }
.search-cell + .search-cell::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--line); }
.search-cell svg { color: var(--muted); flex-shrink: 0; }
.search-cell input, .search-cell select {
  border: none; outline: none; background: none; width: 100%; padding: 13px 10px; font-size: .93rem;
}
.search-cell select { appearance: none; cursor: pointer; }
.search-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: .85rem; color: rgba(255,255,255,.8); }
.search-tags a { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 4px 12px; border-radius: 999px; }
.search-tags a:hover { background: #fff; color: var(--brand); }

/* Khối thông tin pháp lý hiển thị ngay đầu trang */
.legal-hero {
  background: rgba(255, 255, 255, .97); border-radius: var(--radius);
  border-left: 5px solid var(--accent); box-shadow: var(--shadow-lg);
  padding: 20px 26px; margin-top: 26px; max-width: 660px;
}
.legal-hero p {
  color: var(--ink); font-weight: 700; font-size: 1.02rem;
  line-height: 1.7; margin: 0; word-break: break-word;
}
.legal-hero p span.lbl { color: var(--brand); }
.legal-hero p a { color: var(--ink); }
.legal-hero p a:hover { color: var(--accent-600); text-decoration: underline; }

.hero-card {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(14px); border-radius: var(--radius-lg); padding: 26px;
}
.hero-card h3 { color: #fff; margin-bottom: 4px; }
.hero-job {
  background: #fff; border-radius: var(--radius); padding: 14px; display: flex; gap: 13px;
  align-items: center; margin-bottom: 11px; transition: transform .2s;
}
.hero-job:hover { transform: translateX(5px); }
.hero-job:last-child { margin-bottom: 0; }
.hero-job b { display: block; font-size: .92rem; color: var(--ink); }
.hero-job span { font-size: .8rem; color: var(--muted); }
.hero-job .sal { margin-left: auto; color: var(--green); font-weight: 700; font-size: .85rem; text-align: right; }

/* ---------- 9. Logo công ty / avatar chữ ---------- */
.clogo {
  width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16,35,70,.13);
}
.clogo-sm { width: 42px; height: 42px; border-radius: 10px; font-size: .8rem; }
.clogo-lg { width: 88px; height: 88px; border-radius: 20px; font-size: 1.6rem; }

/* ---------- 10. Thẻ việc làm ---------- */
.job-card { position: relative; padding: 20px; display: flex; flex-direction: column; height: 100%; }
.job-card .job-top { display: flex; gap: 14px; margin-bottom: 14px; }
.job-card h3 { font-size: 1.02rem; margin-bottom: 5px; }
.job-card h3 a:hover { color: var(--brand); }
.job-company { font-size: .87rem; color: var(--muted); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--body); margin-bottom: 14px; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { color: var(--muted); flex-shrink: 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.job-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px dashed var(--line); margin-top: auto; gap: 10px;
}
.job-salary { color: var(--green); font-weight: 700; font-size: .96rem; }
.save-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); transition: all .2s; flex-shrink: 0;
}
.save-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }
.save-btn.saved { background: var(--accent); border-color: var(--accent); color: #fff; }
.job-ribbon { position: absolute; top: 14px; right: 14px; }
.job-card.featured { border-color: #ffd8c6; background: linear-gradient(180deg, #fffaf7, #fff 60%); }

/* Danh sách dạng hàng */
.job-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.job-row .job-body { flex: 1; min-width: 0; }
.job-row .job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex-shrink: 0; }

/* ---------- 11. Danh mục ngành nghề ---------- */
.cat-card { padding: 24px 20px; text-align: center; display: block; }
.cat-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  margin: 0 auto 14px; background: var(--brand-50); color: var(--brand); transition: all .25s;
}
.cat-card:hover .cat-icon { background: var(--brand); color: #fff; transform: translateY(-4px) rotate(-6deg); }
.cat-card h4 { margin-bottom: 3px; }
.cat-card p { font-size: .84rem; color: var(--muted); }

/* ---------- 12. Thống kê / quy trình ---------- */
.stat-band { background: var(--brand-700); background-image: var(--grad); color: #fff; }
.stat-item { text-align: center; padding: 12px; }
.stat-item b { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.stat-item span { color: rgba(255,255,255,.82); font-size: .9rem; }
.step { text-align: center; padding: 26px 20px; position: relative; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--white); color: var(--brand);
  font-weight: 800; font-size: 1.15rem; border: 2px dashed var(--brand-100); box-shadow: var(--shadow-sm);
}
.step:hover .step-num { background: var(--brand); color: #fff; border-style: solid; border-color: var(--brand); }

/* ---------- 13. Công ty ---------- */
.company-card { padding: 24px; text-align: center; }
.company-card .clogo { margin: 0 auto 14px; }
.company-card h4 a:hover { color: var(--brand); }

/* ---------- 14. Bài viết ---------- */
.post-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.post-thumb { height: 178px; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.post-thumb .badge { position: absolute; top: 13px; left: 13px; }
.post-thumb i { font-size: 2.6rem; opacity: .35; font-style: normal; }
.post-card .card-pad { display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.03rem; margin-bottom: 9px; }
.post-card h3 a:hover { color: var(--brand); }
.post-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 12px; }

/* ---------- 15. Đánh giá ---------- */
.testi { padding: 26px; height: 100%; display: flex; flex-direction: column; }
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }
.testi p { font-style: italic; color: var(--body); }
.testi-user { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

/* ---------- 16. Trang trong: banner ---------- */
.page-banner { background: var(--brand-700); background-image: var(--grad); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
.page-banner::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 24px 24px; opacity: .5;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .87rem; color: rgba(255,255,255,.82); margin-top: 9px; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- 17. Bố cục sidebar ---------- */
.layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.layout.right { grid-template-columns: 1fr 320px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.widget h4 { font-size: .95rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.filter-group { margin-bottom: 18px; }
.filter-group > b { display: block; font-size: .84rem; color: var(--ink); margin-bottom: 9px; }
.toolbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.view-toggle { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 9px; }
.view-toggle button { width: 34px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-xs); }

/* ---------- 18. Phân trang ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; font-weight: 600; font-size: .9rem; color: var(--body); transition: all .2s;
}
.pagination button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pagination button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 19. Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button {
  padding: 12px 18px; font-weight: 600; font-size: .92rem; color: var(--muted);
  border-bottom: 2.5px solid transparent; white-space: nowrap;
}
.tabs button.on { color: var(--brand); border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeIn .3s; }

/* ---------- 20. Bảng ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
table.tbl th, table.tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .9rem; vertical-align: middle; }
table.tbl th { background: var(--bg); font-weight: 700; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.tbl tbody tr:hover { background: #fbfcfe; }
table.tbl tbody tr:last-child td { border-bottom: none; }

/* ---------- 21. Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16,35,70,.55); backdrop-filter: blur(3px);
  z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.modal-backdrop.on { display: flex; animation: fadeIn .2s; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  box-shadow: var(--shadow-lg); animation: pop .25s; max-height: 92vh; display: flex; flex-direction: column; margin: auto;
}
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { font-size: 1.1rem; }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--bg); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.modal-x { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.modal-x:hover { background: var(--bg); color: var(--red); }

/* ---------- 22. Toast ---------- */
#toasts { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 40px)); }
.toast {
  background: #fff; border-left: 4px solid var(--brand); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 13px 16px; display: flex; gap: 11px; align-items: flex-start;
  animation: slideIn .3s; font-size: .9rem;
}
.toast.ok { border-color: var(--green); } .toast.ok svg { color: var(--green); }
.toast.err { border-color: var(--red); } .toast.err svg { color: var(--red); }
.toast.info svg { color: var(--brand); }
.toast b { display: block; color: var(--ink); font-size: .93rem; }

/* ---------- 23. Footer ---------- */
.site-footer { background: #0d1b33; color: rgba(255,255,255,.68); padding-top: 58px; margin-top: 20px; }
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 18px; position: relative; padding-bottom: 11px; }
.site-footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 34px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.site-footer a:hover { color: #fff; padding-left: 4px; }
.footer-links li { margin-bottom: 10px; font-size: .91rem; }
.footer-links a { display: inline-block; transition: all .2s; }
.site-footer .logo-text b { color: #fff; }
.site-footer .logo-text span { color: rgba(255,255,255,.5); }

.legal-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 18px; margin-top: 18px;
}
.legal-box .legal-row { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; padding: 7px 0; }
.legal-box .legal-row + .legal-row { border-top: 1px dashed rgba(255,255,255,.1); }
.legal-box svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.legal-box .lb { display: block; color: rgba(255,255,255,.45); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-box .lv { color: #fff; font-weight: 600; line-height: 1.5; }
.legal-box a.lv:hover { color: var(--accent); padding-left: 0; }

.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: all .2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); padding-left: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .86rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; outline: none;
}
.newsletter input::placeholder { color: rgba(255,255,255,.4); }
.newsletter input:focus { border-color: var(--accent); }

/* ---------- 24. Nút lên đầu trang ---------- */
#toTop {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  z-index: 800; opacity: 0; visibility: hidden; transition: all .3s;
}
#toTop.on { opacity: 1; visibility: visible; }
#toTop:hover { background: var(--accent); transform: translateY(-4px); }

/* ---------- 25. Trạng thái rỗng / loading ---------- */
.empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .ei { width: 72px; height: 72px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin: 0 auto 16px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #eef1f7 25%, #f7f9fc 50%, #eef1f7 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }

/* ---------- 26. Nội dung bài viết ---------- */
.prose { color: var(--body); }
.prose h2 { font-size: 1.4rem; margin: 30px 0 13px; }
.prose h3 { font-size: 1.13rem; margin: 24px 0 10px; }
.prose p { margin-bottom: 15px; }
.prose ul { list-style: none; margin: 0 0 16px; }
.prose ul li { position: relative; padding-left: 25px; margin-bottom: 9px; }
.prose ul li::before {
  content: ''; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.prose ol { margin: 0 0 16px 20px; list-style: decimal; }
.prose ol li { margin-bottom: 9px; padding-left: 4px; }
.prose blockquote {
  border-left: 4px solid var(--brand); background: var(--brand-50);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; font-style: italic; color: var(--brand-700);
}
.prose strong { color: var(--ink); }

/* ---------- 27. Bảng giá ---------- */
.price-card { padding: 30px 26px; text-align: center; position: relative; height: 100%; display: flex; flex-direction: column; }
.price-card.pop { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price-card .pv { font-size: 2.1rem; font-weight: 800; color: var(--brand); margin: 10px 0 2px; }
.price-card ul { text-align: left; margin: 20px 0; flex: 1; }
.price-card ul li { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 11px; font-size: .9rem; }
.price-card ul li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.price-card ul li.no { color: var(--muted); } .price-card ul li.no svg { color: var(--line); }
.pop-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }

/* ---------- 28. Accordion (FAQ) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.acc-q { width: 100%; padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.acc-q svg { transition: transform .25s; color: var(--brand); flex-shrink: 0; }
.acc.on .acc-q { color: var(--brand); }
.acc.on .acc-q svg { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s; }
.acc-a > div { padding: 0 20px 18px; font-size: .93rem; }
.acc.on .acc-a { max-height: 460px; }

/* ---------- 29. Bảng quản trị ---------- */
.admin-layout { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.admin-side { background: #101f3b; color: rgba(255,255,255,.72); padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .logo { padding: 0 20px 18px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-side .logo-text b { color: #fff; }
.admin-menu { padding: 0 10px; }
.admin-menu li > a, .admin-menu li > button {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 9px;
  font-size: .9rem; font-weight: 500; width: 100%; text-align: left; margin-bottom: 3px; color: rgba(255,255,255,.72);
}
.admin-menu li > a:hover, .admin-menu li > button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu li.on > button, .admin-menu li.on > a { background: var(--brand); color: #fff; }
.admin-menu .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); padding: 16px 14px 7px; }
.admin-main { background: var(--bg); min-width: 0; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 40; }
.admin-body { padding: 26px; }
.kpi { padding: 20px; display: flex; gap: 15px; align-items: center; }
.kpi-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.kpi b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.kpi span { font-size: .85rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 16px; }
.bars .bar { flex: 1; background: var(--grad); border-radius: 7px 7px 0 0; position: relative; min-height: 5px; transition: opacity .2s; }
.bars .bar:hover { opacity: .82; }
.bars .bar span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: .74rem; color: var(--muted); }
.bars .bar i { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: .74rem; font-weight: 700; color: var(--ink); font-style: normal; }

/* ---------- 30. Xác thực ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-visual { background: var(--brand-700); background-image: var(--grad); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-visual::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 24px 24px; opacity: .5; }
.auth-visual > * { position: relative; z-index: 2; }
.auth-visual h2 { color: #fff; }
.auth-form { padding: 48px 40px; display: flex; align-items: center; justify-content: center; background: #fff; }
.auth-form-inner { width: 100%; max-width: 400px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-pick label { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; text-align: center; cursor: pointer; transition: all .2s; font-size: .88rem; font-weight: 600; }
.role-pick input { display: none; }
.role-pick input:checked + span { color: var(--brand); }
.role-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.role-pick svg { display: block; margin: 0 auto 7px; }

/* ---------- 31. Tiện ích khác ---------- */
.divider-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .84rem; margin: 20px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.progress { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .4s; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item::before {
  content: ''; position: absolute; left: -26px; top: 5px; width: 11px; height: 11px;
  border-radius: 50%; background: #fff; border: 2.5px solid var(--brand);
}
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 340px; background: var(--line-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.file-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; cursor: pointer; transition: all .2s; background: var(--bg); }
.file-drop:hover, .file-drop.drag { border-color: var(--brand); background: var(--brand-50); }
.chip-x { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-50); color: var(--brand); padding: 5px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.chip-x button { color: var(--brand); display: grid; place-items: center; opacity: .7; }
.chip-x button:hover { opacity: 1; }

/* ---------- 32. Hiệu ứng ---------- */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(14px) } to { opacity: 1; transform: none } }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px) } to { opacity: 1; transform: none } }
@keyframes shimmer { to { background-position: -200% 0 } }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-11px) } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
.floaty { animation: float 5s ease-in-out infinite; }

/* ---------- 33. Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-card { max-width: 520px; }
  .layout, .layout.right { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
}
@media (max-width: 900px) {
  .topbar-info span.hide-md { display: none; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-cell::before { display: none !important; }
  .search-row > .btn { grid-column: span 2; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(320px, 84vw); background: #fff;
    box-shadow: var(--shadow-lg); padding: 16px; overflow-y: auto; transform: translateX(105%);
    transition: transform .3s; z-index: 950; border-left: 1px solid var(--line);
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li > a { padding: 12px 14px; justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 6px 14px; padding: 0; display: none; }
  .has-drop.open .dropdown { display: block; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header-actions .btn-hide-sm { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 46px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .search-row > .btn { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-info span:not(:first-child) { display: none; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 1.4rem; }
  .legal-hero { padding: 16px 18px; margin-top: 20px; }
  .legal-hero p { font-size: .92rem; line-height: 1.65; }
  .job-row { flex-wrap: wrap; }
  .job-row .job-side { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
  .admin-body { padding: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- 34. In ấn ---------- */
@media print {
  .site-header, .topbar, .site-footer, #toTop, .no-print { display: none !important; }
  body { background: #fff; }
}
