/* ==========================================================================
   Cổng Tuyển Sinh Số – Parent Portal Design System (Long Châu Style)
   ========================================================================== */
:root {
  --bg: #edf0f3;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #f1f5f9;
  --ink: #020b27;
  --ink-2: #4a4f63;
  --mute: #657384;
  --line: #e6ebf2;
  --line-strong: #d0d9e6;

  --accent: #1250dc;
  --accent-hover: #0e3fb5;
  --accent-soft: #eaeffa;
  --accent-soft-hover: #dbe6fc;
  --accent-deep: #0b39ad;
  --school: #8b1d1d;

  --ph: #1250dc; --ph-bg: #eaeffa; --ph-bd: #c7d9fb;
  --nt: #ea580c; --nt-bg: #fff7ed; --nt-bd: #fed7aa;
  --sys: #475569; --sys-bg: #f1f5f9; --sys-bd: #cbd5e1;
  --zl: #0068ff; --zl-bg: #eff6ff; --zl-bd: #bfdbfe;
  --bk: #0d9488; --bk-bg: #f0fdfa; --bk-bd: #99f6e4;
  --ok: #15803d; --ok-bg: #f0fdf4; --ok-bd: #bbf7d0;
  --test: #b45309; --test-bg: #fffbeb; --test-bd: #fde68a;
  --warn: #b45309; --warn-bg: #fffbeb; --warn-bd: #fde68a;
  --wait: #1250dc; --wait-bg: #eaeffa; --wait-bd: #c7d9fb;
  --bad: #dc2626; --bad-bg: #fef2f2; --bad-bd: #fecaca;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .045);
  --shadow-md: 0 10px 28px -10px rgba(18, 80, 220, .18), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-lg: 0 22px 46px -18px rgba(18, 80, 220, .35);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.32; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
h1 { font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code {
  background: var(--surface-3); color: var(--ink);
  border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px;
}
.tabular { font-variant-numeric: tabular-nums; }
[hidden], [x-cloak] { display: none !important; }
.d-only { display: none; }
@media (min-width: 768px) { .d-only { display: inline; } }

/* ===== SVG Icon System & 3D Glossy Avatar ===== */
svg.i {
  width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
svg.i.i-sm { width: 15px; height: 15px; }
svg.i.i-lg { width: 22px; height: 22px; }
svg.i.i-xl { width: 26px; height: 26px; }

.lc-avatar { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; line-height: 0; }
.lc-avatar svg { width: 100%; height: 100%; display: block; }
.lc-avatar-sm { width: 28px; height: 28px; }
.lc-avatar-md { width: 64px; height: 64px; box-shadow: 0 6px 18px rgba(18, 80, 220, .25); }
.lc-avatar-lg { width: 84px; height: 84px; box-shadow: 0 10px 24px rgba(18, 80, 220, .22); }

/* ===== Core Primitives ===== */
.card {
  background: var(--surface); border: 0;
  border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
@media (min-width: 768px) { .card { padding: 24px; } }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 500; line-height: 1.35; white-space: nowrap;
}
.p-ph { background: var(--ph-bg); color: var(--ph); }
.p-nt { background: var(--nt-bg); color: var(--nt); }
.p-sys { background: var(--sys-bg); color: var(--sys); }
.p-zl { background: var(--zl-bg); color: var(--zl); }
.p-bk { background: var(--bk-bg); color: var(--bk); }
.p-ok { background: var(--ok-bg); color: var(--ok); }
.p-test { background: var(--test-bg); color: var(--test); }
.p-warn { background: var(--warn-bg); color: var(--warn); }
.p-wait { background: var(--wait-bg); color: var(--wait); }
.p-bad { background: var(--bad-bg); color: var(--bad); }
.p-ok::before, .p-bad::before, .p-test::before, .p-warn::before, .p-wait::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
}

/* Long Châu Pill Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 10px 20px; min-height: 42px;
  font-weight: 600; font-size: 14.5px; line-height: 1.25; cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s, transform .12s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--accent-soft-hover); color: var(--accent-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(18, 80, 220, .28); outline-offset: 2px; }
.btn.outline { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn.outline:hover { background: var(--surface-2); border-color: #94a3b8; color: var(--ink); }
.btn.pri {
  background: linear-gradient(180deg, #2b72ea 0%, #1250dc 100%); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(18, 80, 220, .55);
}
.btn.pri:hover { background: linear-gradient(180deg, #2164dc 0%, #0e41ba 100%); color: #fff; box-shadow: 0 8px 20px -6px rgba(18, 80, 220, .65); }
.btn.soft, .btn.pri-soft { background: var(--accent-soft); color: var(--accent); }
.btn.soft:hover, .btn.pri-soft:hover { background: var(--accent-soft-hover); color: var(--accent-hover); }
.btn.school { background: var(--school); color: #fff; }
.btn.nt { background: var(--nt); color: #fff; }
.btn.ok { background: #16a34a; color: #fff; }
.btn.ok:hover { background: #15803d; color: #fff; }
.btn.test { background: #d97706; color: #fff; }
.btn.test:hover { background: #b45309; color: #fff; }
.btn.bad { background: #dc2626; color: #fff; }
.btn.zl { background: var(--zl); color: #fff; }
.btn.ghost { background: transparent; color: var(--mute); }
.btn.ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn.sm { padding: 7px 15px; min-height: 36px; font-size: 13.5px; gap: 5px; }
.btn.lg { padding: 12px 26px; min-height: 48px; font-size: 15.5px; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
@media (max-width: 767px) {
  .btn { min-height: 44px; }
  .btn.sm { min-height: 36px; }
}

.fld { margin-bottom: 14px; }
.fld:last-child { margin-bottom: 0; }
.fld label {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px;
}
.fld-req { color: var(--bad); }
.inp {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 10px 14px; min-height: 44px; background: var(--surface-2);
  font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.inp::placeholder { color: #94a3b8; }
.inp:hover { border-color: #9fb1cc; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(18, 80, 220, .14); background: #fff; }
.inp:disabled, .inp[readonly] { background: var(--surface-3); color: var(--mute); }
select.inp {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2364748b' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}

.note {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--warn-bg); border: 1px solid var(--warn-bd); border-radius: 12px;
  padding: 12px 15px; font-size: 14px; color: #78350f; line-height: 1.55;
}
.note > svg.i { flex: none; margin-top: 2px; }
.note.blue { background: var(--ph-bg); border-color: var(--ph-bd); color: #1e3a8a; }
.note.ok { background: var(--ok-bg); border-color: var(--ok-bd); color: #14532d; }
.note.bad { background: var(--bad-bg); border-color: var(--bad-bd); color: #7f1d1d; }
.note.warn { background: var(--warn-bg); border-color: var(--warn-bd); color: #78350f; }

.flash-list { display: grid; gap: 8px; margin-bottom: 18px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 500;
  border: 1px solid; box-shadow: var(--shadow-xs);
}
.flash.success { background: var(--ok-bg); border-color: var(--ok-bd); color: #14532d; }
.flash.error { background: var(--bad-bg); border-color: var(--bad-bd); color: #7f1d1d; }
.flash.warning { background: var(--warn-bg); border-color: var(--warn-bd); color: #78350f; }
.flash.info { background: var(--ph-bg); border-color: var(--ph-bd); color: #1e3a8a; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 767px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--mute); font-weight: 400; }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 600px) {
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 8px; font-size: 13px; }
}

.hero {
  border-radius: var(--r-lg); padding: 28px; color: #fff; margin-bottom: 20px;
  background: linear-gradient(135deg, #3882f6 0%, #1250dc 100%);
  box-shadow: var(--shadow-md);
}
.hero h1 { font-size: 27px; color: #fff; margin-bottom: 6px; }
.hero p { margin: 0; opacity: .92; font-size: 15.5px; }

/* ==========================================================================
   LONG CHÂU HEADER SHELL (No search, no horizontal bar, campus watermark)
   ========================================================================== */
.pt-body { min-height: 100vh; display: flex; flex-direction: column; }

.lc-header {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #3b82f6 0%, #2163e6 52%, #1250dc 100%);
  box-shadow: 0 6px 20px -10px rgba(18, 80, 220, .45);
}
.lc-header-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lc-art-left { position: absolute; left: -12px; bottom: -4px; width: 340px; height: auto; opacity: .55; }
.lc-art-right { position: absolute; right: -10px; bottom: -4px; width: 360px; height: auto; opacity: .55; }
@media (max-width: 767px) {
  .lc-art-left { width: 220px; opacity: .35; }
  .lc-art-right { display: none; }
}


.lc-header-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}

.lc-brand {
  display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none;
  min-width: 0; flex: 1;
}
.lc-brand:hover { color: #fff; text-decoration: none; }
.lc-logo-box {
  height: 44px; padding: 4px 10px; border-radius: 12px; flex: none;
  background: #fff; box-shadow: 0 4px 12px rgba(11, 57, 173, .22);
  display: flex; align-items: center; justify-content: center;
}
.school-logo-img { height: 100%; width: auto; max-width: 115px; object-fit: contain; display: block; }
.school-logo {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: #fff; color: var(--accent); font-weight: 800; font-size: 14px;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(11, 57, 173, .22);
}
.lc-brand-lines { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lc-brand-line1 {
  font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .96); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-brand-line2 {
  font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lc-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lc-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  color: #fff; font-weight: 600; font-size: 14px; text-decoration: none;
  background: rgba(255, 255, 255, .12); transition: background .15s;
}
.lc-user-chip:hover { background: rgba(255, 255, 255, .22); color: #fff; text-decoration: none; }
.lc-cta-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; min-height: 40px; border-radius: 999px; text-decoration: none;
  background: var(--accent-deep); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 12px rgba(10, 35, 110, .26); transition: background .15s;
}
.lc-cta-pill:hover { background: #082c8a; color: #fff; text-decoration: none; }
.lc-logout-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; min-height: 38px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: background .15s;
}
.lc-logout-pill:hover { background: rgba(255, 255, 255, .22); }

@media (max-width: 640px) {
  .lc-header-inner { padding: 12px 14px; gap: 10px; }
  .lc-logo-box { height: 38px; padding: 3px 7px; border-radius: 10px; }
  .lc-brand-line1 { font-size: 13.5px; }
  .lc-brand-line2 { font-size: 15.5px; }
  .lc-user-chip span:last-child { display: none; }
  .lc-user-chip { padding: 4px; }
  .lc-cta-pill { padding: 8px 13px; font-size: 13px; min-height: 36px; }
}
@media (min-width: 900px) {
  .lc-header-inner { padding-left: 28px; padding-right: 28px; }
  .lc-header-inner { padding-top: 16px; padding-bottom: 18px; }
  .lc-logo-box { height: 52px; padding: 6px 12px; }
  .school-logo { width: 48px; height: 48px; font-size: 15.5px; }
  .school-logo-img { max-width: 140px; }
  .lc-brand-line1 { font-size: 16px; }
  .lc-brand-line2 { font-size: 19.5px; }
}

/* Main container */
.pt-wrap {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 18px 16px 72px; flex: 1;
}
@media (min-width: 900px) { .pt-wrap { padding: 20px 28px 88px; } }

/* Floating Bottom-Right Support Button ("Tư vấn") */
.lc-fab-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.lc-fab-btn {
  display: flex; flex-direction: column; align-items: center; background: none; border: 0;
  padding: 0; cursor: pointer; filter: drop-shadow(0 8px 18px rgba(18, 80, 220, .35));
}
.lc-fab-btn .lc-avatar-md { width: 52px; height: 52px; border: 2px solid #fff; }
.lc-fab-tag {
  margin-top: -10px; background: var(--accent); color: #fff; border: 2px solid #fff;
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
}
.lc-fab-popover {
  position: absolute; right: 0; bottom: 78px; width: 280px;
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, .25); border: 1px solid var(--line);
}
.lc-fab-pop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lc-fab-pop-head b { display: block; font-size: 15px; color: var(--ink); }
.lc-fab-pop-head span { display: block; font-size: 13px; color: var(--mute); }
.lc-fab-addr { display: flex; align-items: flex-start; gap: 7px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.lc-fab-addr svg.i { color: var(--mute); margin-top: 2px; }

/* Footer */
.pt-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid #dde5f0;
  color: var(--ink-2);
  font-size: 14px;
}
.pt-footer .inner { max-width: 1180px; margin: 0 auto; padding: 28px 16px 20px; }
.pt-ft-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.pt-ft-school {
  display: inline-flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none; max-width: 100%;
}
.pt-ft-school:hover { color: inherit; text-decoration: none; }
.pt-ft-school:hover .pt-ft-title { color: var(--accent); }
.pt-ft-logo-box {
  height: 44px; padding: 4px 10px; border-radius: 11px; flex: none;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  display: flex; align-items: center; justify-content: center;
}
.pt-ft-logo-box img { height: 100%; width: auto; max-width: 120px; object-fit: contain; display: block; }
.pt-ft-logo {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--accent-soft); border: 1px solid var(--ph-bd);
  color: var(--accent); font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.pt-ft-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pt-ft-kicker {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--mute); line-height: 1.3;
}
.pt-ft-title {
  font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: -.012em; line-height: 1.3; transition: color .15s;
}
.pt-ft-auth { font-size: 13.5px; font-weight: 400; color: var(--mute); line-height: 1.35; }
.pt-ft-desc { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--mute); max-width: 480px; }

.pt-ft-heading {
  margin: 0 0 10px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--mute); line-height: 1.3;
}
.pt-ft-clist { display: grid; gap: 8px; }
.pt-ft-crow { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pt-ft-crow svg.i { color: var(--mute); margin-top: 3px; flex: none; }
.pt-ft-clabel { color: var(--mute); font-weight: 500; }
.pt-ft-tel {
  color: var(--ink); font-weight: 600; text-decoration: none;
  transition: color .15s;
}
.pt-ft-tel:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.pt-ft-bottom {
  margin-top: 22px; padding: 14px 72px 0 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--mute);
}
.pt-ft-powered { display: inline-flex; align-items: center; gap: 6px; }
.pt-ft-powered svg.i { width: 14px; height: 14px; color: var(--accent); }
.pt-ft-powered strong { font-weight: 600; color: var(--ink-2); }

@media (min-width: 768px) {
  .pt-ft-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 380px);
    justify-content: space-between;
    gap: 32px 48px;
    align-items: start;
  }
}
@media (min-width: 900px) {
  .pt-footer .inner { padding: 32px 28px 22px; }
}
@media (min-width: 1340px) {
  .pt-ft-bottom { padding-right: 0; }
}

/* ==========================================================================
   HOME PAGE (/) – Long Châu Bright Royal-Blue Hero & Clean White Cards
   ========================================================================== */
.hm-resume-list { display: grid; gap: 10px; margin-bottom: 16px; }
.hm-resume-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.hm-resume {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px; border-radius: var(--r);
  background: #fff; box-shadow: var(--shadow-sm);
}
.hm-resume-main { display: flex; align-items: center; gap: 12px; min-width: 0; }

.hm-hero {
  position: relative; overflow: hidden; display: grid; gap: 24px;
  padding: 26px 20px; margin-bottom: 22px; color: #fff; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #3b82f6 0%, #2062e6 52%, #1250dc 100%);
  box-shadow: var(--shadow-lg);
}
.hm-hero::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  right: -120px; top: -160px; background: rgba(255, 255, 255, .10); pointer-events: none;
}
.hm-hero > * { position: relative; z-index: 1; }
.hm-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26);
  padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
}
.hm-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fca5a5; }
.hm-badge .dot.on { background: #6ee7b7; box-shadow: 0 0 0 4px rgba(110, 231, 183, .28); }
.hm-hero h1 { color: #fff; font-size: 27px; line-height: 1.2; margin: 14px 0 10px; }
.hm-hero-lead { color: rgba(255, 255, 255, .94); font-size: 16px; line-height: 1.6; max-width: 580px; margin: 0; }
.hm-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hm-btn-white { background: #fff; color: var(--accent); }
.hm-btn-white:hover { background: #f8fafc; color: var(--accent-hover); }
.hm-btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .36); }
.hm-btn-ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; }

.hm-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2);
}
.hm-metric span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .86); }
.hm-metric b { display: block; font-size: 16.5px; font-weight: 600; color: #fff; margin-top: 2px; }
@media (max-width: 560px) { .hm-metrics { grid-template-columns: 1fr 1fr; } }

.hm-round-card {
  background: #fff; color: var(--ink); border-radius: var(--r); padding: 22px;
  box-shadow: 0 18px 36px -18px rgba(10, 35, 110, .48); align-self: center;
}
.hm-rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hm-rc-label { font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.hm-rc-big { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.hm-rc-big b { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.035em; color: var(--accent); }
.hm-rc-big span { color: var(--mute); font-size: 15px; font-weight: 500; }
.hm-rc-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.hm-rc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, var(--accent)); }
.hm-rc-dates { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-top: 8px; font-weight: 500; }
.hm-rc-box {
  margin-top: 14px; padding: 11px 13px; border-radius: 12px;
  background: var(--accent-soft); font-size: 13.5px; color: var(--ink-2);
  display: flex; align-items: flex-start; gap: 8px;
}
.hm-rc-box > svg.i { color: var(--accent); margin-top: 1px; }
.hm-rc-docs { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hm-rc-docs-title { font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-chip { font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--surface-3); border-radius: 999px; padding: 4px 11px; }

/* 4-step process row */
#quy-trinh, #lich-tuyen-sinh, #hoi-dap { scroll-margin-top: 20px; }
.hm-process { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
.hm-step {
  background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
}
.hm-step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-step-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.hm-step-num { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.hm-step-body b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.hm-step-body span { display: block; font-size: 14px; color: var(--mute); line-height: 1.5; }

.hm-layout { display: grid; gap: 20px; }
.hm-main { display: grid; gap: 20px; min-width: 0; align-content: start; }
.hm-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.hm-side .card + .card, .hm-main .card + .card { margin-top: 0; }

.card-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.card-head-row h2, .card-head-row h3 { margin: 0; font-size: 18px; }

/* News list inside white card */
.news-list { display: grid; }
.news-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--ink);
  border-bottom: 1px solid var(--line); transition: background .12s; text-decoration: none;
}
.news-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.news-item:first-child { padding-top: 4px; }
.news-item:hover { color: var(--accent); text-decoration: none; }
.news-list.cards-mode { gap: 10px; }
.news-list.cards-mode .news-item {
  background: #fff; border: 0; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.news-date {
  flex: none; width: 54px; height: 58px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-content: center; text-align: center;
}
.news-date b { font-size: 19px; line-height: 1; font-weight: 700; }
.news-date span { font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.news-body { flex: 1; min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-body h3 { font-size: 16px; margin: 5px 0 3px; line-height: 1.4; font-weight: 600; color: inherit; }
.news-body p {
  margin: 0; font-size: 14.5px; color: var(--mute);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-time { font-size: 13px; color: var(--mute); }
.cat-pin { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #b45309; font-weight: 600; }
.news-go { color: #94a3b8; flex: none; }
.cat { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cat-KHAN { background: var(--warn-bg); color: var(--warn); }
.cat-KET_QUA { background: var(--ok-bg); color: var(--ok); }
.cat-LICH { background: var(--ph-bg); color: var(--ph); }
.cat-HUONG_DAN { background: #f3e8ff; color: #6b21a8; }
.cat-CHUNG { background: var(--surface-3); color: var(--ink-2); }
.news-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.news-tabs a {
  padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--ink-2);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-xs); text-decoration: none;
}
.news-tabs a:hover { text-decoration: none; }
.news-tabs a.on { background: var(--accent); color: #fff; }
.news-list.compact .news-item { padding: 11px 0; gap: 10px; }
.news-list.compact .news-date, .news-list.compact .news-go, .news-list.compact .news-body p { display: none; }
.news-article h1 { font-size: 26px; line-height: 1.25; margin: 12px 0 10px; }
.news-article .lead { font-size: 16px; color: var(--ink-2); font-weight: 500; margin: 0 0 16px; }
.news-content { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.news-content p { margin: 0 0 12px; }

/* FAQ inside white card */
.hm-faq { display: grid; }
.hm-faq details { border-bottom: 1px solid var(--line); }
.hm-faq details:last-child { border-bottom: 0; }
.hm-faq summary {
  cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink);
}
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary svg.i { color: var(--mute); transition: transform .18s; }
.hm-faq details[open] summary svg.i { transform: rotate(180deg); color: var(--accent); }
.hm-faq details p { margin: 0 0 14px; color: var(--mute); font-size: 14.5px; line-height: 1.65; }

/* Milestones & Sidebar */
.side-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.side-card-head svg.i { color: var(--accent); }
.side-card-head h3 { margin: 0; font-size: 17px; }

.ms { list-style: none; margin: 0; padding: 0; }
.ms li { position: relative; padding: 0 0 15px 26px; }
.ms li:last-child { padding-bottom: 0; }
.ms li::before {
  content: ""; position: absolute; left: 3px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  background: #cbd5e1; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #cbd5e1;
}
.ms li::after { content: ""; position: absolute; left: 8px; top: 19px; bottom: 0; width: 1.5px; background: var(--line); }
.ms li:last-child::after { display: none; }
.ms li.done::before { background: #16a34a; box-shadow: 0 0 0 1.5px #16a34a; }
.ms li.current::before { background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px rgba(18, 80, 220, .16); }
.ms-date { font-size: 12.5px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.ms li.current .ms-date { color: var(--accent); }
.ms-title { font-weight: 600; font-size: 14.5px; margin-top: 2px; color: var(--ink); }
.ms li.done .ms-title { color: var(--mute); font-weight: 500; }
.ms-title em {
  font-style: normal; font-size: 11.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; margin-left: 4px;
}
.ms-note { font-size: 13.5px; color: var(--mute); margin-top: 2px; }

.prep-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prep-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.prep-list li svg.i { color: #16a34a; margin-top: 2px; }

@media (min-width: 720px) { .hm-process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .hm-hero { grid-template-columns: 1.32fr 1fr; padding: 36px 40px; gap: 36px; }
  .hm-hero h1 { font-size: 34px; }
}
@media (min-width: 1060px) {
  .hm-process { grid-template-columns: repeat(4, 1fr); }
  .hm-step { flex-direction: column; gap: 12px; }
  .hm-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  .hm-side { position: sticky; top: 20px; }
}

/* ==========================================================================
   /ho-so/ – LONG CHÂU 2-COLUMN PROFILE LAYOUT (No vertical nav menu)
   ========================================================================== */
.app-grid { display: grid; gap: 20px; align-items: start; }
.lc-left-col { display: grid; gap: 16px; min-width: 0; }
.lc-left-col .card + .card { margin-top: 0; }
.app-main { min-width: 0; display: grid; gap: 16px; }
.app-main .card + .card { margin-top: 0; }

@media (min-width: 960px) {
  .app-grid { grid-template-columns: 310px minmax(0, 1fr); gap: 20px; }
  .lc-left-col { position: sticky; top: 20px; }
}

/* Left Blue Gradient Profile Card (exact Long Châu visual anchor) */
.lc-id-card {
  position: relative; overflow: hidden; border-radius: var(--r); padding: 24px 18px;
  text-align: center; color: #fff;
  background: linear-gradient(145deg, #4389fa 0%, #2466ea 52%, #1250dc 100%);
  box-shadow: var(--shadow-md);
}
.lc-id-card::before, .lc-id-card::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .10); pointer-events: none;
}
.lc-id-card::before { width: 170px; height: 170px; right: -60px; top: -70px; }
.lc-id-card::after { width: 130px; height: 130px; left: -50px; bottom: -60px; }
.lc-id-card > * { position: relative; z-index: 1; }
.lc-id-name { font-size: 17px; font-weight: 600; color: #fff; margin-top: 12px; }
.lc-id-contact {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 7px;
  margin-top: 6px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .94);
}
.lc-id-contact > .tabular {
  font-size: 14.5px; font-weight: 600; color: #fff;
}
.lc-id-sep { opacity: .55; }
.lc-id-email {
  max-width: 100%; overflow-wrap: anywhere; color: rgba(255, 255, 255, .94);
}
.lc-id-edit-btn, .lc-id-add-email {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; color: #fff; cursor: pointer;
  padding: 2px 9px; font-size: 12.5px; font-weight: 500; line-height: 1.35;
  transition: background .15s;
}
.lc-id-edit-btn:hover, .lc-id-add-email:hover { background: rgba(255, 255, 255, .28); }
.lc-id-edit-form {
  margin-top: 10px; padding: 10px; border-radius: 12px;
  background: rgba(15, 23, 42, .22); border: 1px solid rgba(255, 255, 255, .22);
  text-align: left; display: grid; gap: 8px;
}
.lc-id-edit-form input {
  width: 100%; padding: 7px 10px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .96);
  color: var(--ink); font-size: 14px;
}
.lc-id-edit-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
}
.lc-id-cancel {
  background: transparent; border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.lc-id-cancel:hover { background: rgba(255, 255, 255, .14); }
.lc-id-save {
  background: #fff; border: 0; color: var(--accent);
  border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lc-id-save:hover { background: #eff6ff; }
.lc-id-code {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.lc-id-copy {
  background: none; border: 0; color: #fff; cursor: pointer; padding: 2px; display: inline-flex; opacity: .9;
}
.lc-id-copy:hover { opacity: 1; }
.lc-id-status { margin-top: 12px; }
.lc-id-status .pill { box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }

/* Compact Top Bar & Child Switcher Pills */
.app-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.app-topbar-title {
  font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.app-topbar-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.child-pills {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0;
}
.child-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 14px; font-weight: 600; max-width: 100%;
  transition: border-color .15s, background .15s, color .15s;
}
.child-pill:hover { border-color: #93c5fd; background: #f8fbff; color: var(--ink); text-decoration: none; }
.child-pill.is-active {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent);
}
.child-pill-code {
  font-size: 12px; font-weight: 600; color: var(--mute);
  padding: 1px 7px; border-radius: 999px; background: var(--surface-2);
}
.child-pill.is-active .child-pill-code { background: rgba(18, 80, 220, .12); color: var(--accent); }

/* Right Panel Header */
.lc-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.lc-panel-head h1, .lc-panel-head h2 { font-size: 19px; margin: 0; }
.lc-panel-head h3 { font-size: 16.5px; margin: 0; }
.lc-panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Horizontal Hairline KV Rows */
.lc-kv-list { max-width: 640px; margin: 0 auto; }
.lc-kv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.lc-kv-row:last-child { border-bottom: 0; }
.lc-kv-lbl { color: var(--mute); font-weight: 400; flex: none; }
.lc-kv-val { color: var(--ink); font-weight: 600; text-align: right; word-break: break-word; }
.lc-kv-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 560px) {
  .lc-kv-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
  .lc-kv-val { text-align: left; }
}

/* Single-Card Draft Flow (Bước 1 -> Bước 2 -> Bước 3) */
.nhap-card { padding: 22px; display: grid; gap: 22px; }
.nhap-card #draft-form { display: grid; gap: 22px; margin: 0; }
.nhap-sec { display: grid; gap: 14px; }
.nhap-sec + .nhap-sec,
.nhap-card #draft-form > .nhap-sec:first-of-type { padding-top: 22px; border-top: 1px solid var(--line); }
.nhap-sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.nhap-sec-head h2 { font-size: 17.5px; margin: 0; color: var(--ink); }
.nhap-sec-sub { font-size: 14px; color: var(--mute); margin: 0; }
.nhap-sec-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  padding-top: 6px;
}

.step-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; line-height: 1.25;
}

.intake-box {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed #93b4f8; background: #f5f8ff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.intake-box:hover, .intake-box.is-dragover {
  border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--shadow-sm);
}
.intake-box-ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--accent); color: #fff;
}
.intake-box-body { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.intake-box-body b { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.intake-box-body span { font-size: 13.5px; color: var(--mute); }

.intake-progress {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-size: 14.5px; font-weight: 600;
}
.intake-spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2.5px solid rgba(18, 80, 220, .24); border-top-color: var(--accent);
  animation: ctssSpin .7s linear infinite;
}
@keyframes ctssSpin { to { transform: rotate(360deg); } }

.intake-result {
  margin-top: 10px; padding: 13px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.5;
}
.intake-result.is-ok { background: var(--ok-bg); border: 1px solid var(--ok-bd); color: #14532d; }
.intake-result.is-err { background: var(--bad-bg); border: 1px solid var(--bad-bd); color: #991b1b; }
.intake-result-msg { font-weight: 600; }
.intake-result-warns { margin: 6px 0 0 18px; padding: 0; font-size: 13.5px; color: #92400e; }

.link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--accent); font-weight: 600; font-size: 14px;
}
.link-btn:hover { color: var(--accent-hover); text-decoration: underline; }

.fld label { justify-content: space-between; flex-wrap: wrap; }
.autofill-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600; line-height: 1.2;
}
.inp.is-autofilled { border-color: #60a5fa; background: #f8fbff; }

.form-grid-3 { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 14px; }
@media (max-width: 767px) { .form-grid-3 { grid-template-columns: 1fr; } }

/* Document Upload Cards */
.slot-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .slot-grid { grid-template-columns: 1fr 1fr; } }

.slot-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.slot-card:hover { background: #fff; box-shadow: var(--shadow-sm); }
.slot-card.ok { border-color: var(--ok-bd); background: #f9fefb; }
.slot-card.warn { border-color: var(--warn-bd); background: #fffdf6; }
.slot-card.bad { border-color: var(--bad-bd); background: #fff8f8; }
.slot-card.is-dragover { border: 1.5px dashed var(--accent); background: var(--accent-soft); }
.slot-card.is-uploading { opacity: .72; pointer-events: none; }

.slot-thumb {
  position: relative; width: 60px; height: 80px; border-radius: 10px; flex: none;
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center; color: #94a3b8;
}
.slot-thumb-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-zoom-hint {
  position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 999px;
  background: rgba(15, 23, 42, .72); color: #fff; display: grid; place-items: center; pointer-events: none;
}

.slot-info { flex: 1; min-width: 0; }
.slot-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.slot-title { font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.slot-status { font-size: 13px; color: var(--mute); line-height: 1.45; }
.slot-card.ok .slot-status { color: var(--ok); }
.slot-card.warn .slot-status { color: var(--warn); }
.slot-card.bad .slot-status { color: var(--bad); font-weight: 600; }

.slot-actions { flex: none; display: flex; align-items: center; gap: 6px; }
.slot-upload-btn { cursor: pointer; margin: 0; }

/* Submit Panel */
.cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .cta-bar {
    position: sticky; bottom: 0; z-index: 35;
    margin: 14px -20px -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r);
  }
  .cta-bar .btn { flex: 1; }
}

/* Status Hero Cards */
.status-hero {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: var(--r);
  background: #fff; box-shadow: var(--shadow-sm);
}
.status-hero-ic { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; }
.status-hero h3 { font-size: 18px; margin: 0 0 4px; }
.status-hero p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.status-hero.is-wait .status-hero-ic { background: var(--ph-bg); color: var(--ph); }
.status-hero.is-ok .status-hero-ic { background: var(--ok-bg); color: var(--ok); }
.status-hero.is-warn .status-hero-ic { background: var(--warn-bg); color: var(--warn); }
.status-hero.is-bad .status-hero-ic { background: var(--bad-bg); color: var(--bad); }
.status-hero.is-bk .status-hero-ic { background: var(--bk-bg); color: var(--bk); }

/* VietQR Payment Card */
.pay-split { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; margin-top: 14px; }
@media (max-width: 720px) { .pay-split { grid-template-columns: 1fr; } }
.qr-frame {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px; border-radius: var(--r); background: var(--surface-2);
}
.qr-frame img { width: 190px; max-width: 100%; border-radius: 12px; background: #fff; padding: 8px; box-shadow: var(--shadow-xs); }
.qr-amount { font-size: 23px; font-weight: 700; color: var(--accent); margin-top: 12px; font-variant-numeric: tabular-nums; }
.qr-hint { font-size: 13px; color: var(--mute); margin-top: 3px; }
.copy-btn.is-copied { background: var(--ok-bg); color: var(--ok); }

/* Readiness & Timeline & Zalo Feed */
.readiness-top { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 8px; }
.readiness-top b { font-size: 21px; font-weight: 700; color: var(--accent); }
.readiness-top span { font-size: 13.5px; color: var(--mute); font-weight: 600; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, var(--accent)); transition: width .35s ease; }

.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.check-dot {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; color: transparent;
}
.check-row.is-done { color: var(--ink); }
.check-row.is-done .check-dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.check-row.is-bad { color: var(--bad); }
.check-row.is-bad .check-dot { background: var(--bad); border-color: var(--bad); color: #fff; }

.tl { list-style: none; padding: 0; margin: 4px 0 0; }
.tl li { position: relative; padding: 0 0 14px 24px; font-size: 14px; color: var(--mute); }
.tl li:last-child { padding-bottom: 0; }
.tl li:before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: #cbd5e1;
}
.tl li.done { color: var(--ink); font-weight: 600; }
.tl li.done:before { background: #16a34a; }
.tl li.current { color: var(--accent); font-weight: 600; }
.tl li.current:before { background: var(--accent); box-shadow: 0 0 0 4px rgba(18, 80, 220, .16); }
.tl li:after { content: ""; position: absolute; left: 8.5px; top: 17px; bottom: 0; width: 1.5px; background: var(--line); }
.tl li:last-child:after { display: none; }


/* Lightbox */
.lb-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 42, .88); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; padding: 16px;
}
.lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #fff; max-width: 1100px; width: 100%; margin: 0 auto 12px;
}
.lb-title { font-weight: 600; font-size: 16px; }
.lb-note { font-size: 13.5px; color: #cbd5e1; }
.lb-actions { display: flex; gap: 8px; }
.lb-stage { flex: 1; overflow: auto; display: grid; place-items: center; }
.lb-stage img { max-width: 92vw; max-height: 80vh; border-radius: 12px; transition: transform .2s ease; }

/* ==========================================================================
   AUTH PAGES (/dang-nhap/, /dang-ky/, /xac-thuc-otp/)
   ========================================================================== */
.auth-wrap {
  max-width: 460px; margin: 16px auto 28px;
}
.auth-card.card {
  padding: 32px 30px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
@media (max-width: 560px) {
  .auth-wrap { margin: 6px auto 20px; }
  .auth-card.card { padding: 24px 20px; }
}
.auth-head { margin-bottom: 20px; }
.auth-head h1 {
  font-size: 23px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -.018em; color: var(--ink);
}
.auth-sub { color: var(--mute); font-size: 14.5px; line-height: 1.55; margin: 0; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 18px;
}
.auth-tab {
  border: 0; background: transparent; padding: 8px 10px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--mute); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-on { background: #fff; color: var(--accent); box-shadow: var(--shadow-xs); }

.pwd-wrap { position: relative; display: flex; align-items: center; }
.pwd-wrap .inp { padding-right: 58px; }
.pwd-toggle {
  position: absolute; right: 10px; background: none; border: 0;
  padding: 4px 6px; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--accent); border-radius: 6px;
}
.pwd-toggle:hover { background: var(--accent-soft); }

.fld-opt { font-weight: 400; color: var(--mute); }
.fld-hint { font-size: 13px; color: var(--mute); line-height: 1.48; margin-top: 5px; }

.auth-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
  margin: 14px 0 18px; cursor: pointer;
}
.auth-consent input { margin-top: 3px; flex: none; }

.auth-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  text-align: center; font-size: 14px; color: var(--mute); display: grid; gap: 8px;
}
.auth-foot a { font-weight: 600; }
.auth-foot-sub { font-size: 13px; }
.auth-foot-sub a { color: var(--mute); font-weight: 500; }
.auth-foot-sub a:hover { color: var(--accent); }

.auth-demo {
  margin-top: 16px; padding: 11px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.auth-demo summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--mute); list-style: none;
}
.auth-demo summary::-webkit-details-marker { display: none; }
.auth-demo[open] summary { margin-bottom: 10px; color: var(--ink-2); }
.phone-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.phone-chip {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; text-align: left; font-size: 13px;
}
.phone-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.phone-chip b { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.phone-chip span { font-size: 12px; color: var(--mute); }

/* ==========================================================================
   CERTIFICATE SHEET (A4 / Print)
   ========================================================================== */
.cert-sheet {
  background: #fffdf8; border: 2px solid var(--school); border-radius: 14px;
  padding: 24px 26px; position: relative; max-width: 720px; margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.cert-header { text-align: center; margin-bottom: 16px; }
.cert-logo { height: 58px; width: auto; display: block; margin: 0 auto 8px; }
.cert-title { font-size: 22px; font-weight: 800; color: var(--school); letter-spacing: .04em; margin: 8px 0 2px; }
.cert-stamp {
  width: 96px; height: 96px; border: 3px solid rgba(212, 60, 60, .8); border-radius: 50%;
  color: rgba(212, 60, 60, .88); font-size: 10px; font-weight: 800;
  display: grid; place-items: center; text-align: center; transform: rotate(-12deg);
  padding: 6px; line-height: 1.25;
}
@media print {
  .noprint { display: none !important; }
  body { background: #fff !important; }
  .cert-sheet { border: 2px solid #8b1d1d; box-shadow: none; max-width: 100%; }
}
