﻿:root {
  --ink: #1a1a1a;
  --muted: #666666;
  --line: rgba(26, 26, 26, .10);
  --bg: #f6f4ef;
  --card: #ffffff;
  --g: #edbb02;
  --gd: #c99700;
  --g2: #ff9800;
  --clay: #e68900;
  --soft: #fff6d6;
  --side: #1a1a1a;
  --side2: #2c2c2c;
  --shadow: 0 20px 50px rgba(26, 26, 26, .08);
  --shadow-sm: 0 8px 24px rgba(26, 26, 26, .06);
  --danger: #dc2626;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --primary-gradient: linear-gradient(135deg, #edbb02, #ff9800);
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 480px at -10% -5%, rgba(237,187,2,.18), transparent 55%),
    radial-gradient(800px 420px at 110% 0%, rgba(255,152,0,.12), transparent 50%),
    radial-gradient(600px 300px at 50% 100%, rgba(237,187,2,.08), transparent 60%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gd); text-decoration: none; }
a:hover { color: var(--g2); }

.shell {
  --sidebar-w: 260px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns .28s var(--ease);
}
.shell.sidebar-collapsed {
  --sidebar-w: 76px;
}
.sidebar-backdrop {
  display: none;
}

/* —— Sidebar —— */
.aside {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  width: var(--sidebar-w);
  background:
    linear-gradient(165deg, #111111 0%, var(--side) 45%, var(--side2) 100%);
  color: #f0f0f0;
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
  transition: width .28s var(--ease), transform .28s var(--ease), padding .28s var(--ease);
}
.aside-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.aside::before {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  right: -60px; top: -40px;
  border-radius: 50%;
  background: rgba(237, 187, 2, .16);
  pointer-events: none;
}
.aside .brand {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0 4px 8px;
  padding: 4px 8px 10px;
  text-decoration: none;
}
.aside .brand:hover { color: #fff; }
.aside .brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}
.aside .nav-label {
  margin: 10px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(240,240,240,.42);
}
.aside a.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #cfcfcf;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.aside a.nav .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  font-size: 13px;
  flex-shrink: 0;
}
.aside a.nav:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.aside a.nav.on {
  background: linear-gradient(135deg, rgba(237,187,2,.35), rgba(255,152,0,.18));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(237,187,2,.28);
}
.aside a.nav.on .ico {
  background: rgba(237,187,2,.45);
  color: #1a1a1a;
}
.sidebar-credit {
  position: relative;
  margin-top: auto;
  padding: 18px 10px 4px;
  color: rgba(240,240,240,.55);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.sidebar-credit a {
  color: var(--g);
  font-weight: 700;
}
.sidebar-credit a:hover { color: var(--g2); }

/* Collapsed desktop: icon rail */
.shell.sidebar-collapsed .aside {
  padding-left: 10px;
  padding-right: 10px;
}
.shell.sidebar-collapsed .aside .brand {
  margin: 0 0 10px;
  padding: 6px 0;
  text-align: center;
}
.shell.sidebar-collapsed .aside .brand-logo {
  height: 28px;
  margin: 0 auto;
  object-position: center;
}
.shell.sidebar-collapsed .aside .nav-label,
.shell.sidebar-collapsed .sidebar-credit,
.shell.sidebar-collapsed .aside a.nav {
  font-size: 0;
  letter-spacing: 0;
}
.shell.sidebar-collapsed .aside .nav-label {
  height: 1px;
  margin: 8px 6px;
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  color: transparent;
}
.shell.sidebar-collapsed .aside a.nav .nav-badge {
  display: none;
}
.shell.sidebar-collapsed .aside a.nav .ico {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.shell.sidebar-collapsed .aside a.nav::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 50;
}
.shell.sidebar-collapsed .aside a.nav:hover::after {
  opacity: 1;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, transform .15s;
}
.sidebar-toggle:hover {
  background: var(--soft);
  border-color: rgba(237,187,2,.35);
}
.sidebar-toggle:active { transform: translateY(1px); }
.sidebar-toggle-icon {
  display: block;
  transform: rotate(180deg); /* thu → mũi tên phải (mở lớn) */
  transition: transform .2s ease;
}
/* đang mở → mũi tên trái (thu nhỏ) */
.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-icon {
  transform: none;
}
.aside-close {
  display: none;
  border: 0;
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
body.sidebar-lock { overflow: hidden; }

/* —— Main —— */
.main-wrap {
  padding: 28px 28px 48px;
  min-width: 0;
}
.app-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 14px;
}
/* Nút thu/mở menu sát mép sidebar 5px */
.sidebar-toggle.header-toggle {
  margin-left: -23px; /* 28px padding main-wrap - 5px */
}
.account-menu { position: relative; }
.account-menu summary {
  display: grid;
  /* Cột tên cố định → mũi tên đứng yên, chỉ xoay lên/xuống */
  grid-template-columns: 30px 18ch 28px;
  align-items: center;
  column-gap: 9px;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu .avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-gradient);
  color: #1a1a1a;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
}
.account-menu .avatar.has-photo {
  background: #ddd;
  padding: 0;
}
.account-menu .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-name {
  min-width: 0;
  max-width: 18ch;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  transition: transform .18s ease;
  transform-origin: center;
}
.account-menu[open] .account-chevron {
  transform: rotate(180deg);
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.account-dropdown strong,
.account-dropdown .username { display: block; }
.account-dropdown strong { margin-bottom: 2px; font-size: 13px; }
.account-dropdown .username { color: var(--muted); font-size: 12px; }
.account-dropdown .role {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--gd);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.account-dropdown .account-action {
  display: block;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--gd);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.account-dropdown .account-action:hover { background: #ffe9a8; }
.account-dropdown .logout {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f5f5f5;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.account-dropdown .logout:hover { background: #fdecea; color: var(--danger); }
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.topbar .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 6px;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.page-head h1, .topbar h1 {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.page-head .sub, .topbar .sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.modal.modal-split-village {
  width: min(760px, 100%);
  max-height: min(92vh, 860px);
}
.modal.modal-split-village .modal-b {
  max-height: calc(min(92vh, 860px) - 130px);
  overflow: auto;
  display: grid;
  gap: 14px;
}
.split-pick {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.split-pick-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.split-pick-h strong { font-size: 13px; }
.split-pick-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}
.split-pick-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f3ea;
  font-size: 13px;
  cursor: pointer;
}
.split-pick-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.list-footer-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: box-shadow .15s;
}
.card:hover { box-shadow: var(--shadow); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}
.person-toolbar,
.list-toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.person-toolbar-filters,
.person-toolbar-search,
.list-toolbar-filters,
.list-toolbar-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.person-toolbar-search input[type=text],
.list-toolbar-search input[type=text] {
  flex: 0 1 240px;
  width: 240px;
  max-width: 100%;
  min-width: 160px;
}
.person-age-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}
.person-age-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 500;
  min-width: 0;
}
.person-age-filter .muted {
  font-size: 12px;
  white-space: nowrap;
}
.person-age-filter .inp {
  margin: 0;
  width: 4.5rem;
  min-width: 0;
}
.person-age-sep {
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
}

.field,
input[type=text],
input[type=password],
input[type=date],
input[type=tel],
input[type=number],
input[type=file],
select,
textarea {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(237,187,2,.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(237,187,2,.18);
}
textarea { min-height: 74px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--primary-gradient);
  color: #1a1a1a;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(237,187,2,.28);
  transition: filter .15s, box-shadow .15s;
}
.btn:hover {
  filter: brightness(1.05);
  color: #1a1a1a;
  box-shadow: 0 12px 28px rgba(255,152,0,.3);
}
.btn.ghost {
  background: #f0ebe3;
  color: var(--ink);
  box-shadow: none;
}
.btn.ghost:hover { background: #e6e0d6; color: var(--ink); filter: none; }
.btn.soft {
  background: linear-gradient(180deg, #fff8e1 0%, #ffefbf 100%);
  color: #8a6400;
  border: 1px solid rgba(237,187,2,.35);
  box-shadow: none;
}
.btn.soft:hover {
  background: linear-gradient(180deg, #fff3c4 0%, #ffe79a 100%);
  color: #6f5000;
  filter: none;
}
.btn.clay {
  background: linear-gradient(160deg, #ffb347, var(--g2));
  color: #1a1a1a;
  box-shadow: 0 8px 20px rgba(255,152,0,.25);
}
.btn.danger {
  background: linear-gradient(160deg, #ef6b6b, var(--danger));
  color: #fff;
  box-shadow: 0 8px 18px rgba(220,38,38,.2);
}
.btn.sm { padding: 7px 11px; font-size: 12px; border-radius: 10px; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; box-shadow: none; }

/* â€”â€” Stats â€”â€” */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.mini-stat {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}
.mini-stat::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237,187,2,.12), transparent 70%);
}
.mini-stat .label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.mini-stat b {
  display: block;
  font-size: 32px;
  font-family: "Roboto", system-ui, sans-serif;
  color: var(--gd);
  line-height: 1;
  letter-spacing: -.03em;
}
.mini-stat.clay b { color: var(--clay); }
.mini-stat .hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--g);
  font-weight: 600;
}
.mini-stat .hint.attention { color: var(--clay); }

.section-title {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 18px;
  margin: 6px 0 12px;
}
.panel-h .section-title { margin: 0; }

.vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vgrid-empty { grid-column: 1 / -1; margin: 0; }
.dash-signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.dash-signup-col {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line, #e6ebe7);
  border-radius: 14px;
  background: #fff;
}
.dash-signup-col-h {
  margin-bottom: 12px;
}
.dash-signup-col-h h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.dash-signup-col .table-scroll {
  max-height: 420px;
  overflow: auto;
}
.vc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
  color: inherit;
  text-decoration: none;
  display: block;
}
.vc:hover {
  box-shadow: var(--shadow);
  color: inherit;
}
.mini-stat .stat-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--soft);
  color: var(--gd);
}
.mini-stat .stat-ico.homes { background: #e8f0ff; color: #2a5a9e; }
.mini-stat .stat-ico.study { background: #fff6d6; color: var(--g); }
.mini-stat .stat-ico.drop { background: #fff1e0; color: var(--clay); }
.topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.link-soft {
  font-size: 13px;
  font-weight: 700;
  color: var(--g);
}
.link-soft:hover { color: var(--gd); }
.vc strong {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 700;
}
.vc .nums {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}
.vc .nums em {
  display: block;
  font-style: normal;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  font-family: "Roboto", system-ui, sans-serif;
  letter-spacing: -.02em;
}

/* —— Table —— */
.table-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 26, 26, .28) transparent;
}
.table-scroll::-webkit-scrollbar {
  height: 6px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(26, 26, 26, .22);
  border-radius: 999px;
}
.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.table-scroll-hint {
  display: none;
}
table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
table.data th {
  text-align: left;
  padding: 12px 14px;
  background: #f7f3ea;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
table.data td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
table.data tbody tr {
  transition: background .15s;
}
table.data tbody tr:hover {
  background: #faf7f0;
}
.table-secondary {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--gd);
  font-size: 11px;
  font-weight: 700;
}
.pill.warn { background: #fff1e0; color: var(--clay); }
.status-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status-pill.active { background: var(--soft); color: var(--gd); }
.status-pill.inactive { background: #fdecea; color: var(--danger); }

.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.actions form { display: inline; margin: 0; }
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f4ec;
  border: 1px solid rgba(0,0,0,.06);
}
.bulk-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.col-check {
  width: 36px;
  text-align: center;
  vertical-align: middle;
}
.col-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.flash {
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.flash.success {
  background: var(--soft);
  color: var(--gd);
  border: 1px solid rgba(237,187,2,.18);
}
.flash.error {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid rgba(180,35,24,.15);
}

/* â€”â€” Modal â€”â€” */
.modal-back {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 22, 16, .58);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-back.show { display: flex; }
.modal-back.modal-front { z-index: 60; }
.modal {
  width: min(540px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
}
.modal:has(.ts-wrapper.dropdown-active) {
  overflow: visible;
}
.modal-b:has(.ts-wrapper.dropdown-active) {
  overflow: visible;
}
.modal.modal-person {
  width: min(1180px, 98vw);
  max-height: 94vh;
}
.modal.modal-quick { width: min(380px, 100%); }
.modal.modal-members {
  width: min(1180px, 98vw);
  max-height: 94vh;
}
.modal.modal-household {
  width: min(1240px, 98vw);
  max-height: 94vh;
}
/* Hộ / nhân khẩu / thành viên: cố định header+footer, chỉ cuộn phần giữa */
.modal.modal-person,
.modal.modal-household,
.modal.modal-members {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.modal-person > form,
.modal.modal-household > form,
.modal.modal-members > .members-panel,
.modal.modal-members > .members-panel > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.modal.modal-person .modal-h,
.modal.modal-household .modal-h,
.modal.modal-members .modal-h,
.modal.modal-person .modal-foot,
.modal.modal-household .modal-foot,
.modal.modal-members .modal-foot {
  flex: 0 0 auto;
}
.modal.modal-person .modal-b,
.modal.modal-household .modal-b,
.modal.modal-members .modal-b {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal.modal-person.is-readonly input,
.modal.modal-person.is-readonly select,
.modal.modal-person.is-readonly textarea,
.modal.modal-person.is-readonly .ts-wrapper .ts-control {
  background: #f6f3ec;
  color: var(--ink);
  cursor: default;
}
.modal.modal-person.is-readonly .ts-wrapper.disabled .ts-control {
  background: #f6f3ec;
  opacity: 1;
}
.hh-members-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.hh-members-head {
  margin-bottom: 12px;
}
.hh-members-head strong { display: block; font-size: 1.05rem; }
.hh-members-head .muted { display: block; margin-top: 4px; font-size: 0.92rem; }
.hh-members-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
  padding-top: 4px;
}
.hh-member-row {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
}
.hh-member-row-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.hh-member-row-h strong { font-size: 0.95rem; }
.modal.modal-teachers {
  width: min(1080px, 100%);
  max-height: min(92vh, 820px);
}
.modal.modal-teachers .modal-b {
  max-height: calc(min(92vh, 820px) - 118px);
  overflow: auto;
}
.members-panel[hidden] { display: none !important; }
.modal.modal-facility {
  width: min(1040px, 100%);
  height: min(92dvh, 900px);
  max-height: min(92dvh, 900px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.facility-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
.facility-head {
  flex: 0 0 auto;
  gap: 12px;
  background:
    linear-gradient(180deg, #fffdf7 0%, #fff 100%);
}
.facility-head-side {
  display: flex;
  align-items: center;
  gap: 10px;
}
.facility-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  background: #f3eee6;
  color: var(--muted);
  white-space: nowrap;
}
.facility-status.ok {
  background: #eaf7ea;
  color: #1f7a3a;
}
.facility-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 14px 16px 8px;
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(237,187,2,.08), transparent 55%),
    #faf8f4;
  display: grid;
  gap: 12px;
  align-content: start;
}
.facility-view-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff6d6;
  border: 1px solid rgba(237,187,2,.35);
  color: #8a6400;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.facility-form.is-readonly .facility-body input,
.facility-form.is-readonly .facility-body textarea {
  background: #f3f1ec;
  color: var(--ink);
  cursor: default;
}
.facility-section {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(26,26,26,.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(26,26,26,.03);
}
.facility-section-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(26,26,26,.1);
}
.facility-section-h h3 {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #8a6400;
}
.modal-f.modal-f-facility {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.modal-f.modal-f-facility label {
  gap: 7px;
  padding: 10px 11px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefb 0%, #f7f2e8 100%);
  border: 1px solid rgba(26,26,26,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.modal-f.modal-f-facility label:hover {
  border-color: rgba(237,187,2,.35);
  background: linear-gradient(180deg, #fff 0%, #fbf6ec 100%);
}
.modal-f.modal-f-facility label:focus-within {
  background: #fff;
  border-color: rgba(237,187,2,.7);
  box-shadow:
    0 0 0 3px rgba(237,187,2,.14),
    0 8px 18px rgba(201,151,0,.08);
  transform: translateY(-1px);
}
.facility-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 16px;
  color: #6f675c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}
.facility-label em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b08900;
  background: rgba(237,187,2,.14);
  border-radius: 999px;
  padding: 2px 6px;
}
.modal-f.modal-f-facility input[type=number] {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(26,26,26,.1);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  box-shadow: inset 0 1px 2px rgba(26,26,26,.04);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  text-align: right;
  color: var(--ink);
  appearance: textfield;
  -moz-appearance: textfield;
}
.modal-f.modal-f-facility input[type=number]::-webkit-outer-spin-button,
.modal-f.modal-f-facility input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.modal-f.modal-f-facility input[type=number]:hover {
  border-color: rgba(237,187,2,.4);
  background: #fff;
}
.modal-f.modal-f-facility input[type=number]:focus {
  outline: none;
  border-color: rgba(237,187,2,.85);
  background: #fff;
  box-shadow:
    inset 0 1px 2px rgba(26,26,26,.03),
    0 0 0 3px rgba(237,187,2,.16);
}
.modal-f.modal-f-facility input[type=number][readonly],
.facility-field-ratio input[type=number] {
  background: linear-gradient(180deg, #fff8e4 0%, #ffe9a8 100%);
  border-color: rgba(201,151,0,.35);
  color: #8a6400;
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.modal-f.modal-f-facility input[type=number][readonly]:focus,
.facility-field-ratio input[type=number]:focus {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  border-color: rgba(201,151,0,.45);
}
.facility-field-ratio {
  background: linear-gradient(180deg, #fff9e8 0%, #ffefc2 100%) !important;
  border-color: rgba(237,187,2,.4) !important;
}
.facility-field-area .facility-label em {
  color: #8a6400;
  background: rgba(255,152,0,.12);
}
.facility-note {
  display: block;
  margin: 0;
}
.facility-note textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(26,26,26,.1);
  background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
  box-shadow: inset 0 1px 2px rgba(26,26,26,.04);
  padding: 12px 14px;
}
.facility-note textarea:focus {
  border-color: rgba(237,187,2,.85);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(237,187,2,.16);
}
.facility-foot {
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 2;
}
.school-list-card .toolbar { margin-bottom: 4px; }
.school-table td { vertical-align: middle; }
.school-name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.school-name-cell strong {
  font-size: 14px;
  line-height: 1.35;
}
.school-meta-dots {
  display: inline-flex;
  gap: 6px;
}
.school-dot {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  background: #f1ece4;
  color: #9a948a;
}
.school-dot.on {
  background: #fff1c2;
  color: #8a6400;
}
.school-level-pill {
  max-width: 180px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.school-count {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f7f3ea;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.school-actions {
  justify-content: flex-end;
  min-width: 280px;
}
.modal.modal-user { width: min(760px, 100%); }
.modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-h strong {
  font-size: 17px;
  font-family: "Roboto", system-ui, sans-serif;
}
.modal-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.member-table { min-width: 720px; }
.school-teacher-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.teacher-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3eee6;
}
.teacher-meta label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.teacher-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.teacher-check input { width: 16px; height: 16px; }
.teacher-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.teacher-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.teacher-import-form { display: inline-flex; margin: 0; align-items: center; }
.teacher-import-btn { cursor: pointer; margin: 0; }
.teacher-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.teacher-form[hidden] { display: none !important; }
.teacher-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #f7f3ea;
}
.teacher-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.teacher-form-head strong {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 15px;
}
.teacher-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: end;
}
.teacher-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.teacher-form-grid label.span-2 { grid-column: span 2; }
.teacher-check-field {
  justify-content: space-between;
  min-height: 100%;
}
.teacher-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  min-height: 40px;
}
.teacher-list { min-width: 0; }
.teacher-table { min-width: 860px; font-size: 12.5px; }
.teacher-table th, .teacher-table td { padding: 7px 8px; }
.empty-state {
  margin: 0;
  padding: 24px;
  border-radius: 12px;
  background: #f7f3ea;
  color: var(--muted);
  text-align: center;
}
.modal-x {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 0;
  background: #f0ebe3;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  font-weight: 700;
  display: grid; place-items: center;
  text-decoration: none;
}
.modal-x-link { text-align: center; line-height: 34px; }
.modal-b { padding: 16px 18px; }
.user-scope-group {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(237,187,2,.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffbeb 0%, #fff8e7 100%);
}
.user-scope-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--gd);
}
.user-scope-fields {
  grid-template-columns: 1fr;
  gap: 10px;
}
.user-scope-fields label:not([hidden]):not(.is-scope-hidden) {
  display: flex;
}
.user-scope-fields label.is-scope-hidden,
.user-scope-fields label[hidden] {
  display: none !important;
}
.user-docs-panel {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(26, 26, 26, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
}
.user-docs-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
  font-size: 13px;
}
.user-docs-meta .muted {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}
.user-docs-note {
  margin: 0 0 10px;
  font-size: 12px;
}
.user-docs-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.user-docs-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(26, 26, 26, .1);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.user-docs-tile span {
  font-size: 11px;
  font-weight: 700;
}
.user-docs-tile img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: rgba(26, 26, 26, .04);
  display: block;
}
.user-docs-tile[data-user-doc="signature"] {
  grid-column: 1 / -1;
}
.user-docs-tile[data-user-doc="signature"] img {
  max-height: 160px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.user-docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .user-docs-meta,
  .user-docs-gallery {
    grid-template-columns: 1fr;
  }
  .user-docs-tile[data-user-doc="signature"] {
    grid-column: auto;
  }
}
.user-scope-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.modal-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-f.modal-f-person { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.modal-person .modal-f.modal-f-person,
.modal-household .modal-f.modal-f-person,
.modal-members .modal-f.modal-f-person {
  gap: 18px;
}
.modal-person .modal-f label,
.modal-household .modal-f label,
.modal-members .modal-f label {
  font-size: 12.5px;
  gap: 8px;
}
.modal-person .modal-f input,
.modal-person .modal-f select,
.modal-person .modal-f textarea,
.modal-household .modal-f input,
.modal-household .modal-f select,
.modal-household .modal-f textarea,
.modal-members .modal-f input,
.modal-members .modal-f select,
.modal-members .modal-f textarea {
  padding: 12px 14px;
  font-size: 15px;
  min-height: 46px;
  border-radius: 12px;
}
.modal-person .modal-f textarea,
.modal-household .modal-f textarea,
.modal-members .modal-f textarea {
  min-height: 88px;
}
.modal-person .modal-h,
.modal-household .modal-h,
.modal-members .modal-h {
  padding: 18px 22px;
}
.modal-person .modal-h strong,
.modal-household .modal-h strong,
.modal-members .modal-h strong {
  font-size: 19px;
}
.modal-person .modal-b,
.modal-household .modal-b,
.modal-members .modal-b {
  padding: 20px 22px;
}
.modal-person .modal-foot,
.modal-household .modal-foot,
.modal-members .modal-foot {
  padding: 16px 22px;
}
.modal-f label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
  position: relative;
  z-index: 1;
}
.modal-f label:has(.ts-wrapper.dropdown-active) {
  z-index: 90;
}
.modal-f label.full { grid-column: 1 / -1; }
.modal-f label.span-2 { grid-column: span 2; }
.modal-f.one-column { grid-template-columns: 1fr; }
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.filter-tabs a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.filter-tabs a.on,
.filter-tabs a:hover {
  border-color: rgba(237,187,2,.25);
  background: var(--soft);
  color: var(--gd);
}
.filter-tab-wrap {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  overflow: hidden;
}
.filter-tab-wrap.on,
.filter-tab-wrap:hover {
  border-color: rgba(237,187,2,.25);
  background: var(--soft);
}
.filter-tab-wrap > a:first-child {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-right: 8px;
}
.filter-tab-wrap.on > a:first-child,
.filter-tab-wrap:hover > a:first-child {
  color: var(--gd);
  background: transparent;
}
.filter-tab-edit {
  display: grid;
  place-items: center;
  min-width: 28px;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.filter-tab-wrap.on .filter-tab-edit,
.filter-tab-edit:hover {
  color: var(--gd);
  background: rgba(237,187,2,.12);
}
.filter-tab-delete-form {
  display: contents;
}
.filter-tab-delete {
  display: grid;
  place-items: center;
  min-width: 28px;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
.filter-tab-wrap.on .filter-tab-delete,
.filter-tab-delete:hover {
  color: #b42318;
  background: rgba(180, 35, 24, .08);
}
.attribute-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.attribute-tabs-row .attribute-tabs {
  margin-bottom: 0;
  flex: 1 1 auto;
}
.attribute-tabs-row .attribute-add-type {
  flex: 0 0 auto;
  white-space: nowrap;
}
.list-header-actions {
  margin-top: 0;
  margin-bottom: 12px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.modal-f label.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f3ea;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.checkbox-label input { width: 16px; height: 16px; margin: 0; accent-color: var(--g); }
.modal-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #faf7f0;
  border-radius: 0 0 20px 20px;
}

/* Popup xác nhận xóa / thao tác nguy hiểm */
.confirm-back {
  z-index: 90;
  padding: 16px;
}
.modal.modal-confirm {
  width: min(420px, 100%);
  max-height: none;
  overflow: hidden;
}
.modal.modal-confirm .modal-b {
  max-height: none;
  overflow: visible;
  padding: 18px 20px;
}
.confirm-message {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.modal.modal-confirm .modal-foot {
  justify-content: stretch;
}
.modal.modal-confirm .modal-foot .btn {
  flex: 1 1 0;
  min-height: 44px;
  justify-content: center;
}

/* â€”â€” Login â€”â€” */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(237,187,2,.22), transparent 55%),
    radial-gradient(700px 400px at 100% 100%, rgba(230,137,0,.14), transparent 50%),
    linear-gradient(160deg, #fff6d6, #f6f4ef 50%, #fffef8);
}
.login-page::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: 8%; top: 12%;
  border-radius: 50%;
  background: rgba(255,200,120,.18);
}
.login-shell {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.login-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.login-brand-logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: 110px;
  object-fit: contain;
}
.login-card {
  position: relative;
  width: 100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 28px 30px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.7);
}
.login-card > p {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
}
.login-card .btn { width: 100%; margin-top: 10px; padding: 12px; font-size: 14px; }
.login-card .inp { width: 100%; margin-bottom: 10px; background: #faf7f0; }
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--g);
}
.login-default { margin: 16px 0 0; text-align: center; }
.login-card .login-copyright {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.login-copyright a { color: var(--gd); font-weight: 700; }

/* —— Đổi mật khẩu —— */
.password-page {
  width: min(440px, 100%);
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.password-page-head {
  justify-content: center;
  text-align: center;
  margin-bottom: 16px;
}
.password-page-head .sub { margin-top: 8px; }
.password-card {
  width: 100%;
  padding: 28px 26px;
}
.password-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.password-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
}
.password-field .inp {
  width: 100%;
  box-sizing: border-box;
}
.password-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.password-actions .btn {
  min-width: 140px;
}

/* —— Hồ sơ / CCCD / Hợp đồng —— */
.profile-page {
  width: min(720px, 100%);
  margin: 8px auto 0;
}
.profile-card { width: 100%; }
.profile-avatar-block {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(26, 26, 26, .08);
  margin-bottom: 4px;
}
.profile-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: var(--primary-gradient);
  color: #1a1a1a;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-meta strong { display: block; margin-bottom: 4px; }
.profile-avatar-meta p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted, #666);
}
.profile-file-btn { cursor: pointer; }
.profile-section-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.profile-cccd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.profile-upload-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(26, 26, 26, .18);
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, .45);
}
.profile-upload-label {
  font-size: 12px;
  font-weight: 700;
}
.profile-upload-preview {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: rgba(26, 26, 26, .04);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.profile-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-upload-empty {
  font-size: 12px;
  color: var(--muted, #777);
}
.contract-doc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink, #1a1a1a);
  margin-bottom: 18px;
}
.contract-intro { margin-bottom: 14px !important; }
.contract-gate {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(183, 28, 28, .18);
  background: rgba(183, 28, 28, .06);
}
.contract-gate strong { display: block; margin-bottom: 6px; }
.contract-gate p { margin: 0 0 8px; font-size: 13px; }
.contract-gate ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
  font-size: 13px;
  font-weight: 600;
}
.contract-gate a { color: inherit; font-weight: 700; }
.contract-media-links a + a::before {
  content: ' · ';
  color: var(--muted, #777);
  font-weight: 400;
}
.contract-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.contract-doc h2 {
  text-align: center;
  font-size: 18px;
  margin: 0 0 8px;
}
.contract-doc h3 {
  font-size: 14px;
  margin: 16px 0 6px;
}
.contract-doc p,
.contract-doc li { margin: 0 0 8px; }
.contract-doc ul,
.contract-doc ol { padding-left: 1.25em; margin: 0 0 8px; }
.contract-meta {
  text-align: center;
  color: var(--muted, #666);
  font-size: 12px;
  margin-bottom: 16px !important;
}
.contract-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.contract-agree input { margin-top: 3px; }
.signature-pad-wrap {
  border: 1px solid rgba(26, 26, 26, .16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,248,246,.95)),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(26,26,26,.06) 28px);
  overflow: hidden;
  touch-action: none;
}
#signature-pad {
  display: block;
  width: 100%;
  height: 220px;
  cursor: crosshair;
}
.signature-pad-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.contract-signed-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: rgba(46, 125, 50, .08);
  border: 1px solid rgba(46, 125, 50, .18);
  margin-bottom: 14px;
}
.contract-signed-box p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted, #555);
}
.contract-signed-img {
  max-width: 220px;
  max-height: 100px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 26, .1);
}
.contract-sign-form.is-hidden { display: none; }
@media (max-width: 720px) {
  .profile-cccd-grid { grid-template-columns: 1fr; }
  .contract-signed-box { flex-direction: column; align-items: flex-start; }
  .contract-signed-img { max-width: 100%; }
}

.wizard { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.wizard span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #efeae1;
  color: var(--muted);
}
.wizard span.on { background: var(--primary-gradient); color: #1a1a1a; }
.import-template-action {
  display: flex;
  justify-content: flex-start;
  margin: -4px 0 14px;
}
.import-preview-scroll {
  max-height: min(70vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
}
.import-preview-scroll:focus {
  outline: 2px solid rgba(237,187,2,.45);
  outline-offset: 1px;
}
.import-preview-table {
  margin: 0;
  min-width: 2800px;
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
}
.import-preview-table th,
.import-preview-table td {
  white-space: nowrap;
  padding: 8px 12px;
  vertical-align: middle;
}
.import-preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f1df;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}
.import-preview-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  min-width: 56px;
  box-shadow: 1px 0 0 rgba(0,0,0,.06);
}
.import-preview-table thead .sticky-col {
  z-index: 3;
  background: #f7f1df;
}
.import-preview-table tr.row-error .sticky-col {
  background: #fff1f0;
}
.import-preview-table th.col-catalog,
.import-preview-table td.col-catalog {
  background: #fff8e8;
}
.import-preview-table tr.row-error td.col-catalog {
  background: #ffe2df;
  font-weight: 600;
}
.import-preview-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 12px 0 4px;
}
.import-preview-page-input {
  width: 4.5rem;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  text-align: center;
}
.import-error-list .import-error-scroll {
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
}
table.data tr.row-error td {
  background: #fff1f0;
}
table.data .ok { color: #1b7a3d; font-weight: 600; }
table.data .bad { color: #b42318; font-weight: 600; }
.text-danger { color: #b42318; }

.drop {
  border: 2px dashed rgba(237,187,2,.32);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  background: linear-gradient(180deg, #fffef8, #f6f4ef);
  margin-bottom: 12px;
}
.drop strong { display: block; font-size: 15px; margin-bottom: 4px; }
.drop-description { margin: 6px 0 12px; }

.muted { color: var(--muted); font-size: 13px; }
.note {
  margin-top: 10px;
  font-size: 13px;
  color: #8a3d12;
  background: #fff8e6;
  border: 1px solid #f0d9a0;
  border-radius: 12px;
  padding: 11px 13px;
}

.toolbar-top { margin-top: 12px; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pagination-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.pagination-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.pagination-links a,
.pagination-links span.on {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.pagination-links a:hover {
  border-color: rgba(237,187,2,.45);
  background: var(--soft);
}
.pagination-links span.on {
  border-color: transparent;
  background: var(--primary-gradient);
}
.pagination-ellipsis {
  padding: 0 3px;
  color: var(--muted);
}
.report-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.report-filter-card {
  padding: 4px 14px 8px;
  overflow: visible;
  position: relative;
  z-index: 20;
}
.report-filter-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.report-filter-row:has(.ts-wrapper.dropdown-active) {
  z-index: 30;
}
.report-filter-tag {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.report-filter-sep {
  flex: 0 0 auto;
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: var(--line);
}
.report-filter-row > select,
.report-filter-row > .ts-wrapper {
  flex: 0 0 auto;
  width: auto;
  min-width: 140px;
  max-width: 220px;
}
.report-filter-row > select {
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
}
.report-filter-row > .ts-wrapper .ts-control {
  min-height: 34px;
  padding: 4px 28px 4px 8px;
  font-size: 13px;
}
.report-age-input {
  flex: 0 0 auto;
  width: 68px;
  min-width: 68px;
  height: 34px;
  padding: 0 6px;
  text-align: center;
  font-size: 13px;
}
.report-age-sep {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 600;
}
.report-filter-row > .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.report-filter-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 0;
}
#report-results.is-loading {
  opacity: .55;
  pointer-events: none;
  transition: opacity .15s ease;
}
.report-filter-row > .ts-wrapper {
  width: 160px;
  min-width: 140px;
  max-width: 200px;
}
.report-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.report-category {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 126px;
  padding: 16px;
  overflow: hidden;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.report-category:hover {
  color: var(--ink);
  border-color: rgba(237,187,2,.5);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.report-category.on {
  border-color: rgba(237,187,2,.8);
  background: linear-gradient(145deg, #fffdf4, var(--soft));
  box-shadow: 0 12px 30px rgba(237,187,2,.16);
}
.report-category-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  color: #1a1a1a;
  background: var(--primary-gradient);
  font-weight: 800;
}
.report-category-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.report-category-body strong { font-size: 14px; line-height: 1.35; }
.report-category-body small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.report-category-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(26,26,26,.28);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
}
.report-section { padding: 20px; }
.report-section-head,
.report-current-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.report-section-head { margin-bottom: 15px; }
.report-current-head { margin: 24px 0 10px; }
.report-section-head h2,
.report-current-head h2 {
  margin: 2px 0 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.25;
}
.report-eyebrow {
  color: var(--gd);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.report-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.report-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 650;
}
.report-type:hover {
  color: var(--ink);
  border-color: rgba(237,187,2,.55);
  background: var(--soft);
}
.report-type.on {
  border-color: transparent;
  background: var(--primary-gradient);
}
.report-type small {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: var(--muted);
  background: rgba(255,255,255,.65);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.report-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: #fafafa;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 13px;
}

@media (max-width: 980px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
  html {
    scrollbar-gutter: auto;
  }
  .shell,
  .shell.sidebar-collapsed {
    --sidebar-w: 280px;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(17, 17, 17, .46);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .shell.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .aside,
  .shell.sidebar-collapsed .aside {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    width: min(var(--sidebar-w), 86vw);
    height: 100dvh;
    height: 100vh;
    transform: translateX(-105%);
    padding: 18px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 16px 0 40px rgba(0,0,0,.28);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform .24s var(--ease);
  }
  .shell.sidebar-open .aside {
    transform: translateX(0);
  }
  .aside-close { display: inline-grid; place-items: center; }
  .shell.sidebar-collapsed .aside .nav-label,
  .shell.sidebar-collapsed .sidebar-credit,
  .shell.sidebar-collapsed .aside a.nav {
    font-size: inherit;
    letter-spacing: inherit;
  }
  .shell.sidebar-collapsed .aside .nav-label {
    height: auto;
    margin: 10px 10px 6px;
    background: transparent;
    color: rgba(240,240,240,.42);
    font-size: 10px;
    letter-spacing: .12em;
  }
  .shell.sidebar-collapsed .aside a.nav {
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 12px;
    font-size: 14px;
    min-height: 46px;
  }
  .shell.sidebar-collapsed .aside a.nav::after { display: none; }
  .shell.sidebar-collapsed .aside .brand-logo {
    height: 42px;
    margin: 0;
    object-position: left center;
  }
  .aside a.nav {
    min-height: 46px;
    padding: 12px 12px;
    font-size: 14px;
  }
  .aside::before { display: none; }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }
  .mini-stat {
    padding: 12px 12px 10px;
    border-radius: 14px;
  }
  .mini-stat .label {
    margin-bottom: 4px;
    font-size: 11px;
  }
  .mini-stat b {
    font-size: 24px;
  }
  .mini-stat .hint {
    margin-top: 4px;
    font-size: 10px;
  }
  .vgrid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .vc {
    padding: 12px;
    border-radius: 12px;
  }
  .dash-signup-grid { grid-template-columns: 1fr; gap: 10px; }
  .dash-signup-col { padding: 10px; border-radius: 12px; }
  .section-title {
    font-size: 16px;
    margin: 2px 0 8px;
  }
  .main-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    padding: 10px 10px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .card,
  .page-head,
  .topbar,
  .toolbar,
  .person-toolbar,
  .list-toolbar,
  .flash,
  .modal,
  .report-filter-card {
    max-width: 100%;
    min-width: 0;
  }
  .app-header {
    margin-bottom: 8px;
    min-height: 40px;
  }
  .page-head,
  .topbar {
    gap: 8px;
    margin-bottom: 10px;
  }
  .page-head h1,
  .topbar h1 {
    font-size: 1.35rem;
  }
  .page-head .sub,
  .topbar .sub {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.35;
  }
  .topbar .eyebrow {
    margin-bottom: 2px;
    font-size: 10px;
  }
  .page-head-actions,
  .topbar-actions {
    gap: 6px;
  }
  .page-head-actions .btn,
  .topbar-actions .btn {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 12.5px;
    border-radius: 10px;
  }
  .card {
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .flash {
    margin-bottom: 10px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .bulk-bar {
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
  }
  .person-toolbar,
  .list-toolbar {
    gap: 8px;
  }
  .toolbar {
    gap: 8px;
    margin-bottom: 10px;
  }
  .sidebar-toggle.header-toggle {
    margin-left: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  /* Mobile: nút mở menu nhìn như hamburger */
  .sidebar-toggle-icon {
    display: none;
  }
  .sidebar-toggle.header-toggle::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }
  .shell.sidebar-open .sidebar-toggle.header-toggle::before {
    height: 0;
    box-shadow: none;
    background: transparent;
    position: relative;
  }
  .shell.sidebar-open .sidebar-toggle.header-toggle::after {
    content: "✕";
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
  }
  .account-menu summary {
    min-width: 0;
    min-height: 44px;
  }
  .teacher-form-grid { grid-template-columns: 1fr 1fr; }
  .teacher-form-grid label.span-2 { grid-column: 1 / -1; }
  .modal-back {
    align-items: flex-end;
    padding: 0;
  }
  .modal,
  .modal.modal-person,
  .modal.modal-members,
  .modal.modal-household,
  .modal.modal-teachers,
  .modal.modal-facility,
  .modal.modal-user,
  .modal.modal-quick,
  .modal.modal-split-village {
    width: 100%;
    max-width: 100%;
    max-height: min(94dvh, 94vh);
    border-radius: 18px 18px 0 0;
  }
  .confirm-back {
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .modal.modal-confirm {
    width: min(420px, 100%);
    max-width: 100%;
    height: auto;
    max-height: min(80dvh, 80vh);
    margin: 0;
    border-radius: 18px;
  }
  .modal.modal-confirm .modal-foot {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .modal.modal-person,
  .modal.modal-household,
  .modal.modal-members {
    height: min(94dvh, 94vh);
    max-height: min(94dvh, 94vh);
  }
  .modal.modal-person .modal-b,
  .modal.modal-household .modal-b,
  .modal.modal-members .modal-b,
  .modal.modal-teachers .modal-b {
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal.modal-teachers .modal-b {
    max-height: calc(min(94dvh, 94vh) - 120px);
  }
  .modal.modal-facility {
    height: min(94dvh, 94vh);
    max-height: min(94dvh, 94vh);
    border-radius: 18px 18px 0 0;
  }
  .modal.modal-facility .facility-form {
    flex: 1 1 0;
    min-height: 0;
  }
  .modal.modal-facility .facility-body {
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal.modal-facility .facility-head,
  .modal.modal-facility .facility-foot {
    position: relative;
    flex: 0 0 auto;
  }
  .modal-f.modal-f-person { grid-template-columns: 1fr 1fr; }
  .modal-f.modal-f-person label.span-2 { grid-column: 1 / -1; }
  .modal-f.modal-f-facility { grid-template-columns: 1fr 1fr; }
  .modal .ts-wrapper,
  .grid-form .ts-wrapper,
  .modal-f .ts-wrapper,
  .modal-f label.full .ts-wrapper,
  .modal-f label.span-2 .ts-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .school-actions {
    justify-content: flex-start;
    min-width: 0;
  }
  .report-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head,
  .topbar {
    align-items: stretch;
  }
  .page-head-actions,
  .topbar-actions {
    width: 100%;
  }
  .page-head-actions .btn,
  .topbar-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
  }
  .main-wrap img,
  .main-wrap svg,
  .main-wrap video,
  .main-wrap canvas {
    max-width: 100%;
  }
  .person-toolbar-filters,
  .person-toolbar-search,
  .list-toolbar-filters,
  .list-toolbar-search,
  .toolbar {
    width: 100%;
  }
  .person-toolbar-filters,
  .list-toolbar-filters,
  form.toolbar:not(.person-toolbar):not(.list-toolbar) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }
  .person-toolbar-filters > select,
  .list-toolbar-filters > select,
  form.toolbar:not(.person-toolbar):not(.list-toolbar) > select,
  .person-toolbar-filters > .ts-wrapper,
  .list-toolbar-filters > .ts-wrapper,
  form.toolbar:not(.person-toolbar):not(.list-toolbar) > .ts-wrapper,
  .toolbar .ts-wrapper,
  .person-toolbar-filters .ts-wrapper,
  .list-toolbar-filters .ts-wrapper {
    flex: none;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .person-toolbar-filters > .person-age-range,
  .list-toolbar-filters > .person-age-range {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px;
  }
  .person-age-range .person-age-filter {
    flex: 1 1 0;
    justify-content: space-between;
    min-width: 0;
  }
  .person-age-range .person-age-filter .inp {
    width: 100%;
    max-width: 5.5rem;
    flex: 0 0 auto;
  }
  .person-age-sep {
    flex: 0 0 auto;
  }
  .report-age-range {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
  }
  .report-age-range .report-age-input {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .report-age-range .report-age-sep {
    flex: 0 0 auto;
    width: auto;
  }
  .person-toolbar-search,
  .list-toolbar-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
  }
  .person-toolbar-search input[type=text],
  .list-toolbar-search input[type=text] {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .person-toolbar-filters > .btn,
  .list-toolbar-filters > .btn,
  form.toolbar:not(.person-toolbar):not(.list-toolbar) > .btn,
  form.toolbar:not(.person-toolbar):not(.list-toolbar) > input[type=text],
  form.toolbar:not(.person-toolbar):not(.list-toolbar) > input[type=search] {
    grid-column: 1 / -1;
  }
  .toolbar .btn,
  .person-toolbar-search .btn,
  .list-toolbar-search .btn {
    min-height: 42px;
  }
  .person-toolbar-filters > select,
  .list-toolbar-filters > select,
  form.toolbar:not(.person-toolbar):not(.list-toolbar) > select,
  .report-filter-row > select {
    min-height: 42px;
    width: 100%;
    padding: 8px 10px;
  }
  .person-toolbar-filters .ts-wrapper .ts-control,
  .list-toolbar-filters .ts-wrapper .ts-control,
  form.toolbar:not(.person-toolbar):not(.list-toolbar) .ts-wrapper .ts-control,
  .report-filter-row > .ts-wrapper .ts-control {
    min-height: 42px;
    padding: 8px 30px 8px 10px;
  }
  .report-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    flex-wrap: unset;
  }
  .report-filter-tag,
  .report-filter-sep {
    display: none;
  }
  .report-filter-row > select,
  .report-filter-row > .ts-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .report-filter-row > .btn,
  .report-filter-actions {
    grid-column: 1 / -1;
  }
  .report-filter-actions {
    justify-content: stretch;
  }
  .report-filter-actions .btn {
    flex: 1 1 auto;
  }
  .field,
  .inp,
  input[type=text],
  input[type=password],
  input[type=date],
  input[type=tel],
  input[type=number],
  input[type=email],
  input[type=file],
  select,
  textarea,
  .ts-wrapper .ts-control {
    font-size: 16px;
  }
  .main-wrap > .card:has(> .table-scroll),
  .main-wrap > .card:has(> table.data) {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }
  .table-scroll {
    position: relative;
    margin: 0;
    padding: 0 0 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    /* Cho vuốt ngang trong bảng + cuộn dọc trang (không khóa pan-y) */
    touch-action: pan-x pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
  }
  .table-scroll.is-swipeable::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 12px;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(255,255,255,.95), rgba(255,255,255,0));
    opacity: 1;
    transition: opacity .16s ease;
  }
  .table-scroll.is-swipeable.is-scrolled-end::after {
    opacity: 0;
  }
  .table-scroll.is-swipeable.is-scrolled-start::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 12px;
    width: 22px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,0));
  }
  .table-scroll table.data {
    min-width: max(100%, 720px);
    width: max-content;
    max-width: none;
  }
  /* Không để bảng lòi ra ngoài card — chỉ cuộn trong .table-scroll */
  .card > table.data {
    max-width: 100%;
  }
  table.data th,
  table.data td {
    white-space: nowrap;
  }
  table.data th:first-child,
  table.data td:first-child {
    padding-left: 14px;
  }
  table.data th:last-child,
  table.data td:last-child {
    padding-right: 14px;
  }
  .table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 12px 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f7f3ea;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .table-scroll-hint[hidden] {
    display: none !important;
  }
  .table-scroll-hint span[aria-hidden="true"] {
    letter-spacing: .08em;
    opacity: .8;
  }
  .actions {
    flex-wrap: nowrap;
  }
  .pagination {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
  .pagination-summary {
    width: 100%;
    text-align: center;
  }
  .pagination-links {
    justify-content: center;
    width: 100%;
  }
  .pagination-links a,
  .pagination-links span.on {
    min-width: 40px;
    min-height: 40px;
  }
  .login-page {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .login-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
}
@media (max-width: 560px) {
  /* Giữ 2 cột cho form ngắn — tránh trống dọc */
  .cards,
  .vgrid,
  .modal-f,
  .modal-f.modal-f-person,
  .modal-f.modal-f-facility,
  .teacher-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .modal-f.modal-f-person label.span-2,
  .modal-f.modal-f-person label.full,
  .modal-f label.full,
  .modal-f label.span-2,
  .teacher-form-grid label.span-2 {
    grid-column: 1 / -1;
  }
  .facility-head {
    align-items: center;
    gap: 8px;
    padding: 12px 12px 10px;
  }
  .facility-head-side {
    align-items: center;
    gap: 6px;
  }
  .facility-body {
    padding: 10px;
    gap: 8px;
  }
  .facility-section {
    padding: 10px;
    border-radius: 12px;
  }
  .facility-section-h {
    margin-bottom: 8px;
    padding-bottom: 6px;
  }
  .facility-section-h h3 {
    font-size: 13px;
  }
  .modal-f.modal-f-facility label {
    gap: 4px;
  }
  .facility-label {
    font-size: 11px;
    line-height: 1.25;
  }
  .account-menu summary {
    min-width: 0;
    padding-right: 8px;
  }
  .account-menu summary {
    grid-template-columns: 30px 16ch 28px;
  }
  .lp-account-trigger {
    grid-template-columns: 28px 16ch 28px;
  }
  .account-name,
  .lp-account-name {
    max-width: 16ch;
  }
  .report-categories,
  .report-types {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .report-category {
    min-height: 0;
    padding: 12px;
  }
  .report-section-head,
  .report-current-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }
  .report-filter-card {
    padding: 2px 10px 6px;
  }
  .report-filter-row {
    padding: 10px 0;
    gap: 6px;
  }
  .page-head h1,
  .topbar h1 {
    font-size: 1.28rem;
  }
  .main-wrap > .card:has(> .table-scroll),
  .main-wrap > .card:has(> table.data) {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .table-scroll-hint {
    margin: 0 0 6px;
    padding: 6px 8px;
    font-size: 11px;
    max-width: 100%;
  }
  .table-scroll table.data {
    min-width: max(100%, 680px);
    font-size: 12.5px;
  }
  table.data th {
    padding: 8px 10px;
    font-size: 10px;
  }
  table.data td {
    padding: 8px 10px;
  }
  table.data th:first-child,
  table.data td:first-child {
    padding-left: 10px;
  }
  table.data th:last-child,
  table.data td:last-child {
    padding-right: 10px;
  }
  .actions {
    gap: 4px;
  }
  .actions .btn.sm {
    padding: 6px 8px;
    font-size: 11.5px;
    min-height: 32px;
  }
  .btn {
    min-height: 38px;
  }
  .btn.sm {
    min-height: 32px;
  }
  .pill,
  .status-pill {
    padding: 2px 7px;
    font-size: 10px;
  }
  .pagination {
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
  }
  .pagination-summary {
    font-size: 11px;
  }
  .pagination-links {
    gap: 4px;
  }
  .pagination-links a,
  .pagination-links span.on {
    min-width: 34px;
    min-height: 34px;
    font-size: 13px;
  }
  .modal-h {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 12px 12px 10px;
    gap: 8px;
  }
  .modal-h strong {
    font-size: 1rem;
  }
  .modal-subtitle {
    font-size: 12px;
  }
  .modal-b {
    padding: 12px;
  }
  .modal-foot {
    position: relative;
    bottom: auto;
    z-index: 3;
    background: #faf7f0;
    border-radius: 0;
    /* Cách mép dưới máy (home indicator) để nút không bị che */
    padding: 12px 12px calc(28px + env(safe-area-inset-bottom, 0px));
    flex-wrap: nowrap;
    gap: 8px;
    box-shadow: 0 -6px 16px rgba(26, 26, 26, .06);
  }
  .modal-foot .btn {
    flex: 1 1 0;
    min-height: 46px;
    justify-content: center;
    white-space: nowrap;
  }
  .modal-household .modal-foot .btn[type="submit"],
  .modal-members .modal-foot .btn[type="submit"] {
    flex: 1.35 1 0;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
  .modal.modal-household,
  .modal.modal-members,
  .modal.modal-person {
    /* Nhấc sheet lên khỏi mép máy; padding footer đã cộng safe-area */
    max-height: calc(min(92dvh, 92vh) - env(safe-area-inset-bottom, 0px));
    height: calc(min(92dvh, 92vh) - env(safe-area-inset-bottom, 0px));
    margin-bottom: 10px;
  }
  /* CSVC: giữ header/footer cố định, chỉ cuộn phần nội dung */
  .modal.modal-facility .facility-head,
  .modal.modal-facility .facility-foot {
    position: relative;
    top: auto;
    bottom: auto;
  }
  .modal.modal-facility .facility-foot {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .hh-member-row {
    padding: 10px;
    margin-bottom: 10px;
  }
  .school-name-cell strong {
    font-size: 13px;
  }
  .person-toolbar-filters,
  .list-toolbar-filters,
  form.toolbar:not(.person-toolbar):not(.list-toolbar),
  .report-filter-row {
    gap: 6px;
  }
  .person-toolbar-filters > select,
  .list-toolbar-filters > select,
  form.toolbar:not(.person-toolbar):not(.list-toolbar) > select,
  .report-filter-row > select,
  .person-toolbar-filters .ts-wrapper .ts-control,
  .list-toolbar-filters .ts-wrapper .ts-control,
  form.toolbar:not(.person-toolbar):not(.list-toolbar) .ts-wrapper .ts-control,
  .report-filter-row > .ts-wrapper .ts-control {
    min-height: 40px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
@media print {
  .aside, .toolbar, .no-print, .topbar .eyebrow { display: none !important; }
  .shell { display: block; }
  .main-wrap { padding: 0; }
}

/* —— Landing —— */
.landing-body {
  --lp-ink: #12110f;
  --lp-muted: #5f5a52;
  --lp-line: rgba(18, 17, 15, .08);
  --lp-gold: #edbb02;
  --lp-gold-deep: #c99700;
  --lp-paper: #f7f3ea;
  --lp-white: #fffcf6;
  --lp-dark: #141210;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: "Roboto", system-ui, sans-serif;
  color: var(--lp-ink);
  background:
    radial-gradient(900px 480px at 0% -8%, rgba(237,187,2,.16), transparent 55%),
    radial-gradient(700px 420px at 100% 8%, rgba(255,152,0,.08), transparent 50%),
    linear-gradient(180deg, #faf6ee 0%, var(--lp-paper) 100%);
  scroll-behavior: smooth;
}
.lp-wrap {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 246, 238, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  position: relative;
}
.lp-nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.lp-nav-brand img {
  display: block;
  height: 50px;
  width: auto;
}
.lp-nav-tools {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
/* Nút menu landing: dùng chung style admin (.sidebar-toggle) */
.lp-nav-burger {
  display: none;
  margin-left: 0;
}
.landing-body.lp-nav-open .lp-nav-burger {
  background: var(--soft, #f7f4ea);
  border-color: rgba(237,187,2,.35);
}
.landing-body.lp-nav-open .lp-nav-burger .sidebar-toggle-icon {
  display: none;
}
.landing-body.lp-nav-open .lp-nav-burger::before {
  content: none;
}
.landing-body.lp-nav-open .lp-nav-burger::after {
  content: "✕";
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink, #1c1914);
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 8px 22px;
}
.lp-nav-links a {
  color: var(--lp-muted);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.lp-nav-links a:hover { color: var(--lp-ink); }
.lp-nav-links > a.on {
  color: var(--lp-ink);
  font-weight: 800;
  box-shadow: inset 0 -2px 0 var(--lp-gold);
}
.lp-nav-drop.on .lp-nav-drop-label {
  color: var(--lp-ink);
  font-weight: 800;
  box-shadow: inset 0 -2px 0 var(--lp-gold);
}

.lp-nav-drop {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.lp-nav-drop-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lp-muted);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
  white-space: nowrap;
}
.lp-nav-drop:hover .lp-nav-drop-label,
.lp-nav-drop:focus-within .lp-nav-drop-label {
  color: var(--lp-ink);
}
.lp-nav-drop-chevron {
  font-size: 22px;
  line-height: 1;
  opacity: .7;
  transition: transform .18s ease;
}
.lp-nav-drop:hover .lp-nav-drop-chevron,
.lp-nav-drop:focus-within .lp-nav-drop-chevron {
  transform: rotate(180deg);
}
.lp-nav-drop-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  padding: 8px;
  border-radius: 14px;
  background: #fffef8;
  border: 1px solid var(--lp-line);
  box-shadow: 0 16px 40px rgba(18, 17, 15, 0.12);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 40;
}
.lp-nav-drop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}
.lp-nav-drop:hover .lp-nav-drop-menu,
.lp-nav-drop:focus-within .lp-nav-drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.lp-nav-drop-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--lp-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none;
  line-height: 1.35;
}
.lp-nav-drop-menu a:hover,
.lp-nav-drop-menu a.on {
  background: rgba(237, 187, 2, 0.14);
  color: var(--lp-ink) !important;
}

.lp-guide-page {
  padding-top: 36px;
  padding-bottom: 64px;
}
.lp-guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.lp-guide-side {
  position: sticky;
  top: 88px;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(255, 254, 248, 0.85);
  border: 1px solid var(--lp-line);
}
.lp-guide-side .lp-kicker {
  margin: 0 0 12px;
}
.lp-guide-side-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.lp-guide-side-list a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--lp-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
.lp-guide-side-list a:hover,
.lp-guide-side-list a.on {
  background: rgba(237, 187, 2, 0.14);
  color: var(--lp-ink);
}
.lp-guide-back {
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-gold-deep);
  text-decoration: none;
}
.lp-guide-back:hover { text-decoration: underline; }
.lp-head-left {
  text-align: left;
  max-width: 46rem;
}
.lp-head-left h1 {
  margin: 0 0 12px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.lp-guide-video {
  margin: 0 0 12px;
}
.lp-guide-video-fallback {
  margin: 0 0 28px;
  text-align: center;
  color: var(--lp-muted);
  font-size: 13.5px;
  font-weight: 600;
}
.lp-guide-video-fallback a {
  color: var(--lp-ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-guide-video-fallback a:hover {
  color: var(--lp-gold-deep, #b8860b);
}
.lp-guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.lp-guide-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 18px 18px 16px;
  border-radius: 16px;
  background: #fffef8;
  border: 1px solid var(--lp-line);
}
.lp-guide-steps em {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(237, 187, 2, 0.16);
  color: var(--lp-gold-deep);
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}
.lp-guide-steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.lp-guide-steps p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.lp-guide-sections {
  display: grid;
  gap: 28px;
  margin: 8px 0 8px;
}
.lp-guide-section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.35;
}
.lp-guide-section > p {
  margin: 0 0 10px;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.6;
}
.lp-guide-section > ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  color: var(--lp-muted);
  line-height: 1.55;
}
.lp-guide-actions {
  margin: 14px 0 0;
}
.lp-guide-actions .btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lp-guide-table-wrap {
  overflow-x: auto;
  margin: 4px 0 14px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
}
.lp-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
  min-width: 520px;
}
.lp-guide-table th,
.lp-guide-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--lp-line);
  text-align: left;
  vertical-align: top;
}
.lp-guide-table thead th {
  background: rgba(15, 23, 42, 0.04);
  font-weight: 700;
  color: var(--lp-ink, #0f172a);
  white-space: nowrap;
}
.lp-guide-table tbody th {
  font-weight: 600;
  color: var(--lp-ink, #0f172a);
  width: 34%;
}
.lp-guide-table tbody td {
  color: var(--lp-muted);
}
.lp-guide-table tbody tr:last-child th,
.lp-guide-table tbody tr:last-child td {
  border-bottom: 0;
}
.lp-guide-feature {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--lp-line);
}
.lp-guide-feature h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.lp-guide-feature p {
  margin: 0 0 8px;
  color: var(--lp-muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.lp-guide-feature ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--lp-muted);
  line-height: 1.55;
}
.lp-guide-tips {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(237, 187, 2, 0.08);
  border: 1px solid rgba(201, 151, 0, 0.22);
}
.lp-guide-tips h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.lp-guide-tips ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--lp-muted);
  line-height: 1.55;
}
.lp-guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lp-guide-card {
  display: grid;
  gap: 8px;
  padding: 20px 18px;
  border-radius: 16px;
  background: #fffef8;
  border: 1px solid var(--lp-line);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-guide-card:hover {
  border-color: rgba(201, 151, 0, 0.45);
  box-shadow: 0 12px 28px rgba(18, 17, 15, 0.08);
}
.lp-guide-card strong {
  font-size: 1.05rem;
}
.lp-guide-card span {
  color: var(--lp-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.lp-legal-doc .lp-legal-section {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-legal-doc .lp-legal-section:last-of-type {
  border-bottom: 0;
}
.lp-legal-doc h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.lp-legal-doc p {
  margin: 0 0 10px;
  color: #3a3732;
  font-size: 14.5px;
  line-height: 1.65;
}
.lp-legal-doc ul {
  margin: 0 0 10px;
  padding-left: 1.2rem;
  color: #3a3732;
  font-size: 14.5px;
  line-height: 1.65;
}
.lp-legal-doc li + li {
  margin-top: 6px;
}
.lp-legal-note {
  margin-top: 8px !important;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(237, 187, 2, 0.08);
  border: 1px solid rgba(201, 151, 0, 0.2);
  color: var(--lp-muted) !important;
  font-size: 13px !important;
}
.lp-reg-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 8px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(18, 17, 15, 0.04);
  border: 1px solid var(--lp-line);
  font-size: 13px;
  line-height: 1.45;
  color: #3a3732;
  cursor: pointer;
}
.lp-reg-agree input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.lp-reg-agree a {
  color: var(--lp-gold-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #edbb02, #ff9800);
  color: #1a1a1a;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(237, 187, 2, .28);
}
.lp-btn:hover {
  filter: brightness(1.03);
  color: #1a1a1a;
}
.lp-account {
  position: relative;
}
.lp-account-trigger {
  display: grid;
  grid-template-columns: 28px 18ch 28px;
  align-items: center;
  column-gap: 8px;
  max-width: 100%;
  padding: 7px 12px 7px 8px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.lp-account-trigger::-webkit-details-marker { display: none; }
.lp-account-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(26, 26, 26, .12);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 800;
}
.lp-account-name {
  min-width: 0;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.lp-account-chevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 22px;
  opacity: .75;
  transition: transform .18s ease;
  transform-origin: center;
}
.lp-account[open] .lp-account-chevron { transform: rotate(180deg); }
.lp-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 236px;
  padding: 12px;
  border: 1px solid rgba(26, 26, 26, .08);
  border-radius: 14px;
  background: #fffef9;
  box-shadow: 0 18px 40px rgba(18, 16, 13, .18);
}
.lp-account-meta {
  padding: 4px 4px 10px;
  border-bottom: 1px solid rgba(26, 26, 26, .08);
  margin-bottom: 8px;
}
.lp-account-meta strong {
  display: block;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 800;
}
.lp-account-user {
  display: block;
  margin-top: 2px;
  color: #6b655c;
  font-size: 12px;
}
.lp-account-role {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff3cc;
  color: #8a6200;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.lp-account-action,
.lp-account-logout {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
}
.lp-account-action {
  color: #1a1a1a;
  background: #fff3cc;
}
.lp-account-action:hover {
  background: #ffe39a;
  color: #1a1a1a;
}
.lp-account-logout {
  margin-top: 4px;
  color: #b42318;
  background: transparent;
}
.lp-account-logout:hover {
  background: #fdecea;
  color: #912018;
}
.lp-btn-ghost {
  border: 1px solid rgba(255,255,255,.28) !important;
  background: transparent !important;
  color: #fffef8 !important;
  box-shadow: none !important;
}
.lp-btn-ghost:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}
/* Menu trên nền sáng: ghost trắng sẽ bị mờ — dùng chữ/viền đậm */
.lp-nav .lp-btn-ghost,
.lp-nav .btn.ghost {
  border: 1px solid rgba(26, 26, 26, .22) !important;
  background: #fff !important;
  color: var(--lp-ink) !important;
  box-shadow: none !important;
}
.lp-nav .lp-btn-ghost:hover,
.lp-nav .btn.ghost:hover {
  background: #fff8e6 !important;
  border-color: rgba(201, 151, 0, .55) !important;
  color: var(--lp-ink) !important;
  filter: none;
}
.lp-flash { margin-top: 14px; }

.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--lp-dark);
  min-height: min(720px, calc(100svh - 68px));
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(720px 420px at 88% 18%, rgba(237,187,2,.28), transparent 58%),
    radial-gradient(560px 360px at 12% 88%, rgba(255,152,0,.12), transparent 55%),
    linear-gradient(145deg, #1b1814 0%, #12100d 52%, #0e0d0b 100%);
}
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 88%);
  pointer-events: none;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0 0;
}
.lp-hero-inner {
  padding-bottom: clamp(36px, 5vw, 56px);
}
.lp-brand {
  margin: 0 0 18px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .9;
  color: var(--lp-gold);
}
.lp-hero h1 {
  margin: 0 0 18px;
  max-width: 15ch;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.16;
  color: #fffef8;
}
.lp-lead {
  margin: 0 0 28px;
  max-width: 40ch;
  color: rgba(255,254,248,.72);
  font-size: 1.05rem;
  line-height: 1.65;
}
.lp-hero-free {
  margin: 0 0 28px;
  max-width: 42ch;
  color: var(--lp-gold);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}
.lp-hero-free strong {
  font-weight: 800;
  color: #fffef8;
}
.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lp-hero-exports {
  margin-top: clamp(28px, 4vw, 40px);
  width: 100%;
  max-width: none;
}
.lp-hero-exports-label {
  margin: 0 0 14px;
  color: rgba(255,254,248,.55);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-hero-slider {
  position: relative;
  width: 100%;
}
.lp-hero-slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
  width: 100%;
}
.lp-hero-slider-track::-webkit-scrollbar {
  display: none;
}
.lp-hero-slide {
  flex: 0 0 168px;
  min-width: 168px;
  max-width: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 12px 14px;
  border-radius: 18px;
  background: rgba(255,252,246,.06);
  border: 1px solid rgba(255,252,246,.12);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.lp-hero-slide:hover,
.lp-hero-slide:focus-visible {
  background: rgba(237,187,2,.14);
  border-color: rgba(237,187,2,.45);
  transform: translateY(-2px);
  outline: none;
}
.lp-hero-slide-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(237,187,2,.95), rgba(255,152,0,.78));
  color: #1a150c;
  box-shadow: 0 10px 22px rgba(237,187,2,.22);
  margin-bottom: 4px;
}
.lp-hero-slide strong {
  display: block;
  min-height: 0;
  color: #fffef8;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.lp-hero-slide > span:not(.lp-hero-slide-ico) {
  display: block;
  color: rgba(255,254,248,.58);
  font-size: .78rem;
  line-height: 1.35;
}
.lp-hero-panel {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,252,246,.06);
  border: 1px solid rgba(255,252,246,.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
}
.lp-panel-label {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(237,187,2,.95);
}
.lp-panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.lp-panel-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
}
.lp-panel-list em {
  font-family: "Roboto", system-ui, sans-serif;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lp-gold);
  line-height: 1.2;
}
.lp-panel-list strong {
  display: block;
  margin-bottom: 2px;
  color: #fffef8;
  font-size: 14px;
  font-weight: 700;
}
.lp-panel-list span {
  color: rgba(255,254,248,.62);
  font-size: 12.5px;
  line-height: 1.45;
}

.lp-section {
  padding: clamp(64px, 9vw, 96px) 0;
}
.lp-section-muted {
  background: rgba(255,255,255,.42);
  border-block: 1px solid var(--lp-line);
}
.lp-section-end {
  padding-top: 0;
  padding-bottom: clamp(56px, 8vw, 80px);
}
.lp-head {
  max-width: 38rem;
  margin-bottom: 36px;
}
.lp-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lp-gold-deep);
}
.lp-head h2 {
  margin: 0 0 12px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.lp-head p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.lp-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.lp-feature {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 20px;
  background: var(--lp-white);
  border: 1px solid var(--lp-line);
  box-shadow: 0 10px 30px rgba(18,17,15,.04);
  transition: transform .3s ease, box-shadow .3s ease;
}
.lp-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(18,17,15,.08);
}
.lp-feature-no {
  display: block;
  margin-bottom: 14px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lp-gold-deep);
}
.lp-feature h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.3;
}
.lp-feature > p {
  margin: 0 0 16px;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.65;
}
.lp-feature ul {
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--lp-line);
}
.lp-feature li {
  position: relative;
  padding-left: 16px;
  color: #2f2c27;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.lp-feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-gold);
}

.lp-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: lpstep;
}
.lp-steps.lp-steps-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.lp-steps li {
  position: relative;
  padding: 0 22px 0 0;
  counter-increment: lpstep;
}
.lp-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 48px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,151,0,.55), rgba(18,17,15,.08));
}
.lp-steps li::before {
  content: counter(lpstep, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(201,151,0,.35);
  color: var(--lp-gold-deep);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}
.lp-steps strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
}
.lp-steps p {
  margin: 0;
  max-width: 24ch;
  color: var(--lp-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.lp-steps.lp-steps-5 p {
  max-width: 20ch;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .lp-steps.lp-steps-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
  .lp-steps.lp-steps-5 li {
    padding-right: 0;
  }
  .lp-steps.lp-steps-5 li:not(:last-child)::after {
    display: none;
  }
}

.lp-roles {
  display: grid;
  gap: 12px;
}
.lp-roles.lp-roles-rows {
  grid-template-columns: 1fr;
  max-width: 920px;
}
.lp-role-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(320px 120px at 100% 0%, rgba(237,187,2,.16), transparent 58%),
    var(--lp-dark);
  color: #fffef8;
  border: 1px solid rgba(255,252,246,.08);
}
.lp-role-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 16px;
  background: rgba(237,187,2,.12);
  color: var(--lp-gold);
  font-family: "Roboto", system-ui, sans-serif;
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.lp-role-main {
  min-width: 0;
}
.lp-role-tag {
  display: inline-block;
  margin: 0 0 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(237,187,2,.14);
  color: var(--lp-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-role-row h3 {
  margin: 0 0 4px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.lp-role-row p {
  margin: 0;
  color: rgba(255,254,248,.68);
  font-size: 13.5px;
  line-height: 1.45;
}
.lp-role-cta {
  flex-shrink: 0;
  min-width: 148px;
  justify-content: center;
  white-space: nowrap;
}
.lp-role-admin-note {
  margin: 0 !important;
  padding-top: 4px;
  color: rgba(255,220,140,.78) !important;
  font-size: 12.5px !important;
  font-weight: 600;
  line-height: 1.45 !important;
}
.lp-mid-cta {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(237,187,2,.08);
  border: 1px solid rgba(201,151,0,.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.lp-mid-cta p {
  margin: 0;
  font-weight: 700;
  color: #2f2c27;
}

.lp-video {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #12110f;
  border: 1px solid rgba(201, 151, 0, 0.28);
  box-shadow: 0 18px 48px rgba(18, 17, 15, 0.12);
}
.lp-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lp-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  max-width: 1100px;
  margin-inline: auto;
}
.lp-price-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--lp-white);
  border: 1px solid var(--lp-line);
  box-shadow: 0 10px 30px rgba(18,17,15,.04);
  transition: transform .3s ease, box-shadow .3s ease;
}
.lp-price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(18,17,15,.08);
}
.lp-price-paid {
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(237,187,2,.18), transparent 60%),
    var(--lp-dark);
  border-color: transparent;
  color: #fffef8;
}
.lp-price-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(237,187,2,.14);
  color: var(--lp-gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-price-paid .lp-price-tag {
  background: rgba(237,187,2,.16);
  color: var(--lp-gold);
}
.lp-price-free .lp-price-tag {
  background: rgba(237,187,2,.14);
  color: var(--lp-gold-deep);
}
.lp-price-card h3 {
  margin: 0 0 12px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
}
.lp-price-lead {
  margin: 0 0 8px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--lp-gold-deep);
}
.lp-price-paid .lp-price-lead {
  color: var(--lp-gold);
}
.lp-price-free .lp-price-lead {
  color: var(--lp-gold-deep);
  font-weight: 800;
}
.lp-price-note {
  margin: 0 0 18px;
  color: var(--lp-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.lp-price-paid .lp-price-note {
  color: rgba(255,254,248,.68);
}
.lp-price-was {
  color: rgba(255,254,248,.45);
  font-size: 13px;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.lp-price-now {
  color: var(--lp-gold);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.lp-price-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(237,187,2,.2);
  color: var(--lp-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.lp-price-under {
  margin: 0 0 18px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255,252,246,.12);
  text-align: center;
}
.lp-price-free .lp-price-under {
  border-top-color: var(--lp-line);
}
.lp-price-free .lp-price-under-label,
.lp-price-free .lp-price-under-unit {
  color: var(--lp-muted);
}
.lp-price-free .lp-price-now {
  color: var(--lp-gold-deep);
}
.lp-price-under-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,254,248,.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lp-price-under-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
}
.lp-price-under-unit {
  display: block;
  margin-top: 4px;
  color: rgba(255,254,248,.55);
  font-size: 12px;
  font-weight: 600;
}
.lp-price-card ul {
  margin: 0 0 16px;
  padding: 16px 0 0;
  list-style: none;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--lp-line);
  flex: 1;
}
.lp-price-paid ul {
  border-top-color: rgba(255,252,246,.12);
}
.lp-price-card li {
  position: relative;
  padding-left: 16px;
  color: #2f2c27;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.lp-price-paid li {
  color: rgba(255,254,248,.82);
}
.lp-price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-gold);
}
.lp-price-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
.lp-price-free .lp-price-cta.lp-btn-ghost,
.lp-price-free .btn.ghost {
  border: 1px solid rgba(26, 26, 26, .22) !important;
  background: #fff !important;
  color: var(--lp-ink) !important;
  box-shadow: none !important;
}
.lp-price-free .lp-price-cta.lp-btn-ghost:hover,
.lp-price-free .btn.ghost:hover {
  background: #fff8e6 !important;
  border-color: rgba(201, 151, 0, .55) !important;
  color: var(--lp-ink) !important;
}
.lp-price-foot {
  margin: 22px 0 0;
  color: var(--lp-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.lp-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lp-report-card {
  padding: 24px 22px;
  border-radius: 20px;
  background: var(--lp-white);
  border: 1px solid var(--lp-line);
  box-shadow: 0 10px 30px rgba(18,17,15,.04);
}
.lp-report-card-note {
  background:
    radial-gradient(240px 120px at 100% 0%, rgba(237,187,2,.16), transparent 60%),
    #17140f;
  border-color: transparent;
  color: #fffef8;
}
.lp-report-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(237,187,2,.14);
  color: var(--lp-gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.lp-report-card-note .lp-report-tag {
  background: rgba(237,187,2,.16);
  color: var(--lp-gold);
}
.lp-report-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.3;
}
.lp-report-card > p {
  margin: 0 0 14px;
  color: var(--lp-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.lp-report-card-note > p {
  color: rgba(255,254,248,.68);
}
.lp-report-card ul {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--lp-line);
}
.lp-report-card-note ul {
  border-top-color: rgba(255,254,248,.12);
}
.lp-report-card li {
  position: relative;
  padding-left: 14px;
  color: #2f2c27;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.lp-report-card-note li {
  color: rgba(255,254,248,.86);
}
.lp-report-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lp-gold);
}
.lp-dialog-register {
  width: min(680px, calc(100vw - 28px));
  max-height: none;
  overflow: visible;
  gap: 16px;
  padding: 32px 32px 28px;
}
.lp-dialog-wide {
  width: min(680px, calc(100% - 28px));
  max-height: none;
  overflow: visible;
}
.lp-reg-head {
  display: grid;
  gap: 8px;
  padding-right: 28px;
}
.lp-reg-head img {
  display: block;
  height: 30px;
  width: auto;
  margin: 0;
}
.lp-reg-head h2 {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.lp-reg-head p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.55;
}
.lp-reg-field em {
  color: #c0392b;
  font-style: normal;
}
.lp-reg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.lp-dialog-register .lp-reg-field {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #2f2c27;
  font-size: 14px;
  font-weight: 750;
}
.lp-dialog-register .lp-reg-field-full {
  grid-column: 1 / -1;
}
.lp-dialog-register .lp-reg-field span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lp-dialog-register .lp-reg-field small {
  color: var(--lp-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.lp-dialog-register .inp {
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #e4ddd0;
  border-radius: 12px;
  background: #fff;
  font-size: 15.5px;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-dialog-register select.inp {
  appearance: auto;
  cursor: pointer;
  min-height: 50px;
  font-weight: 600;
}
.lp-dialog-register .inp:hover {
  border-color: #d4cbb8;
}
.lp-dialog-register .inp:focus {
  border-color: rgba(201, 151, 0, .75);
  background: #fffef8;
  box-shadow: 0 0 0 3px rgba(237, 187, 2, .18);
  outline: none;
}
.lp-dialog-register .inp::placeholder {
  color: #a89f90;
  font-weight: 500;
}
.lp-dialog-register textarea.inp {
  resize: none;
  min-height: 56px;
  max-height: 56px;
}
.lp-dialog-register > .btn {
  margin-top: 2px;
  padding: 14px 16px;
  font-size: 15.5px;
}
.lp-dialog-thanks {
  text-align: center;
  max-width: 420px;
}
.lp-dialog-thanks img {
  display: block;
  margin: 0 auto 18px;
}
.lp-dialog-thanks h2 {
  margin-bottom: 10px;
}
.lp-dialog-thanks p {
  margin: 0 0 22px;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.55;
}
.lp-dialog-thanks p strong {
  color: var(--lp-ink);
  font-weight: 700;
}
.lp-dialog-thanks > .btn {
  width: 100%;
  justify-content: center;
}
.lp-dialog-switch {
  margin: 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--lp-muted);
}
.lp-dialog-switch button {
  border: 0;
  background: none;
  color: var(--lp-gold-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

@media (max-width: 560px) {
  .lp-reg-grid {
    grid-template-columns: 1fr;
  }
  .lp-dialog-register {
    padding: 24px 18px 18px;
    max-height: min(92dvh, 92vh);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lp-dialog-wide {
    max-height: min(92dvh, 92vh);
  }
  .lp-reg-agree {
    font-size: 13px;
    line-height: 1.45;
  }
}
.lp-float-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--lp-gold);
  color: #1b1814;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.lp-float-register:hover {
  filter: brightness(1.05);
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.signup-status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.signup-status-form:focus-within,
.signup-status-form:has(.ts-wrapper.dropdown-active) {
  z-index: 5;
}
.signup-status-form .ts-wrapper {
  width: 160px;
  z-index: inherit;
}
.signup-status-form select,
.signup-status-form input[type="text"] {
  min-width: 0;
  width: auto;
  max-width: 160px;
}
.table-scroll:has(.ts-wrapper.dropdown-active),
table.data:has(.ts-wrapper.dropdown-active) {
  overflow: visible;
}

.lp-about-page {
  padding-top: 24px;
  padding-bottom: 56px;
}
.lp-about-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.lp-about-toc {
  position: sticky;
  top: 88px;
  padding: 18px 16px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #fffcf6 0%, #f7f1e4 100%);
}
.lp-about-toc-label {
  margin: 0 0 12px;
  color: var(--lp-gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lp-about-toc ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.lp-about-toc ol a {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 8px;
  border-radius: 10px;
  color: var(--lp-muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  font-weight: 550;
}
.lp-about-toc ol a span {
  color: var(--lp-gold-deep);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.lp-about-toc ol a:hover {
  background: rgba(237, 187, 2, .12);
  color: var(--lp-ink);
}
.lp-about-toc ol a.on {
  background: rgba(237, 187, 2, .18);
  color: var(--lp-ink);
  font-weight: 750;
}
.lp-about-toc ol a.on span {
  color: var(--lp-gold-deep);
}
.lp-about-toc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--lp-line);
  width: 100%;
  box-sizing: border-box;
  color: var(--lp-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.lp-about-toc-back:hover {
  color: var(--lp-gold-deep);
}
.lp-about-layout {
  max-width: 820px;
  min-width: 0;
  display: grid;
  gap: 16px;
}
.lp-about-hero {
  padding: 28px 28px 26px;
  border: 1px solid rgba(18, 17, 15, .08);
  border-radius: 20px;
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(237, 187, 2, .22), transparent 55%),
    linear-gradient(145deg, #17140f 0%, #2a2418 100%);
  color: #fffef8;
}
.lp-about-hero .lp-kicker {
  color: var(--lp-gold) !important;
}
.lp-about-hero h1 {
  margin: 0 0 12px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fffef8;
}
.lp-about-lead {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 254, 248, .78);
  font-size: 16px;
  line-height: 1.7;
}
.lp-about-panel {
  margin: 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: var(--lp-white);
  box-shadow: 0 1px 0 rgba(18, 17, 15, .03);
}
.lp-about-panel h2 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--lp-ink);
}
.lp-about-panel > p,
.lp-about-section-lead {
  margin: 0 0 12px;
  color: var(--lp-muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.lp-about-panel > p:last-child {
  margin-bottom: 0;
}
.lp-about-panel-legal {
  background:
    linear-gradient(180deg, #fffcf6 0%, #faf6ee 100%);
}
.lp-about-panel-contact {
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(237, 187, 2, .14), transparent 55%),
    var(--lp-white);
}
.lp-about-points {
  margin: 14px 0 0;
  padding: 14px 16px 14px 2rem;
  border-radius: 12px;
  background: #f7f1e4;
  color: var(--lp-ink);
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 500;
}
.lp-about-points li + li {
  margin-top: 8px;
}
.lp-about-company {
  margin: 4px 0 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.lp-about-company > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
  padding: 12px 14px;
  border-top: 1px solid var(--lp-line);
}
.lp-about-company > div:first-child {
  border-top: 0;
}
.lp-about-company > div:nth-child(even) {
  background: rgba(247, 241, 228, .45);
}
.lp-about-company dt {
  margin: 0;
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 650;
}
.lp-about-company dd {
  margin: 0;
  color: var(--lp-ink);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.lp-about-company a {
  color: var(--lp-ink);
  font-weight: 700;
}
.lp-about-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lp-about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lp-about-card {
  padding: 14px 14px 16px;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  background: #faf6ee;
}
.lp-about-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--lp-ink);
}
.lp-about-card p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.lp-about-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.lp-about-product {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  background: #faf6ee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-about-product-tag {
  margin: 0 !important;
  color: var(--lp-gold-deep) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3 !important;
}
.lp-about-product h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}
.lp-about-product h3 a {
  color: var(--lp-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 17, 15, .2);
}
.lp-about-product h3 a:hover {
  color: var(--lp-gold-deep);
  border-bottom-color: var(--lp-gold-deep);
}
.lp-about-product p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 14.5px;
  line-height: 1.65;
  flex: 1;
}
.lp-about-product-link {
  margin-top: 4px;
  color: var(--lp-ink);
  font-size: 13.5px;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 17, 15, .22);
  align-self: flex-start;
}
.lp-about-product-link:hover {
  color: var(--lp-gold-deep);
  border-bottom-color: var(--lp-gold-deep);
}
.lp-about-note {
  margin-top: 14px !important;
  font-size: 14.5px !important;
}
.lp-about-note a {
  margin-left: 4px;
  color: var(--lp-ink);
  font-weight: 750;
}
.lp-about-values {
  margin: 0;
  padding: 14px 16px 14px 2rem;
  border-radius: 12px;
  background: #f7f1e4;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.65;
}
.lp-about-values li + li {
  margin-top: 10px;
}
.lp-about-team-lead {
  margin: 0 0 16px !important;
}
.lp-about-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lp-about-person {
  padding: 20px 16px 18px;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  background: #faf6ee;
  text-align: center;
}
.lp-about-avatar {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}
.lp-about-avatar img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(18, 17, 15, .08), 0 8px 20px rgba(18, 17, 15, .08);
  background: #fff;
}
.lp-about-person-role {
  margin: 0 0 6px;
  color: var(--lp-gold-deep);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.lp-about-person h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.lp-about-person-bio {
  margin: 0 0 14px;
  color: var(--lp-muted);
  font-size: 14.5px;
  line-height: 1.65;
  text-align: left;
}
.lp-about-person-meta {
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 17, 15, .08);
  text-align: left;
}
.lp-about-person-meta > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 6px 12px;
}
.lp-about-person-meta dt {
  margin: 0;
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 600;
}
.lp-about-person-meta dd {
  margin: 0;
  color: var(--lp-ink);
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 500;
}
.lp-about-zalo {
  display: inline-flex;
  justify-content: center;
  color: var(--lp-ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 17, 15, .22);
}
.lp-about-zalo:hover {
  color: var(--lp-gold-deep);
  border-bottom-color: var(--lp-gold-deep);
}
.lp-about-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.lp-about-contact-actions .lp-btn-ghost,
.lp-about-contact-actions .btn.ghost {
  border: 1px solid rgba(26, 26, 26, .22) !important;
  background: #fff !important;
  color: var(--lp-ink) !important;
  box-shadow: none !important;
}
.lp-about-contact-actions .lp-btn-ghost:hover,
.lp-about-contact-actions .btn.ghost:hover {
  background: #fff8e6 !important;
  border-color: rgba(201, 151, 0, .55) !important;
  color: var(--lp-ink) !important;
  filter: none;
}

@media (max-width: 980px) {
  .lp-about-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lp-about-toc {
    position: static;
  }
  .lp-about-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }
}

@media (max-width: 800px) {
  .lp-about-hero,
  .lp-about-panel {
    padding: 18px 16px 18px;
    border-radius: 16px;
  }
  .lp-about-vision-grid,
  .lp-about-people,
  .lp-about-cards,
  .lp-about-product-grid,
  .lp-about-toc ol {
    grid-template-columns: 1fr;
  }
  .lp-about-company > div,
  .lp-about-person-meta > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .lp-about-contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.lp-home-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lp-home-team-more {
  margin: 22px 0 0;
  text-align: center;
  color: var(--lp-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.lp-home-team-more a {
  color: var(--lp-ink);
  font-weight: 750;
}

@media (max-width: 800px) {
  .lp-home-people {
    grid-template-columns: 1fr;
  }
}

.lp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 36px;
  border-radius: 24px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(237,187,2,.3), transparent 55%),
    linear-gradient(135deg, #17140f, #242018);
  color: #fffef8;
  box-shadow: 0 24px 50px rgba(18,17,15,.16);
}
.lp-banner h2 {
  margin: 0 0 8px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.02em;
}
.lp-banner-kicker {
  margin: 0 0 8px !important;
  color: var(--lp-gold) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lp-banner p {
  margin: 0;
  max-width: 44ch;
  color: rgba(255,254,248,.7);
  font-size: 14px;
  line-height: 1.55;
}
.lp-banner .btn { flex-shrink: 0; }
.lp-support-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.lp-support-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.lp-support-phone {
  padding: 4px 0;
  color: #fffef8;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
}
.lp-support-phone:hover { color: var(--lp-gold); }

.lp-foot {
  margin-top: 24px;
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(237, 187, 2, 0.14), transparent 60%),
    linear-gradient(180deg, #1a1713 0%, var(--lp-dark) 100%);
  color: rgba(255, 254, 248, 0.82);
  border-top: 1px solid rgba(237, 187, 2, 0.22);
}
.lp-foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.6fr minmax(0, 1fr);
  gap: 28px 32px;
  padding: 44px 0 32px;
  align-items: start;
}
.lp-foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}
.lp-foot-brand .lp-foot-logo {
  display: inline-flex;
  margin-bottom: 14px;
}
.lp-foot-brand img {
  display: block;
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.lp-foot-brand > p {
  margin: 0 0 18px;
  max-width: 34ch;
  color: rgba(255, 254, 248, 0.62);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}
.lp-foot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-foot-cta .btn.sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}
.lp-foot-cta .lp-btn-ghost,
.lp-foot-cta .btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 254, 248, 0.28);
  color: #fffef8;
  box-shadow: none;
}
.lp-foot-cta .lp-btn-ghost:hover,
.lp-foot-cta .btn.ghost:hover {
  border-color: rgba(237, 187, 2, 0.55);
  color: #fffef8;
  background: rgba(255, 254, 248, 0.06);
}
.lp-foot-col h3 {
  margin: 0 0 14px;
  color: var(--lp-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-foot-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.lp-foot-col a {
  color: rgba(255, 254, 248, 0.78);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.lp-foot-col a:hover {
  color: #fffef8;
}
.lp-foot-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-foot-contact strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fffef8;
}
.lp-foot-contact em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 254, 248, 0.55);
}
.lp-foot-zalo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: #0068ff;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.lp-foot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255, 254, 248, 0.1);
}
.lp-foot-bar p {
  margin: 0;
  color: rgba(255, 254, 248, 0.48);
  font-size: 12.5px;
  font-weight: 600;
}
.lp-foot-bar a {
  color: rgba(255, 254, 248, 0.7);
  font-weight: 700;
  text-decoration: none;
}
.lp-foot-bar a:hover {
  color: var(--lp-gold);
}
.lp-foot-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12.5px;
}
.lp-foot-bar-links a {
  font-size: 12.5px;
}
.lp-support-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.lp-zalo-float {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 9px;
  border-radius: 999px;
  background: #0768ff;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(7,104,255,.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lp-zalo-float:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(7,104,255,.36);
}
.lp-zalo-float span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #0768ff;
  font-size: 10px;
  font-weight: 800;
}
.lp-zalo-float strong {
  font-size: 12px;
  font-weight: 700;
}
.lp-float-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: #0068ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 104, 255, .32);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.lp-float-phone:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(0, 104, 255, .4);
}
.lp-float-zalo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #fff;
  color: #0068ff;
  box-shadow: inset 0 0 0 1px rgba(0, 104, 255, .12);
}
.lp-float-zalo svg {
  display: block;
  width: 28px;
  height: 28px;
}
.lp-float-text {
  display: grid;
  gap: 1px;
  line-height: 1.2;
  text-align: left;
}
.lp-float-text strong {
  font-size: 12px;
  font-weight: 800;
}
.lp-float-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  opacity: .92;
}

/* Nút mở khung chat HDCode nằm trong khối Hỗ trợ kỹ thuật.
   Để hidden trong HTML, script khung chat chạy được mới bỏ hidden. */
.lp-support-phone.lp-support-chat {
  padding: 9px 17px;
  border: 0;
  border-radius: 999px;
  background: var(--lp-gold);
  color: #1b1710;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(237, 187, 2, .28);
  transition: filter .2s ease, transform .2s ease;
}
.lp-support-phone.lp-support-chat:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.lp-support-phone.lp-support-chat[hidden] {
  display: none !important;
}

.lp-dialog {
  width: min(420px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--lp-ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow: visible;
}
.lp-dialog.lp-dialog-wide {
  width: min(680px, calc(100% - 28px));
}
.lp-dialog::backdrop {
  background: rgba(12, 11, 9, .72);
  backdrop-filter: blur(8px);
}
.lp-dialog[open] {
  animation: lp-dialog-in .28s cubic-bezier(.22,1,.36,1) both;
}
.lp-dialog-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 30px;
  border-radius: 24px;
  background:
    radial-gradient(360px 150px at 100% 0%, rgba(237,187,2,.14), transparent 58%),
    var(--lp-white);
  border: 1px solid rgba(255,255,255,.8);
}
.lp-dialog-card > img {
  display: block;
  width: auto;
  height: 28px;
  margin-bottom: 8px;
}
.lp-dialog-card h2 {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
}
.lp-dialog-card > p {
  margin: 0 0 6px;
  color: var(--lp-muted);
  font-size: 13px;
}
.lp-dialog-card label {
  display: grid;
  gap: 6px;
  color: var(--lp-muted);
  font-size: 11px;
  font-weight: 700;
}
.lp-dialog-card .inp {
  width: 100%;
  margin: 0;
  background: #f6f1e6;
}
.lp-dialog-card select.inp {
  appearance: auto;
  cursor: pointer;
  height: auto;
  min-height: 42px;
}
.lp-dialog-card .btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
}
.lp-remember {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  color: var(--lp-muted);
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer;
  user-select: none;
}
.lp-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--g);
}
.lp-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  color: var(--lp-muted);
  font: 500 22px/1 system-ui, sans-serif;
  cursor: pointer;
}
.lp-dialog-close:hover {
  color: var(--lp-ink);
  background: #fff;
}

@keyframes lp-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1100px) {
  .lp-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .landing-body {
    max-width: 100%;
    overflow-x: clip;
  }
  .lp-hero-grid,
  .lp-features,
  .lp-steps,
  .lp-roles,
  .lp-pricing,
  .lp-report-grid {
    grid-template-columns: 1fr;
  }
  .lp-section {
    padding: 48px 0;
  }
  .lp-head {
    margin-bottom: 22px;
  }
  .lp-head h2 {
    font-size: clamp(1.45rem, 5vw, 1.85rem);
  }
  .lp-head p {
    font-size: 14.5px;
  }
  .lp-hero {
    min-height: auto;
  }
  .lp-hero-grid {
    padding: 32px 0 0;
    gap: 22px;
  }
  .lp-hero-inner {
    padding-bottom: 28px;
  }
  .lp-hero h1 {
    max-width: none;
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 6.5vw, 2.15rem);
  }
  .lp-lead {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.55;
    max-width: none;
  }
  .lp-hero-actions {
    width: 100%;
  }
  .lp-hero-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .lp-hero-exports {
    margin-top: 22px;
    max-width: none;
  }
  .lp-hero-slide {
    flex: 0 0 148px;
    min-width: 148px;
    max-width: none;
    padding: 14px 10px 12px;
    border-radius: 16px;
    gap: 6px;
  }
  .lp-hero-slide-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .lp-hero-slide strong {
    font-size: .84rem;
  }
  .lp-hero-slide > span:not(.lp-hero-slide-ico) {
    font-size: .72rem;
  }
  .lp-hero-panel {
    padding: 16px;
    border-radius: 18px;
  }
  .lp-panel-label {
    margin-bottom: 10px;
  }
  .lp-panel-list {
    gap: 8px;
  }
  .lp-panel-list li {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 11px 12px;
  }
  .lp-video {
    width: 100%;
    border-radius: 16px;
  }
  .lp-role-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 16px;
    border-radius: 16px;
  }
  .lp-role-num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.05rem;
  }
  .lp-role-row h3 {
    font-size: 1.05rem;
  }
  .lp-role-row .lp-role-cta {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }
  .lp-price-card,
  .lp-report-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .lp-price-cta {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
  .lp-steps li {
    padding: 0;
  }
  .lp-steps li:not(:last-child) {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--lp-line);
  }
  .lp-steps li:not(:last-child)::after {
    display: none;
  }
  .lp-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 22px 18px;
    border-radius: 18px;
  }
  .lp-banner h2 {
    font-size: 1.35rem;
  }
  .lp-banner p {
    max-width: none;
    font-size: 13.5px;
  }
  .lp-banner .btn {
    width: 100%;
    min-height: 46px;
  }
  .lp-support-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }
  .lp-support-phones {
    align-items: stretch;
    width: 100%;
  }
  .lp-support-phone {
    white-space: normal;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,254,248,.08);
  }
  .lp-nav-inner {
    flex-wrap: wrap;
    min-height: 58px;
    gap: 8px;
  }
  .lp-nav-brand img {
    height: 36px;
  }
  .lp-nav-tools {
    display: inline-flex;
    gap: 6px;
  }
  .lp-nav-tools .btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .lp-nav-burger {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  /* Mobile landing: hamburger 3 gạch như admin */
  .lp-nav-burger .sidebar-toggle-icon {
    display: none;
  }
  .lp-nav-burger::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }
  .landing-body.lp-nav-open .lp-nav-burger::before {
    content: none;
    box-shadow: none;
    background: transparent;
  }
  .lp-nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 12px;
    border-top: 1px solid var(--lp-line);
  }
  .landing-body.lp-nav-open {
    overflow: hidden;
  }
  .landing-body.lp-nav-open .lp-nav-links {
    display: flex;
  }
  .lp-nav-links > a,
  .lp-nav-links .lp-nav-drop-label {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px !important;
  }
  .lp-nav-links > a:hover,
  .lp-nav-links .lp-nav-drop-label:hover {
    background: rgba(237, 187, 2, .12);
    color: var(--lp-ink);
  }
  .lp-nav-links > a.on,
  .lp-nav-drop.on .lp-nav-drop-label {
    background: rgba(237, 187, 2, .18);
    color: var(--lp-ink);
    box-shadow: none;
  }
  .lp-nav-drop {
    display: block;
    width: 100%;
    align-self: stretch;
  }
  .lp-nav-drop-label {
    width: 100%;
    justify-content: space-between;
  }
  .lp-nav-drop-menu {
    position: static;
    transform: none !important;
    left: auto;
    right: auto;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    border: 1px solid var(--lp-line);
    background: #fffef8;
  }
  .lp-nav-drop:hover .lp-nav-drop-menu,
  .lp-nav-drop:focus-within .lp-nav-drop-menu {
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .lp-nav-drop.lp-drop-open .lp-nav-drop-menu,
  .lp-nav-drop.lp-drop-open:hover .lp-nav-drop-menu,
  .lp-nav-drop.lp-drop-open:focus-within .lp-nav-drop-menu {
    display: grid;
  }
  .lp-nav-drop::after { display: none; }
  .lp-nav-links .lp-nav-login,
  .lp-nav-links .lp-nav-register,
  .lp-nav-links .lp-account {
    width: 100%;
    margin-top: 4px;
  }
  .lp-nav-links .lp-nav-login,
  .lp-nav-links .lp-nav-register {
    justify-content: center;
    min-height: 46px;
  }
  .lp-nav-links .lp-account-trigger {
    width: 100%;
    max-width: none;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }
  .lp-nav-links .lp-account-name {
    max-width: none;
  }
  .lp-nav-links .lp-account-menu {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }
  .lp-guide-layout {
    grid-template-columns: 1fr;
  }
  .lp-guide-side {
    position: static;
  }
  .lp-guide-cards {
    grid-template-columns: 1fr;
  }
  .lp-guide-side-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .lp-foot {
    margin-top: 12px;
  }
  .lp-foot-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 0 10px;
  }
  .lp-foot-brand {
    padding-bottom: 20px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 254, 248, 0.1);
  }
  .lp-foot-brand > p {
    max-width: none;
    margin-bottom: 14px;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .lp-foot-brand img {
    height: 30px;
  }
  .lp-foot-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .lp-foot-cta .btn,
  .lp-foot-cta .btn.sm {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13.5px;
  }
  .lp-foot-links {
    gap: 18px 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 254, 248, 0.1);
  }
  .lp-foot-col h3 {
    margin-bottom: 10px;
    font-size: 11px;
  }
  .lp-foot-col ul {
    gap: 8px;
  }
  .lp-foot-col a {
    font-size: 13px;
    line-height: 1.35;
  }
  .lp-foot-support {
    padding: 18px 0 8px;
  }
  .lp-foot-contact {
    gap: 8px;
  }
  .lp-foot-contact a {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 254, 248, 0.05);
    border: 1px solid rgba(255, 254, 248, 0.08);
    min-height: 56px;
  }
  .lp-foot-contact strong {
    font-size: 13px;
  }
  .lp-foot-contact em {
    font-size: 12px;
    color: rgba(255, 220, 140, 0.9);
  }
  .lp-foot-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .lp-foot-bar-links {
    justify-content: center;
    gap: 8px 14px;
  }
  .lp-dialog,
  .lp-dialog.lp-dialog-wide {
    width: min(100%, calc(100% - 16px));
    max-width: 100%;
    max-height: min(92dvh, 92vh);
    margin: auto;
    border-radius: 18px;
  }
  .lp-dialog-card {
    padding: 22px 18px 18px;
    border-radius: 18px;
    max-height: min(92dvh, 92vh);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lp-dialog-card .inp,
  .lp-dialog-register .inp,
  .login-card .inp {
    font-size: 16px;
    min-height: 46px;
  }
  .lp-dialog-card .btn,
  .lp-dialog-register > .btn,
  .login-card .btn {
    min-height: 48px;
    font-size: 15px;
  }
  .lp-support-float {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    gap: 8px;
    max-width: calc(100vw - 24px);
  }
  body:has(.lp-dialog[open]) .lp-support-float,
  .landing-body.lp-nav-open .lp-support-float {
    display: none;
  }
}

@media (max-width: 520px) {
  .lp-wrap {
    width: min(1200px, calc(100% - 24px));
  }
  .lp-section {
    padding: 40px 0;
  }
  .lp-nav-login {
    padding: 8px 11px;
    font-size: 13px;
  }
  .lp-hero-grid {
    padding: 26px 0 30px;
    gap: 18px;
  }
  .lp-hero h1 {
    font-size: clamp(1.55rem, 7.2vw, 1.95rem);
    letter-spacing: -.03em;
  }
  .lp-lead {
    font-size: 14.5px;
    margin-bottom: 16px;
  }
  .lp-hero-panel {
    padding: 14px;
  }
  .lp-panel-list li strong {
    font-size: 14px;
  }
  .lp-panel-list li span {
    font-size: 12.5px;
  }
  .lp-role-row {
    padding: 14px;
  }
  .lp-price-card,
  .lp-report-card {
    padding: 16px 14px;
  }
  .lp-price-card ul,
  .lp-report-card ul {
    gap: 8px;
  }
  .lp-guide-side-list {
    grid-template-columns: 1fr;
  }
  .lp-support-float {
    right: 10px;
    bottom: 10px;
  }
  .lp-zalo-float {
    padding-right: 9px;
  }
  .lp-zalo-float strong { display: none; }
  .lp-float-phone {
    padding: 7px 12px 7px 7px;
  }
  .lp-float-text strong {
    font-size: 11px;
  }
  .lp-float-text em {
    font-size: 10px;
  }
  .lp-foot-cta {
    grid-template-columns: 1fr;
  }
  .lp-foot-links {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .lp-foot-col a {
    font-size: 12.5px;
  }
  .lp-price-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .lp-price-foot .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-body { scroll-behavior: auto; }
  .lp-feature,
  .lp-dialog[open] { animation: none !important; transition: none !important; }
}

/* Tom Select — select hiện đại, gọn, giống input form */
.ts-wrapper {
  position: relative;
  display: inline-block;
  width: 220px;
  max-width: 100%;
  vertical-align: top;
  z-index: 1;
}
.ts-wrapper.dropdown-active {
  z-index: 200;
}
.ts-wrapper .ts-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 36px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
  box-shadow: none !important;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
  padding-right: 36px;
}
.ts-wrapper .ts-control::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  opacity: .7;
}
.ts-wrapper.dropdown-active .ts-control::after {
  transform: translateY(-20%) rotate(225deg);
}
.ts-wrapper.focus .ts-control,
.ts-wrapper.dropdown-active .ts-control {
  border-color: rgba(237, 187, 2, .65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(237, 187, 2, .18) !important;
}
.ts-wrapper.disabled .ts-control {
  background: #f3f1ec;
  opacity: .8;
  cursor: not-allowed;
}
.ts-wrapper.plugin-dropdown_input .ts-control > input {
  display: none !important;
}
.ts-wrapper .ts-control .item {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  font: inherit;
  color: inherit;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-wrapper .ts-control > * {
  max-width: 100%;
}
.ts-wrapper .clear-button,
.ts-wrapper .remove {
  display: none !important;
}
.ts-dropdown {
  margin: 0 !important;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 26, 26, .12);
  overflow: hidden;
  z-index: 4000;
  min-width: 160px;
  max-width: 360px;
}
/* Khi dropdown nằm trong wrapper (không phải body) */
.ts-wrapper > .ts-dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  min-width: 100% !important;
}
body > .ts-dropdown {
  z-index: 4000;
}
.ts-dropdown .dropdown-input-wrap {
  padding: 8px 8px 6px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.ts-dropdown .dropdown-input {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  box-shadow: none !important;
}
.ts-dropdown .dropdown-input:focus {
  border-color: rgba(237, 187, 2, .55);
  background: #fff;
}
.ts-dropdown-content {
  max-height: min(220px, 38vh);
  overflow: auto;
  padding: 4px;
}
.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  line-height: 1.35;
  cursor: pointer;
}
.ts-dropdown .no-results {
  color: var(--muted);
  cursor: default;
}
.ts-dropdown .option:hover,
.ts-dropdown .active {
  background: #f5f3ee;
  color: var(--ink);
}
.ts-dropdown .option.selected {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}
.ts-dropdown .option.selected::after {
  content: "";
  float: right;
  width: 6px;
  height: 10px;
  margin-top: 2px;
  border-right: 1.5px solid var(--gd);
  border-bottom: 1.5px solid var(--gd);
  transform: rotate(45deg);
}
.toolbar .ts-wrapper,
.person-toolbar-filters .ts-wrapper,
.list-toolbar-filters .ts-wrapper {
  flex: 0 0 auto;
  width: 220px;
  min-width: 0;
}
.modal .ts-wrapper,
.grid-form .ts-wrapper,
.modal-f .ts-wrapper {
  width: 220px;
  max-width: 100%;
}
.modal-f label.full .ts-wrapper,
.modal-f label.span-2 .ts-wrapper {
  width: min(360px, 100%);
}
.field .ts-wrapper + .hint,
.field .ts-control {
  margin-top: 0;
}
.modal-f .ts-wrapper .ts-control {
  background: #fafafa;
}


/* Import — chọn xã */
.import-commune-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.import-commune-pick label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
}
.import-commune-pick select {
  width: 100%;
  min-height: 40px;
}
.import-commune-hint { margin: 0 0 14px; }
@media (max-width: 640px) {
  .import-commune-pick { grid-template-columns: 1fr; }
}
/* —— Guide docs: admin-like skin —— */
.lp-guide-app .lp-guide-page {
  padding-top: 28px;
  padding-bottom: 72px;
}
.lp-guide-app .lp-guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.lp-guide-app .lp-guide-side {
  position: sticky;
  top: 88px;
  padding: 18px 12px 16px;
  border-radius: var(--radius, 18px);
  background: linear-gradient(165deg, #111 0%, var(--side, #1a1a1a) 45%, var(--side2, #2c2c2c) 100%);
  color: #f0f0f0;
  border: 0;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.lp-guide-app .lp-guide-side-brand {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  margin: 0 8px 14px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-guide-app .lp-guide-side-label {
  margin: 0 8px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.lp-guide-app .lp-guide-side-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.lp-guide-app .lp-guide-side-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  color: rgba(240,240,240,.72);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
.lp-guide-app .lp-guide-side-ico {
  flex: 0 0 auto;
  opacity: .45;
  font-size: 11px;
  margin-top: 2px;
}
.lp-guide-app .lp-guide-side-list a:hover,
.lp-guide-app .lp-guide-side-list a.on {
  background: rgba(237,187,2,.16);
  color: #fff;
}
.lp-guide-app .lp-guide-side-list a.on .lp-guide-side-ico,
.lp-guide-app .lp-guide-side-list a:hover .lp-guide-side-ico {
  opacity: 1;
  color: var(--g);
}
.lp-guide-app .lp-guide-back {
  display: inline-block;
  margin: 4px 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(237,187,2,.9);
  text-decoration: none;
}
.lp-guide-app .lp-guide-back:hover { color: #fff; text-decoration: underline; }
.lp-guide-app .lp-guide-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.lp-guide-app .lp-guide-hero.card,
.lp-guide-app .lp-guide-section.card,
.lp-guide-app .lp-guide-tips.card,
.lp-guide-app .lp-guide-video-card.card,
.lp-guide-app .lp-mid-cta.card,
.lp-guide-app .lp-guide-steps li.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.lp-guide-app .lp-guide-hero { padding: 22px 24px 20px; }
.lp-guide-app .lp-guide-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lp-guide-app .lp-guide-badge {
  display: inline-flex;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--gd);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lp-guide-app .lp-guide-pdf.btn {
  text-decoration: none;
  padding: 9px 14px;
  font-size: 13px;
}
.lp-guide-app .lp-guide-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink);
}
.lp-guide-app .lp-guide-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 52rem;
}
.lp-guide-app .lp-guide-video-card { padding: 14px; }
.lp-guide-app .lp-guide-video {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}
.lp-guide-app .lp-guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.lp-guide-app .lp-guide-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.lp-guide-app .lp-guide-steps em {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--gd);
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
}
.lp-guide-app .lp-guide-steps strong { display: block; margin-bottom: 4px; font-size: 15px; }
.lp-guide-app .lp-guide-steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lp-guide-app .lp-guide-sections { display: grid; gap: 14px; margin: 0; }
.lp-guide-app .lp-guide-section { padding: 20px 22px; }
.lp-guide-app .lp-guide-section h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}
.lp-guide-app .lp-guide-section > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.lp-guide-app .lp-guide-bullets {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.lp-guide-app .lp-guide-bullets li {
  position: relative;
  padding: 8px 12px 8px 28px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.lp-guide-app .lp-guide-bullets li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-gradient);
}
.lp-guide-app .lp-guide-table-wrap {
  overflow-x: auto;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.lp-guide-app .lp-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.45;
  min-width: 520px;
}
.lp-guide-app .lp-guide-table th,
.lp-guide-app .lp-guide-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.lp-guide-app .lp-guide-table thead th {
  background: #faf8f3;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.lp-guide-app .lp-guide-table tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 34%;
  background: #fffef9;
}
.lp-guide-app .lp-guide-table tbody td { color: var(--muted); }
.lp-guide-app .lp-guide-table tbody tr:hover td,
.lp-guide-app .lp-guide-table tbody tr:hover th { background: rgba(237,187,2,.06); }
.lp-guide-app .lp-guide-table tbody tr:last-child th,
.lp-guide-app .lp-guide-table tbody tr:last-child td { border-bottom: 0; }
.lp-guide-app .lp-guide-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.lp-guide-app .lp-guide-feature {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffef9;
  border: 1px solid var(--line);
  border-left: 3px solid var(--g);
  box-shadow: none;
}
.lp-guide-app .lp-guide-feature h3 {
  margin: 0 0 8px;
  font-size: .98rem;
  font-weight: 800;
  color: var(--ink);
}
.lp-guide-app .lp-guide-feature p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.lp-guide-app .lp-guide-feature .lp-guide-bullets { margin: 0; }
.lp-guide-app .lp-guide-feature .lp-guide-bullets li {
  background: #fff;
  border: 1px solid var(--line);
}
.lp-guide-app .lp-guide-tips {
  margin: 0;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(237,187,2,.12), rgba(255,152,0,.06)), var(--card) !important;
  border-color: rgba(201,151,0,.28) !important;
}
.lp-guide-app .lp-guide-tips h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
}
.lp-guide-app .lp-guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lp-guide-app .lp-guide-card {
  display: grid;
  gap: 8px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lp-guide-app .lp-guide-card:hover {
  border-color: rgba(201,151,0,.45);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.lp-guide-app .lp-guide-card strong { font-size: 1.05rem; font-weight: 800; }
.lp-guide-app .lp-guide-card span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.lp-guide-app .lp-mid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin: 0;
}
.lp-guide-app .lp-mid-cta p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 900px) {
  .lp-guide-app .lp-guide-layout { grid-template-columns: 1fr; }
  .lp-guide-app .lp-guide-side {
    position: static;
    max-height: none;
  }
  .lp-guide-app .lp-guide-side-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .lp-guide-app .lp-guide-cards { grid-template-columns: 1fr; }
  .lp-guide-app .lp-guide-feature-grid { grid-template-columns: 1fr; }
}

.lp-guide-app.landing-body {
  background:
    radial-gradient(1000px 480px at -10% -5%, rgba(237,187,2,.18), transparent 55%),
    radial-gradient(800px 420px at 110% 0%, rgba(255,152,0,.12), transparent 50%),
    radial-gradient(600px 300px at 50% 100%, rgba(237,187,2,.08), transparent 60%),
    var(--bg) !important;
  color: var(--ink);
}

/* Guide feature/section: thêm khoảng cách biên */
.lp-guide-app .lp-guide-section {
  padding: 24px 28px !important;
}
.lp-guide-app .lp-guide-hero {
  padding: 24px 28px 22px !important;
}
.lp-guide-app .lp-guide-feature {
  padding: 16px 18px 16px 20px !important;
}
.lp-guide-app .lp-guide-bullets li {
  padding: 10px 14px 10px 30px !important;
}
.lp-guide-app .lp-guide-tips {
  padding: 20px 24px !important;
}
.lp-guide-app .lp-guide-table th,
.lp-guide-app .lp-guide-table td {
  padding: 12px 14px !important;
}

.lp-guide-app .lp-guide-toc {
  padding: 20px 24px !important;
}
.lp-guide-app .lp-guide-toc h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}
.lp-guide-app .lp-guide-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  counter-reset: toc;
}
.lp-guide-app .lp-guide-toc-list li {
  counter-increment: toc;
}
.lp-guide-app .lp-guide-toc-list a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  background: var(--soft);
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease;
}
.lp-guide-app .lp-guide-toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 1.6em;
  color: var(--gd);
  font-weight: 800;
  font-size: 12px;
  margin-top: 1px;
}
.lp-guide-app .lp-guide-toc-list a:hover {
  border-color: rgba(201,151,0,.45);
  background: #fff;
  color: var(--ink);
}
.lp-guide-app .lp-guide-section {
  scroll-margin-top: 88px;
}

/* Fix chữ sát / đè trên trang hướng dẫn web */
.lp-guide-app .lp-guide-feature h3 {
  margin: 0 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--line) !important;
  line-height: 1.4 !important;
}
.lp-guide-app .lp-guide-feature p {
  margin: 0 0 12px !important;
  line-height: 1.7 !important;
}
.lp-guide-app .lp-guide-feature p:last-child {
  margin-bottom: 0 !important;
}
.lp-guide-app .lp-guide-section > p {
  margin: 0 0 14px !important;
  line-height: 1.7 !important;
}
.lp-guide-app .lp-guide-section h2 {
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  line-height: 1.35 !important;
}
.lp-guide-app .lp-guide-feature {
  margin-bottom: 4px !important;
}
.lp-guide-app .lp-guide-feature-grid {
  gap: 16px !important;
  margin-top: 16px !important;
}
.lp-guide-app .lp-guide-bullets {
  gap: 10px !important;
}
.lp-guide-app .lp-guide-bullets li {
  line-height: 1.6 !important;
}
