/* LifeBook bundle: fonts, variables, public, zalo-fab, tools */
/* ---- fonts.css ---- */
/* Be Vietnam Pro (SIL Open Font License 1.1 - xem OFL-LICENSE.txt) - tu host, khong tai tu Google Fonts.
   Chia theo bo ky tu: trinh duyet chi tai file can dung (tieng Viet + Latin).
   latin-ext da BO cac ky tu tieng Viet (a-breve, d-stroke, i/u-tilde, o/u-horn, y-grave..., dong) - chung nam o bo vietnamese;
   neu de trung, trang tieng Viet tai ca 2 bo cho moi do dam (thua ~13 KB/do dam). */

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/be-vietnam-pro-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-0101,U+0104-010F,U+0112-0127,U+012A-0167,U+016A-019F,U+01A2-01AE,U+01B1-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EFA-1EFF,U+2020,U+20A0-20AA,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../fonts/be-vietnam-pro-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-0101,U+0104-010F,U+0112-0127,U+012A-0167,U+016A-019F,U+01A2-01AE,U+01B1-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EFA-1EFF,U+2020,U+20A0-20AA,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../fonts/be-vietnam-pro-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/be-vietnam-pro-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-0101,U+0104-010F,U+0112-0127,U+012A-0167,U+016A-019F,U+01A2-01AE,U+01B1-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EFA-1EFF,U+2020,U+20A0-20AA,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(../fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(../fonts/be-vietnam-pro-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-0101,U+0104-010F,U+0112-0127,U+012A-0167,U+016A-019F,U+01A2-01AE,U+01B1-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EFA-1EFF,U+2020,U+20A0-20AA,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(../fonts/be-vietnam-pro-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 800;
  src: url(../fonts/be-vietnam-pro-vietnamese-800-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 800;
  src: url(../fonts/be-vietnam-pro-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-0101,U+0104-010F,U+0112-0127,U+012A-0167,U+016A-019F,U+01A2-01AE,U+01B1-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EFA-1EFF,U+2020,U+20A0-20AA,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 800;
  src: url(../fonts/be-vietnam-pro-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Font du phong co kich thuoc gan bang Be Vietnam Pro (do bang fontTools tren chu tieng Viet mau):
   trong luc font that dang tai, chu hien bang Arial da chinh co -> khi doi sang font that dong chu khong nhay
   (giam CLS). Thong so: size-adjust = do rong trung binh BVP 400 / Arial; ascent/descent tu bang hhea cua BVP. */
@font-face { font-family: 'Be Vietnam Pro Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 108.7%; ascent-override: 92%; descent-override: 24.4%; line-gap-override: 0%; }

/* ---- variables.css ---- */
:root {
    /* Bang mau theo spec LifeBook */
    --color-navy: #142C55;
    --color-navy-2: #1B3672;
    --color-primary: #2563EB;
    --color-primary-light: #EAF2FF;
    --color-purple: #7655F7;
    --color-bg: #F5F7FC;
    --color-white: #FFFFFF;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-success: #22C55E;
    --color-text: #1B2540;
    --color-text-muted: #6B7590;
    --color-border: #E6EAF3;

    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #7655F7 100%);
    --gradient-banner: linear-gradient(120deg, #2563EB 0%, #5B6EF5 55%, #7655F7 100%);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-card: 0 2px 6px rgba(20, 44, 85, 0.04), 0 10px 28px rgba(20, 44, 85, 0.06);
    --shadow-card-hover: 0 4px 10px rgba(20, 44, 85, 0.06), 0 18px 40px rgba(20, 44, 85, 0.12);

    --font-main: 'Be Vietnam Pro', 'Be Vietnam Pro Fallback', 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --sidebar-width: 264px;
    --topbar-height: 78px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body { overflow-x: hidden; overflow-x: clip; }

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- public.css ---- */
/* =====================================================================
   LifeBook - Trang cong khai (trang chu gioi thieu, trang tinh nang)
   Nhe, khong can JavaScript; toi uu Core Web Vitals (anh co kich thuoc, khong nhay bo cuc).
   ===================================================================== */
/* Trang cong khai: chu phu dam hon de dat tuong phan WCAG AA (>= 4.5:1) tren nen xam nhat */
body.pub { --color-text-muted: #5A6480; }
body.pub { margin: 0; font-family: var(--font-main); color: var(--color-text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.pub a { color: inherit; text-decoration: none; }
.pub img { max-width: 100%; height: auto; }
.pub h1, .pub h2, .pub h3 { color: var(--color-navy); line-height: 1.25; margin: 0; }
.pub p { margin: 0; }
.pub ul, .pub ol { margin: 0; padding: 0; list-style: none; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 14px; height: 14px; }
.ic-lg { width: 30px; height: 30px; }
.pub-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pub-wrap.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--color-navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Nut (doc lap voi components.css de trang nhe) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 14px; padding: 11px 20px;
       font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s; white-space: nowrap; }
.btn.sm { padding: 9px 16px; font-size: 13.5px; border-radius: 12px; }
.btn.lg { padding: 14px 24px; font-size: 15.5px; border-radius: 16px; }
.btn-gradient { background: var(--gradient-primary); color: #fff !important; box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.btn-gradient:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37, 99, 235, .36); }
.btn-ghost { background: var(--color-primary-light); color: var(--color-primary) !important; }
.btn-ghost:hover { background: #DCE8FF; }
.btn-white { background: #fff; color: var(--color-primary) !important; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn:focus-visible, .pub a:focus-visible, summary:focus-visible { outline: 3px solid rgba(37,99,235,.45); outline-offset: 2px; }

/* Bieu tuong mau */
.st-ic { width: 48px; height: 48px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.st-ic.xl { width: 64px; height: 64px; border-radius: 20px; }
.st-ic.xl .ic { width: 30px; height: 30px; }
.g-blue { background: linear-gradient(135deg, #3B82F6, #2563EB); box-shadow: 0 8px 18px rgba(37,99,235,.28); }
.g-green { background: linear-gradient(135deg, #34D399, #16A34A); box-shadow: 0 8px 18px rgba(22,163,74,.25); }
.g-purple { background: linear-gradient(135deg, #A78BFA, #7655F7); box-shadow: 0 8px 18px rgba(118,85,247,.28); }
.g-orange { background: linear-gradient(135deg, #FDBA74, #F97316); box-shadow: 0 8px 18px rgba(249,115,22,.25); }
.g-pink { background: linear-gradient(135deg, #F9A8D4, #EC4899); box-shadow: 0 8px 18px rgba(236,72,153,.25); }

/* Header */
.pub-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #EEF1F7; }
.pub-header-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.pub-logo { display: inline-flex; align-items: center; gap: 10px; }
.pub-logo span { display: flex; flex-direction: column; line-height: 1.15; }
.pub-logo strong { font-size: 19px; color: var(--color-navy); }
.pub-logo small { font-size: 11.5px; color: var(--color-text-muted); }
.pub-logo.light strong { color: #fff; }
.pub-logo.light small { color: rgba(255,255,255,.65); }
.pub-nav { display: flex; align-items: center; gap: 6px; }
.pub-nav > a:not(.btn) { padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--color-text-muted); }
.pub-nav > a:not(.btn):hover { color: var(--color-primary); background: var(--color-primary-light); }
.pub-nav-toggle, .pub-burger { display: none; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #E6EEFF 0%, rgba(230,238,255,0) 60%), linear-gradient(180deg, #F7F9FF 0%, #fff 100%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 24px 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #DCE6FB;
           color: var(--color-primary); font-size: 13px; font-weight: 700; margin-bottom: 18px !important; }
.hero h1, .f-hero h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.02em; }
.hero-lead { font-size: 17px; color: #4B5675; margin-top: 18px !important; max-width: 620px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px !important; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #4B5675; }
.hero-trust .ic { color: #16A34A; }
.hero-visual { position: relative; }
.hero-visual img { display: block; width: 100%; border-radius: 28px; background: #EEF3FF; }
.hero-card { position: relative; margin: -56px 0 0 auto; right: -18px; width: 310px; background: #fff; border-radius: 20px; padding: 16px;
             box-shadow: 0 24px 48px rgba(20,44,85,.16); display: flex; flex-direction: column; gap: 8px; }
.hero-card strong { font-size: 14px; color: var(--color-navy); }
.hc-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 13px; font-weight: 600;
          background: var(--tb); color: var(--tc); }
.t-document { --tc: #B45309; --tb: #FFF4DE; }
.t-birthday { --tc: #BE185D; --tb: #FDE7F3; }
.t-maintenance { --tc: #1D4ED8; --tb: #E3EDFF; }

/* Khu noi dung */
.pub-section { padding: 80px 0; }
.pub-section.alt { background: #F6F8FD; }
.sec-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; text-align: center; letter-spacing: -.01em; }
.sec-title.left { text-align: left; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 20px; }
.sec-sub { text-align: center; color: var(--color-text-muted); font-size: 16px; max-width: 680px; margin: 12px auto 0 !important; }
.pain-grid, .feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.pain, .feat-card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; }
.pain h3, .feat-card h3 { font-size: 18px; margin-top: 4px; }
.pain p, .feat-card p { color: #56607A; font-size: 14.5px; }
.feat-card { transition: transform .2s, box-shadow .2s; border: 1px solid transparent; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: #DCE6FB; }
.feat-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--color-primary) !important; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px !important; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: 22px; background: linear-gradient(160deg, #F4F7FF, #fff); border: 1px solid #E4EBFA; }
.steps p { font-size: 15px; color: #3C4763; }
.step-no { display: inline-flex; width: 38px; height: 38px; border-radius: 12px; align-items: center; justify-content: center; margin-bottom: 14px;
           background: var(--gradient-primary); color: #fff; font-weight: 800; }
.steps.compact { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px !important; }
.steps.compact li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.steps.compact .step-no { margin: 0; flex-shrink: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-card); font-size: 14.5px; color: #3C4763; }
.check-list .ic { color: var(--color-primary); margin-top: 1px; }
.check-list strong { color: var(--color-navy); }

/* Hoi dap */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.faq details { background: #fff; border: 1px solid #E6EAF3; border-radius: 18px; padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-card); border-color: #DCE6FB; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; color: var(--color-navy); font-size: 15.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--color-primary); font-weight: 600; }
.faq details[open] summary::after { content: "\002013"; }
.faq details p { padding: 0 0 18px; color: #4B5675; font-size: 14.5px; }

/* Trang tinh nang */
.f-hero { background: linear-gradient(180deg, #F4F7FF 0%, #fff 100%); padding: 28px 0 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--color-text-muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--color-primary); }
.crumbs [aria-current] { color: var(--color-navy); font-weight: 600; }
.f-hero-in { display: flex; gap: 24px; align-items: flex-start; }
.f-hero h1 { font-size: clamp(28px, 3.6vw, 42px); }
.prose section + section { margin-top: 44px; }
.prose h2 { font-size: clamp(21px, 2.4vw, 26px); margin-bottom: 14px; }
.prose p { font-size: 16px; color: #3C4763; margin-bottom: 12px !important; }
.tick { display: flex; flex-direction: column; gap: 10px; margin-top: 8px !important; }
.tick li { position: relative; padding-left: 30px; font-size: 15.5px; color: #3C4763; }
.tick li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
                   background: #DCFCE7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.feat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat-list { display: flex; flex-direction: column; gap: 18px; }
.feat-row { display: flex; gap: 22px; align-items: flex-start; padding: 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-card); }
.feat-row h2 { font-size: 21px; }
.feat-row h2 a:hover { color: var(--color-primary); }
.feat-row p { margin: 8px 0 10px !important; color: #4B5675; font-size: 15px; }

/* CTA + chan trang */
.pub-cta { background: var(--gradient-banner); color: #fff; }
.pub-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 24px; }
.pub-cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.pub-cta p { color: rgba(255,255,255,.85); margin-top: 6px !important; }
.pub-footer { background: #0F2246; color: rgba(255,255,255,.72); font-size: 14px; }
.pub-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 52px 24px 28px; }
.pf-brand p { margin-top: 14px !important; max-width: 340px; }
.pub-footer nav { display: flex; flex-direction: column; gap: 9px; }
.pub-footer h3 { color: #fff; font-size: 14.5px; margin-bottom: 6px; }
.pub-footer nav a:hover { color: #fff; }
.pf-copy { padding-top: 18px !important; padding-bottom: 28px !important; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* ===================== Dien thoai / may tinh bang ===================== */
@media (max-width: 960px) {
    .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
    .hero-card { right: 0; margin-right: 12px; }
    .pain-grid, .feat-grid, .feat-grid.three, .steps { grid-template-columns: minmax(0, 1fr); }
    .two-col { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .pub-footer-in { grid-template-columns: 1fr 1fr; }
    .pf-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .pub-wrap { padding: 0 18px; }
    .pub-header-in { height: 62px; }
    .pub-burger { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; color: var(--color-navy); }
    .pub-nav { position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 18px 18px;
               background: #fff; border-bottom: 1px solid #EEF1F7; box-shadow: 0 16px 30px rgba(20,44,85,.1); display: none; }
    .pub-nav-toggle:checked ~ .pub-nav { display: flex; }
    .pub-nav > a:not(.btn) { padding: 12px; }
    .pub-nav .btn { margin-top: 8px; }
    .pub-section { padding: 56px 0; }
    .hero-in { padding: 32px 18px 56px; gap: 40px; }
    .hero-lead { font-size: 15.5px; }
    .hero-cta .btn { flex: 1; }
    .hero-card { width: auto; margin: -36px 12px 0 12px; right: 0; }
    .f-hero-in { flex-direction: column; gap: 16px; }
    .pub-cta-in { flex-direction: column; align-items: flex-start; }
    .pub-footer-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .feat-row { flex-direction: column; padding: 22px; }
}

/* ---------- Van ban phap ly ---------- */
.legal-hero { padding-bottom: 36px; }
.legal-meta { margin-top: 10px; color: var(--color-text-muted); font-size: 14px; }
.legal-switch { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.legal-switch a { padding: 8px 16px; border-radius: 999px; border: 1px solid #DCE3F1; background: #fff; font-size: 14px; font-weight: 600; color: var(--color-text-muted); }
.legal-switch a.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }
.legal-section { padding-top: 24px; }
.legal-doc { color: #334155; font-size: 15.5px; line-height: 1.75; }
.legal-doc h2 { font-size: 20px; font-weight: 800; color: var(--color-navy); margin: 34px 0 10px; scroll-margin-top: 90px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.legal-doc ul li::marker { color: var(--color-primary); }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--color-primary); font-weight: 600; }
.legal-doc strong { color: var(--color-navy); }
.legal-summary { background: #F4F7FF; border: 1px solid #DCE6FB; border-radius: 20px; padding: 6px 22px 12px; }
.legal-summary h2 { margin-top: 16px; font-size: 17px; }
.legal-summary ul { list-style: none; padding: 0; }
.legal-contact { list-style: none !important; }
.legal-summary li { display: flex; gap: 10px; align-items: flex-start; }
.legal-summary .ic { color: var(--color-primary); flex-shrink: 0; margin-top: 5px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E6EAF3; vertical-align: top; }
.legal-table th { background: #F6F8FD; color: var(--color-navy); font-size: 13px; }
.legal-table td:first-child { font-weight: 700; color: var(--color-navy); white-space: nowrap; }
.legal-contact { list-style: none; padding: 16px 20px !important; background: #F6F8FD; border-radius: 16px; }
.legal-note { font-size: 13px; color: var(--color-text-muted); }
@media (max-width: 640px) {
    .legal-doc { font-size: 15px; }
    .legal-table td:first-child { white-space: normal; }
}

/* ---------- Quang cao (nho gon, khong chen ngang noi dung) ---------- */
.ad-box { margin: 36px auto; max-width: 728px; padding: 10px 12px 12px; border: 1px dashed #DCE3F1; border-radius: 16px; background: #FBFCFF; }
.ad-label { display: block; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: #64748B; margin-bottom: 6px; }
.ad-unit { display: block; width: 100%; min-height: 90px; }
/* Google khong tra ve quang cao -> an ca khung */
.ad-box:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-box:has(ins[data-ad-status="unfilled"]) { display: none; }
@media (max-width: 640px) { .ad-box { margin: 26px 0; } .ad-unit { min-height: 100px; } }

/* ---------- Ung ho ---------- */
.donate-heart { width: 58px; height: 58px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; margin: 6px 0 14px;
                background: linear-gradient(135deg, #F9A8D4, #EC4899); color: #fff; box-shadow: 0 10px 24px rgba(236,72,153,.26); }
.donate-heart .ic { width: 28px; height: 28px; }
.donate-section { padding-top: 24px; }
.donate-promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.donate-promise > div { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #F4F7FF; font-size: 14px; line-height: 1.55; color: #334155; }
.donate-promise .ic { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.donate-promise strong { color: var(--color-navy); }
.donate-card { display: flex; gap: 26px; align-items: center; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid #E6EAF3; box-shadow: var(--shadow-card); }
.donate-card.empty { justify-content: center; text-align: center; color: var(--color-text-muted); }
.donate-qr { flex-shrink: 0; text-align: center; }
.donate-qr img { width: 240px; height: auto; border-radius: 16px; border: 1px solid #E6EAF3; background: #fff; }
.donate-qr small { display: block; margin-top: 8px; font-size: 12px; color: var(--color-text-muted); }
.donate-info { flex: 1; min-width: 0; }
.donate-info h2 { font-size: 17px; font-weight: 800; color: var(--color-navy); margin: 0 0 10px; }
.donate-info dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; margin: 0 0 18px; font-size: 14.5px; }
.donate-info dt { color: var(--color-text-muted); }
.donate-info dd { margin: 0; color: var(--color-navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-all; }
.mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .5px; }
.copy-mini { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #DCE3F1; background: #fff; color: var(--color-primary);
             border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.copy-mini:hover { background: #EEF4FF; }
.donate-other { margin-top: 26px; }
.donate-other h2 { font-size: 17px; font-weight: 800; color: var(--color-navy); margin: 0 0 10px; }
.donate-other ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.donate-other li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #334155; }
.donate-other .ic { color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.donate-other a { color: var(--color-primary); font-weight: 600; }
.donate-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 26px; padding: 12px 14px; border-radius: 14px; background: #FFF7ED;
               color: #9A3412; font-size: 13px; line-height: 1.55; }
.donate-warn .ic { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 760px) {
    .donate-promise { grid-template-columns: minmax(0, 1fr); }
    .donate-card { flex-direction: column; align-items: stretch; padding: 18px; }
    .donate-qr img { width: 220px; }
    .donate-info dl { grid-template-columns: 100px minmax(0, 1fr); }
}

/* ---------- Toast (dung chung voi ung dung) ---------- */
.lb-toasts { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.lb-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; min-width: 240px; max-width: 360px; padding: 12px 12px 12px 14px;
            background: #fff; border-radius: 14px; border: 1px solid #E6EAF3; box-shadow: 0 16px 40px rgba(20,44,85,.16); font-size: 13.5px;
            opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
.lb-toast.show { opacity: 1; transform: none; }
.lb-toast span { flex: 1; }
.lb-toast button { border: none; background: none; color: #94A3B8; padding: 0; line-height: 0; }
.lb-toast .ic { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Ung ho: nhieu phuong thuc ---------- */
.donate-intro { margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid #EC4899; background: #FDF2F8; border-radius: 0 14px 14px 0; color: #334155; font-size: 15px; line-height: 1.65; white-space: pre-line; }
.donate-methods { display: grid; gap: 16px; }
.donate-info h2 { display: flex; align-items: center; gap: 8px; }
.donate-info h2 .ic { color: var(--color-primary); }
.donate-card.crypto { display: block; }
.crypto-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #FFF7ED; color: #9A3412; font-size: 13px; line-height: 1.5; }
.crypto-warn .ic { flex-shrink: 0; margin-top: 2px; }
.wallets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.wallet { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #E6EAF3; border-radius: 16px; background: #FBFCFF; min-width: 0; }
.wallet img { width: 110px; height: 110px; border-radius: 10px; background: #fff; border: 1px solid #E6EAF3; flex-shrink: 0; }
.w-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.w-head { display: flex; gap: 6px; flex-wrap: wrap; }
.w-coin { font-weight: 800; color: var(--color-navy); }
.w-net { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #FFEDD5; color: #C2410C; }
.w-addr { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; color: #334155; word-break: break-all; line-height: 1.45; }
@media (max-width: 480px) { .wallets { grid-template-columns: minmax(0, 1fr); } .wallet img { width: 92px; height: 92px; } }

/* ---------- Khung giu cho quang cao (chi super admin thay) ---------- */
.ad-box.ad-preview { display: flex; flex-direction: column; gap: 4px; border: 2px dashed #A78BFA; background: #F5F3FF; color: #4C1D95; font-size: 13.5px; }
.ad-box.ad-preview.off { border-color: #CBD5E1; background: #F8FAFC; color: #64748B; }
.ad-box.ad-preview small { color: inherit; opacity: .8; }

/* Dot 1 chinh giao dien: bot khoang trang giua phan dau trang va noi dung tren dien thoai */
@media (max-width: 768px) {
    .f-hero { padding-bottom: 28px; }
    .f-hero + .pub-section { padding-top: 24px; }
}

/* Menu tren cung: khong xuong dong; man hinh vua bot muc phu; <= 920px dung nut menu */
.pub-nav > a { white-space: nowrap; }
@media (max-width: 1199px) {
    .pub-nav > a.pn-opt { display: none; }
    .pub-nav > a:not(.btn) { padding: 9px 9px; }
}
@media (max-width: 920px) {
    .pub-header { position: sticky; }
    .pub-burger { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; color: var(--color-navy); }
    .pub-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 18px 18px;
               background: #fff; border-bottom: 1px solid #EEF1F7; box-shadow: 0 16px 30px rgba(20,44,85,.1); display: none; }
    .pub-nav-toggle:checked ~ .pub-nav { display: flex; }
    .pub-nav > a:not(.btn) { padding: 12px; }
    .pub-nav > a.pn-opt { display: block; }
    .pub-nav .btn { margin-top: 8px; }
}
/* Chu chi danh cho trinh doc man hinh */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- zalo-fab.css ---- */
/* ===== Bong bong chat Zalo (moi trang) - ASCII only ===== */
.zalo-fab { position: fixed; right: 22px; bottom: 22px; z-index: 140; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.zalo-fab-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; background: linear-gradient(145deg, #2D8CFF, #0068FF); box-shadow: 0 12px 28px rgba(0, 104, 255, .42), 0 2px 6px rgba(0, 0, 0, .12);
    transition: transform .18s ease, box-shadow .18s ease; }
.zalo-fab-btn svg { width: 38px; height: 38px; margin-top: 2px; }
.zalo-fab-btn b { position: absolute; top: 21px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 800; color: #0068FF; letter-spacing: -.3px;
    font-family: Arial, Helvetica, sans-serif; }
.zalo-fab-btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(0, 104, 255, .45);
    animation: zaloPulse 2.4s ease-out infinite; }
.zalo-fab:hover .zalo-fab-btn { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 34px rgba(0, 104, 255, .5); }
.zalo-fab:focus-visible { outline: none; }
.zalo-fab:focus-visible .zalo-fab-btn { box-shadow: 0 0 0 4px rgba(0, 104, 255, .35); }
.zalo-fab-tip { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; background: #fff; color: #0F1E3D; font-size: 13.5px; font-weight: 700;
    line-height: 1.25; white-space: nowrap; box-shadow: 0 10px 26px rgba(15, 30, 61, .18); opacity: 0; transform: translateX(8px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; }
.zalo-fab-tip small { font-size: 12px; font-weight: 600; color: #0068FF; }
.zalo-fab:hover .zalo-fab-tip, .zalo-fab:focus-visible .zalo-fab-tip { opacity: 1; transform: none; }
@keyframes zaloPulse { 0% { transform: scale(.92); opacity: .9; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zalo-fab-btn::before { animation: none; display: none; } }
/* Dien thoai: nam tren thanh menu duoi cung, nho hon */
@media (max-width: 768px) {
    .zalo-fab { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); }
    .zalo-fab-btn { width: 52px; height: 52px; }
    .zalo-fab-btn svg { width: 34px; height: 34px; }
    .zalo-fab-btn b { top: 18px; font-size: 9px; }
    .zalo-fab-tip { display: none; }
}
/* Trang khong co thanh menu duoi (trang cong khai, dang nhap) */
.pub .zalo-fab, body.auth-body .zalo-fab, body.pub-body .zalo-fab { bottom: calc(18px + env(safe-area-inset-bottom)); }
/* Tranh de len goi y cai ung dung / hop thoai */
body:has([data-install-banner]:not([hidden])) .zalo-fab { display: none; }
body.dialog-open .zalo-fab { display: none; }
@media print { .zalo-fab { display: none !important; } }
html[data-theme="dark"] .zalo-fab-tip { background: #1D2940; color: #E6ECF8; }
html[data-theme="dark"] .zalo-fab-tip small { color: #7DB3FF; }
/* Chua khoang trong cuoi trang de bong bong khong che nut cua dong cuoi */
.content-area { padding-bottom: 150px; }
@media (max-width: 768px) { .content-area { padding-bottom: calc(200px + env(safe-area-inset-bottom)); } }
.auth-body .auth-page { padding-bottom: 88px; }
.zalo-fab { transition: transform .25s ease, opacity .25s ease; }
.zalo-fab.is-away { transform: translateX(84px); opacity: 0; pointer-events: none; }

/* ===== Nut noi Widget (tren bong bong Zalo, chi trang ung dung) ===== */
.wg-fab { position: fixed; right: 28px; bottom: 98px; z-index: 141; transition: transform .25s ease, opacity .25s ease; }
.wg-fab > summary { list-style: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: #fff; color: #2563EB; box-shadow: 0 10px 24px rgba(20, 44, 85, .2), 0 0 0 1px rgba(37, 99, 235, .14); position: relative;
    transition: transform .18s ease, box-shadow .18s ease; }
.wg-fab > summary::-webkit-details-marker { display: none; }
.wg-fab > summary .ic { width: 22px; height: 22px; }
.wg-fab > summary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 44, 85, .26), 0 0 0 1px rgba(37, 99, 235, .25); }
.wg-fab > summary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(37, 99, 235, .35); }
.wg-fab[open] > summary { background: #2563EB; color: #fff; }
.wg-fab-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(8px, -50%); padding: 7px 12px; border-radius: 12px; background: #fff;
    color: #0F1E3D; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 26px rgba(15, 30, 61, .18); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; }
.wg-fab:not([open]) > summary:hover .wg-fab-tip { opacity: 1; transform: translate(0, -50%); }
.wg-fab-menu { position: absolute; right: 0; bottom: calc(100% + 10px); width: 280px; padding: 6px; border-radius: 16px; background: #fff;
    box-shadow: 0 18px 44px rgba(15, 30, 61, .22); display: flex; flex-direction: column; gap: 2px; animation: wgFabIn .16s ease; }
@keyframes wgFabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wg-fab-menu a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: #142C55; }
.wg-fab-menu a:hover, .wg-fab-menu a:focus-visible { background: #F3F6FC; outline: none; }
.wg-fab-menu a > .ic { width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: #EAF2FF; color: #2563EB; flex-shrink: 0; }
.wg-fab-menu span { display: flex; flex-direction: column; line-height: 1.3; }
.wg-fab-menu strong { font-size: 13.5px; }
.wg-fab-menu small { font-size: 12px; color: #64748B; }
.wg-fab.is-away { transform: translateX(84px); opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
    .wg-fab { right: 18px; bottom: calc(148px + env(safe-area-inset-bottom)); }
    .wg-fab > summary { width: 44px; height: 44px; }
    .wg-fab-tip { display: none; }
    .wg-fab-menu { width: min(280px, calc(100vw - 36px)); }
}
body:has([data-install-banner]:not([hidden])) .wg-fab, body.dialog-open .wg-fab { display: none; }
@media print { .wg-fab { display: none !important; } }
html[data-theme="dark"] .wg-fab > summary { background: #1D2940; color: #93C5FD; box-shadow: 0 10px 24px rgba(0, 0, 0, .4), 0 0 0 1px rgba(147, 197, 253, .2); }
html[data-theme="dark"] .wg-fab[open] > summary { background: #2563EB; color: #fff; }
html[data-theme="dark"] .wg-fab-menu, html[data-theme="dark"] .wg-fab-tip { background: #1D2940; color: #E6ECF8; }
html[data-theme="dark"] .wg-fab-menu a { color: #E6ECF8; }
html[data-theme="dark"] .wg-fab-menu a:hover { background: #26324D; }
html[data-theme="dark"] .wg-fab-menu a > .ic { background: #1E2B4D; color: #93C5FD; }
html[data-theme="dark"] .wg-fab-menu small { color: #9AA7C2; }

/* ---- Thong bao cookie (Nghi dinh 13/2023) - chi hien tren trang co Google Tag Manager; nam o day vi tep nay
   duoc nap ca o trang cong khai (goi CSS) lan trang dang nhap / dang ky ---- */
.lb-consent { position: fixed; left: 16px; bottom: 16px; z-index: 160; max-width: 520px; padding: 16px 18px; border-radius: 18px;
    background: #fff; color: #1B2540; border: 1px solid #E3E9F5; box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
    font-family: var(--font-main, sans-serif); font-size: 14px; line-height: 1.55; }
.lb-consent[hidden] { display: none; }
.lb-consent p { margin: 0; }
.lb-consent a { color: #2563EB; font-weight: 600; text-decoration: underline; }
.lb-consent-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.lb-consent button { min-height: 42px; padding: 9px 16px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.lb-consent-no { background: #EEF2FA; color: #1B2540; }
.lb-consent-yes { background: linear-gradient(135deg, #2563EB 0%, #7655F7 100%); color: #fff; }
.lb-consent button:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }
body.has-consent .zalo-fab, body.has-consent .wg-fab { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
    .lb-consent { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 14px; font-size: 13.5px; }
    .lb-consent-btns button { flex: 1; }
}
@media print { .lb-consent { display: none !important; } }

/* ---- tools.css ---- */
/* LifeBook - Cong cu mien phi (/cong-cu). ASCII only. */

/* ---------- khung chung ---------- */
.tl-hero { background: linear-gradient(180deg, #F4F7FF 0%, #fff 100%); padding: 28px 0 26px; }
.tl-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.22; }
.tl-hero .hero-lead { margin-top: 12px !important; max-width: 780px; font-size: 16.5px; line-height: 1.65; color: #45506D; }
.tl-hero-in { display: flex; gap: 20px; align-items: flex-start; }
.tl-hero-in .st-ic { flex-shrink: 0; }
.tl-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 13.5px; color: #3C4763; font-weight: 600; }
.tl-badges span { display: inline-flex; align-items: center; gap: 6px; }
.tl-badges .ic { color: #16A34A; }

.tl-app-wrap { padding: 6px 0 20px; }
.tl-app { position: relative; display: flex; flex-direction: column; gap: 18px; }
.tl-box { background: #fff; border: 1px solid #E3E9F5; border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-card); min-width: 0; }
.tl-box h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 14px; }
.tl-box h2 small { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.tl-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.tl-row3 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.tl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: #3C4763; }
.tl-field small { font-weight: 600; color: var(--color-text-muted); }
.tl-field input, .tl-field select, .ct-row input, .ct-row select {
    width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid #D8E0EE; border-radius: 12px; background: #fff;
    font: inherit; font-size: 15.5px; font-weight: 600; color: #1F2A44; }
.tl-field input:focus, .tl-field select:focus, .ct-row input:focus, .ct-row select:focus { outline: none; border-color: #6B8DF0; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.tl-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: #3C4763; margin-bottom: 6px; }
.tl-check input { width: 18px; height: 18px; }
.tl-check input:disabled + * , .tl-check:has(input:disabled) { opacity: .55; }
.tl-muted { margin: 6px 0 0 !important; font-size: 13.5px; line-height: 1.55; color: var(--color-text-muted); }
.tl-note { margin-top: 12px !important; }
.tl-err { margin: 6px 0 0 !important; padding: 10px 12px; border-radius: 12px; background: #FEF2F2; color: #B91C1C; font-size: 14px; font-weight: 600; }
.tl-result { margin-top: 6px; }
.tl-big { margin: 4px 0 0 !important; font-size: 21px; font-weight: 800; color: var(--color-navy); line-height: 1.35; }
.tl-big.ok { color: #15803D; }
.tl-big.warn { color: #B45309; }
.tl-big.bad { color: #B91C1C; }
.tl-sub { margin: 6px 0 0 !important; font-size: 14.5px; color: #45506D; }
.tl-dl { margin: 12px 0 10px; display: grid; gap: 0; border-top: 1px solid #EEF2F8; }
.tl-dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #EEF2F8; font-size: 14.5px; }
.tl-dl dt { color: var(--color-text-muted); font-weight: 600; }
.tl-dl dd { margin: 0; color: #1F2A44; font-weight: 600; }
.tl-dl small { font-weight: 600; color: var(--color-text-muted); }
.tl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tl-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-danger { background: #FEE2E2; color: #B91C1C !important; }
.tl-danger-text { color: #B91C1C !important; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #F1F4FA;
    color: #3C4763; cursor: pointer; font-size: 20px; line-height: 1; }
.icon-btn:hover { background: #E4EAF6; color: var(--color-primary); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.tl-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; margin: 0; padding: 11px 18px; border-radius: 14px;
    background: #142C55; color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(15, 23, 42, .3); max-width: calc(100% - 32px); }

.tl-tabs, .tl-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: #EEF2FA; align-self: flex-start; }
.tl-seg { margin-bottom: 12px; }
.tl-tabs label, .tl-seg label { position: relative; cursor: pointer; }
.tl-tabs input, .tl-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tl-tabs span, .tl-seg span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 700; color: #45506D; }
.tl-tabs input:checked + span, .tl-seg input:checked + span { background: #fff; color: var(--color-navy); box-shadow: 0 2px 8px rgba(20, 44, 85, .1); }
.tl-tabs input:focus-visible + span, .tl-seg input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .45); }

.tl-save { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 20px; border-radius: 18px;
    background: linear-gradient(135deg, #EEF3FF 0%, #F5F0FF 100%); border: 1px solid #DEE6FA; }
.tl-save > div { flex: 1; min-width: 0; }
.tl-save strong { display: block; color: var(--color-navy); font-size: 15.5px; }
.tl-save small { display: block; margin-top: 3px; color: #4A5573; font-size: 13.5px; line-height: 1.5; }
.tl-save .btn { flex-shrink: 0; }
.tl-guide { padding-top: 48px; }

.tl-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.tl-cards.big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 0; }
.tl-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-card);
    border: 1px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: #DCE6FB; }
.tl-card strong { font-size: 16.5px; color: var(--color-navy); }
.tl-card small { font-size: 14px; line-height: 1.55; color: #4A5573; }
.tl-cards.big .tl-card { padding: 24px; }
.tl-cards.big .tl-card strong { font-size: 18.5px; }
.tl-sec2 { margin-top: 56px; }
.tl-hub { padding-top: 34px; }
.tl-hub-text { margin-top: 56px; }

/* ---------- 1. doi lich am duong ---------- */
.tl-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tl-cal-head h2 { margin: 0 auto 0 4px; order: -1; }
.tl-week, .tl-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tl-week span { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--color-text-muted); padding: 4px 0; }
.tl-week span:last-child { color: #DC2626; }
.tl-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 2px;
    border: 1px solid #EEF2F8; border-radius: 12px; background: #FBFCFE; cursor: pointer; font: inherit; color: #1F2A44; }
.tl-cell b { font-size: 17px; font-weight: 700; }
.tl-cell small { font-size: 11.5px; color: #5C6884; }
.tl-cell:hover { border-color: #9DB7F2; }
.tl-cell.empty { border: 0; background: none; cursor: default; }
.tl-cell.l1 small { color: #DC2626; font-weight: 700; }
.tl-cell.l15 small { color: #7655F7; font-weight: 700; }
.tl-cell.today { background: #EEF3FF; border-color: #9DB7F2; }
.tl-cell.sel { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.tl-cell.sel small { color: #C7D2FE; }
.tl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0 !important; font-size: 13px; color: var(--color-text-muted); }
.tl-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: -8px; }
.tl-legend .lg.l1 { background: #DC2626; }
.tl-legend .lg.l15 { background: #7655F7; }
.tl-legend .lg.today { background: #EEF3FF; border: 1px solid #9DB7F2; }

/* ---------- 2. gia pha + 5. ngay quan trong (bo cuc 2 cot) ---------- */
.gp-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.gp-view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.gp-view-head h2 { margin: 0; }
.gp-scroll { margin-top: 14px; overflow: auto; max-height: 72vh; padding: 6px 4px 14px; border-radius: 14px; background: #FAFBFE; border: 1px dashed #E1E7F3; }
.gp-empty { padding: 30px 18px; text-align: center; color: #4A5573; font-size: 14.5px; line-height: 1.6; }
.gp-tree { display: inline-block; min-width: 100%; text-align: center; }
.gp-tree ul { position: relative; display: flex; justify-content: center; margin: 0; padding: 20px 0 0; }
.gp-tree li { position: relative; list-style: none; padding: 20px 6px 0; text-align: center; }
.gp-tree li::before, .gp-tree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 20px; border-top: 2px solid #C5D1EA; }
.gp-tree li::after { right: auto; left: 50%; border-left: 2px solid #C5D1EA; }
.gp-tree li:only-child::before, .gp-tree li:only-child::after { display: none; }
.gp-tree li:only-child { padding-top: 0; }
.gp-tree li:first-child::before, .gp-tree li:last-child::after { border: 0 none; }
.gp-tree li:last-child::before { border-right: 2px solid #C5D1EA; border-radius: 0 8px 0 0; }
.gp-tree li:first-child::after { border-radius: 8px 0 0 0; }
.gp-tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 20px; border-left: 2px solid #C5D1EA; }
.gp-tree > ul { padding-top: 0; }
.gp-tree > ul > li { padding-top: 0; }
.gp-tree > ul > li::before, .gp-tree > ul > li::after { display: none; }
.gp-node { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 112px; max-width: 170px; padding: 9px 12px;
    border: 1.5px solid #D8E0EE; border-radius: 14px; background: #fff; font: inherit; color: #1F2A44; cursor: pointer;
    box-shadow: 0 2px 6px rgba(20, 44, 85, .05); }
.gp-node strong { font-size: 14px; line-height: 1.3; }
.gp-node small { font-size: 12px; color: #5A6480; }
.gp-node small.sp { color: #7655F7; }
.gp-node.m { border-top: 4px solid #3B82F6; }
.gp-node.f { border-top: 4px solid #EC4899; }
.gp-node.dead { background: #F6F7FA; }
.gp-node:hover { border-color: #9DB7F2; }
.gp-node.on { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }

.nq-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nq-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px;
    border: 1px solid #E8EDF6; border-radius: 14px; background: #FBFCFE; border-left: 4px solid #9DB0DA; }
.nq-item.t-bd { border-left-color: #EC4899; }
.nq-item.t-gio { border-left-color: #7655F7; }
.nq-item.t-cuoi { border-left-color: #F59E0B; }
.nq-item.soon { background: #FFF8EB; }
.nq-when b { display: block; font-size: 15px; color: var(--color-navy); }
.nq-when small, .nq-what small { display: block; font-size: 12.5px; color: #5A6480; margin-top: 2px; }
.nq-what strong { font-size: 15px; color: #1F2A44; }

/* ---------- 3. giay to ---------- */
.gt-ms { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.gt-ms li { padding: 9px 12px; border-radius: 12px; background: #F4F7FD; font-size: 14.5px; }
.gt-ms li.past { opacity: .55; }

/* ---------- 4. chi tieu ---------- */
.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.ct-inputs { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ct-head, .ct-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr) 40px; gap: 8px; align-items: center; }
#ctIncome .ct-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px; }
.ct-head { font-size: 12.5px; font-weight: 700; color: var(--color-text-muted); margin-bottom: 6px; }
.ct-row { margin-bottom: 8px; }
.ct-row input, .ct-row select { min-height: 42px; font-size: 14.5px; }
.ct-amt { text-align: right; font-variant-numeric: tabular-nums; }
.ct-sum { position: sticky; top: 16px; }
.ct-totals { margin: 0; display: grid; gap: 0; }
.ct-totals > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EEF2F8; font-size: 14.5px; }
.ct-totals dt { color: var(--color-text-muted); font-weight: 600; }
.ct-totals dd { margin: 0; font-weight: 700; color: #1F2A44; font-variant-numeric: tabular-nums; }
.ct-bal dd b { font-size: 19px; }
.ct-bal b.ok { color: #15803D; }
.ct-bal b.bad { color: #B91C1C; }
#ctBars { margin-top: 14px; display: grid; gap: 14px; }
.ct-bar-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: #3C4763; }
.ct-bar-h b { font-variant-numeric: tabular-nums; }
.ct-track { position: relative; height: 10px; margin: 6px 0 4px; border-radius: 999px; background: #EEF2F8; overflow: visible; }
.ct-fill { display: block; height: 100%; border-radius: 999px; background: #3B82F6; }
.ct-fill.want { background: #F59E0B; }
.ct-fill.save { background: #16A34A; }
.ct-ref { position: absolute; top: -4px; width: 2px; height: 18px; background: #142C55; border-radius: 2px; }
.ct-bar small { font-size: 12px; color: #5C6884; }

/* ---------- man hinh nho ---------- */
@media (max-width: 1080px) {
    .gp-layout, .ct-layout { grid-template-columns: minmax(0, 1fr); }
    .ct-sum { position: static; }
    .tl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl-cards.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .tl-grid2 { grid-template-columns: minmax(0, 1fr); }
    .tl-hero-in { flex-direction: column; gap: 12px; }
    .tl-box { padding: 16px; border-radius: 18px; }
    .tl-cell { min-height: 50px; }
    .tl-cell b { font-size: 15px; }
    .tl-days, .tl-week { gap: 4px; }
    .tl-save { flex-direction: column; align-items: flex-start; }
    .tl-save .btn { width: 100%; }
    .tl-cards, .tl-cards.big { grid-template-columns: minmax(0, 1fr); }
    .tl-dl > div { grid-template-columns: 110px minmax(0, 1fr); }
    .nq-item { grid-template-columns: minmax(0, 1fr) auto; }
    .nq-when { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
    .nq-when small { margin: 0; }
    .ct-head { display: none; }
    #ctItems .ct-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
    #ctItems .ct-name { grid-column: 1 / 3; grid-row: 1; }
    #ctItems .ct-del { grid-column: 3; grid-row: 1; }
    #ctItems .ct-amt { grid-column: 1; grid-row: 2; }
    #ctItems .ct-grp { grid-column: 2 / 4; grid-row: 2; }
    #ctIncome .ct-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
    .ct-row { padding-bottom: 8px; border-bottom: 1px dashed #E3E9F5; }
    .tl-tabs span { padding: 9px 12px; font-size: 13.5px; }
}

/* ---------- in ---------- */
@media print {
    .pub-header, .pub-footer, .pub-cta, .tl-hero, .tl-save, .tl-guide, .pub-section, .zalo-fab, .wg-fab, .ad-box,
    .gp-form, #nqForm, .tl-tools, .tl-actions, .tl-tabs, .tl-note, .ct-del, .nq-del, .tl-toast, .skip-link { display: none !important; }
    .tl-box { box-shadow: none; border: 0; padding: 0; }
    .gp-layout, .ct-layout { display: block; }
    .gp-scroll { max-height: none; overflow: visible; border: 0; background: none; }
    .gp-node { box-shadow: none; }
    body { background: #fff; }
}

