/* Never Late web — cùng ngôn ngữ "Noir" với app: nền đen tuyền, không thẻ (chiều sâu bằng hairline),
   accent lime #C8FF3D, Playfair Display cho tiêu đề (app dùng Playfair vì Instrument Serif thiếu tiếng Việt),
   Space Grotesk cho chữ. Màu lấy từ lib/theme.ts của app. Chỉ có một giao diện (tối), như app. */
:root {
  --bg: #000000;
  --surface: #0e0e0e;
  --surface2: #121212;
  --line: #1c1c1c;
  --border: #232323;
  --border3: #2a2a2a;
  --fg: #f2f2f2;
  --fg2: #9a9a9a;
  --fg3: #5c5c5c;
  --soft: #d8d8d8;
  --accent: #c8ff3d;
  --danger: #ff5c5c;
  --warning: #ffb547;
  --on-accent: #000000;
  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; color: var(--fg2); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 99px; z-index: 99; font-size: 13px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Eyebrow: chữ nhỏ viết hoa, giãn chữ, xám tối — đúng kiểu nhãn của app */
.label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Nút: pill. Chính = lime đặc chữ đen; phụ = viền hairline, nền surface (nút nhỏ xám) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); transition: border-color .15s, background .15s, opacity .15s; }
.btn:hover { border-color: var(--fg3); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { opacity: .88; }
.btn.sm { padding: 8px 16px; font-size: 13px; min-height: 44px; }
.btn[aria-disabled='true'] { cursor: default; opacity: .6; }

/* Thanh trên */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.wm { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 5px; line-height: 1; padding: 11px 0; min-height: 44px; }
.wm em { color: var(--accent); }
.wm::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); align-self: center; margin-right: 3px; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.links { display: flex; align-items: center; gap: 22px; }
.links a { font-size: 13px; font-weight: 500; text-decoration: none; color: var(--fg2); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 48px; }
.links a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 12px; font-weight: 600; letter-spacing: .08em; display: inline-flex; border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--fg3); }
.lang span { background: var(--fg); color: var(--bg); }
.lang a:hover { color: var(--fg); }
@media (max-width: 880px) { .links { display: none; } .nav .btn { display: none; } }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 8vw, 88px); letter-spacing: -0.03em; margin: 16px 0 20px; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.5; color: var(--soft); margin-bottom: 14px; max-width: 28em; }
.hero p.sub { max-width: 34em; margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--sans); font-weight: 500; font-size: 28px; letter-spacing: -0.04em; color: var(--fg); line-height: 1.1; }
.stats span { font-size: 12.5px; color: var(--fg3); }
@media (max-width: 860px) { .hero { padding: 40px 0 56px; } .hero-grid { grid-template-columns: 1fr; gap: 44px; } .stats { gap: 24px; } }

/* ── Điện thoại bấm được ở hero (demo.js). Kích thước = app thật (390pt) thu về khung ~270px. ── */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { width: 300px; max-width: calc(100vw - 40px); height: 620px; background: #000; border: 1px solid var(--border3); border-radius: 46px; padding: 9px; position: relative; box-shadow: 0 40px 90px -40px rgba(200,255,61,.18); opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.phone.ready { opacity: 1; transform: none; }
.phone-hint { font-size: 13px; color: var(--fg3); text-align: center; max-width: 300px; margin: 0; line-height: 1.5; }
.phone-hint b { color: var(--fg2); font-weight: 600; }
.screen { height: 100%; border-radius: 37px; overflow: hidden; background: #000; position: relative; border: 1px solid var(--line); font-size: 10px; line-height: 1.4; color: var(--fg); -webkit-user-select: none; user-select: none; }
.island { position: absolute; top: 9px; left: 50%; width: 82px; height: 22px; margin-left: -41px; border-radius: 99px; background: #0b0b0b; border: 1px solid #151515; z-index: 6; }
.statusbar { position: absolute; top: 11px; left: 26px; right: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; z-index: 5; }
.sb-r { display: inline-flex; align-items: flex-end; gap: 2px; }
.sb-r i { width: 3px; background: var(--fg); border-radius: 1px; }
.sb-r i:nth-child(1) { height: 4px; } .sb-r i:nth-child(2) { height: 6px; } .sb-r i:nth-child(3) { height: 8px; }
.sb-r b { width: 18px; height: 9px; border: 1px solid var(--fg2); border-radius: 3px; margin-left: 5px; position: relative; }
.sb-r b::after { content: ''; position: absolute; inset: 1px 4px 1px 1px; background: var(--fg); border-radius: 1px; }
.scrs { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 44px 18px 84px; scrollbar-width: none; }
.scr::-webkit-scrollbar { display: none; }
.scr.in { animation: scr-in .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes scr-in { from { opacity: 0; transform: translateY(8px); } }
.screen button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.screen button:focus-visible, .sl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.screen .ico { width: 13px; height: 13px; stroke-width: 1.7; }

/* Nav nổi dạng pill, nhãn chữ như FloatingNav của app */
.ftab { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 42px; border-radius: 99px; border: 1px solid #262626; background: rgba(20,20,20,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-around; padding: 0 5px; z-index: 4; }
.ftab button { height: 31px; padding: 0 8px; border-radius: 99px; font-size: 9px; font-weight: 600; letter-spacing: .02em; color: var(--fg2); white-space: nowrap; transition: background .2s, color .2s; }
.ftab button.on { background: var(--fg); color: var(--on-accent); }
.ftab button:not(.on):hover { color: var(--fg); }

.ntoast { position: absolute; left: 16px; right: 16px; bottom: 70px; background: var(--fg); color: #000; border-radius: 12px; padding: 10px 13px; font-size: 10.5px; font-weight: 600; line-height: 1.35; z-index: 8; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.ntoast.on { opacity: 1; transform: none; }

/* Chữ chung trong máy */
.m-eb { display: block; font-size: 7.6px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); }
.m-eb.acc { color: var(--accent); }
.m-title { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.1; margin: 5px 0 12px; letter-spacing: -.01em; }
.m-title i { font-style: italic; }
.acc { color: var(--accent); }
.m-meta { font-size: 8.8px; color: var(--fg3); margin: 8px 0 0; line-height: 1.45; }
.m-empty { font-size: 9.5px; color: var(--fg3); margin: 10px 0; font-style: italic; font-family: var(--serif); }
.m-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 5px; vertical-align: middle; }
.m-top { display: flex; justify-content: space-between; align-items: center; }
.m-notif { display: inline-flex; align-items: center; min-height: 22px; }
.m-notif .m-eb { color: var(--fg); }
.m-greet { font-family: var(--serif); font-size: 21px; line-height: 1.15; margin-top: 12px; white-space: nowrap; }
.m-greet i { font-style: italic; }
.m-clock { font-weight: 500; font-size: 56px; line-height: 1.08; letter-spacing: -.065em; font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; }
.m-clock small, .m-vf-clock small, [data-worked] small { font-size: .3em; color: var(--fg3); letter-spacing: 0; margin-left: .4em; font-weight: 500; }
.m-nudge { font-size: 10px; font-weight: 500; margin: 6px 0 0; line-height: 1.45; }
.m-nudge.it { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 12px; color: var(--fg2); margin-top: -2px; }
.m-rows { margin-top: 14px; }
.m-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 9.5px; color: var(--fg2); width: 100%; text-align: left; }
.m-rows .m-row:first-child, .m-row.first { border-top: 1px solid var(--line); }
.m-row b { color: var(--fg); font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.m-row > span { flex: none; }
.m-row.tall b { white-space: normal; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.m-row.tall small { color: var(--fg2); font-weight: 400; font-size: 8.5px; }
.m-row.link { margin-top: 10px; border-top: 1px solid var(--line); }
.m-row.link + .m-eb, .m-stats + .m-eb { margin-top: 16px; }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.m-stats.three { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 10px; }
.m-stats.nb { border-top: 0; padding-top: 0; margin-top: 8px; }
.m-stats span { display: block; font-size: 7.4px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); }
.m-stats b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
.m-stats.three b { font-size: 18px; }
.m-stats b small { font-size: .62em; color: var(--fg3); }

/* Slider chấm công (CheckSlider): ray, rãnh No break, vệt sáng, đường băng, knob */
.sl { position: relative; height: 48px; margin-top: 18px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface2); touch-action: pan-y; cursor: grab; overflow: hidden; }
.sl[data-step='break'], .sl[data-step='out'], .sl[data-step='breaking'] { background: var(--surface); }
.sl.drag { cursor: grabbing; }
.sl-knob { position: absolute; left: 4px; top: 4px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font-size: 16px; font-weight: 600; z-index: 3; animation: knob-idle 1.8s ease-in-out infinite; }
.sl-knob.light { background: var(--fg); }
.sl.drag .sl-knob, .sl.done .sl-knob { animation: none; }
@keyframes knob-idle { 50% { translate: 7px 0; } }
.sl-trail { position: absolute; left: 4px; top: 4px; height: 38px; width: 38px; border-radius: 19px; background: var(--accent); opacity: 0; transition: opacity .15s; }
.sl:has(.sl-knob.light) .sl-trail { background: var(--fg); }
.sl.drag .sl-trail { opacity: .16; }
.sl-label { position: absolute; left: 62px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; opacity: calc(1 - var(--p, 0) * 2); pointer-events: none; white-space: nowrap; }
.sl.two .sl-label { left: calc(50% + 24px); right: 6px; justify-content: center; }
.sl-zone { position: absolute; left: 20px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 10.5px; font-weight: 600; opacity: 0; transition: opacity .12s; pointer-events: none; z-index: 2; }
.sl[data-zone='2'] .sl-zone:not(.mid), .sl[data-zone='1'] .sl-zone.mid { opacity: 1; }
.sl-run { position: absolute; right: 18px; top: 0; bottom: 0; left: 134px; display: flex; align-items: center; justify-content: space-between; opacity: calc(1 - var(--p, 0) * 1.1); pointer-events: none; }
.sl-run i { width: 6px; height: 2px; border-radius: 1px; background: var(--accent); opacity: .15; animation: runway 1.5s linear infinite; }
.sl[data-step='out'] .sl-run i { background: var(--fg); }
.sl-run i:nth-child(2) { animation-delay: .15s; } .sl-run i:nth-child(3) { animation-delay: .3s; } .sl-run i:nth-child(4) { animation-delay: .45s; } .sl-run i:nth-child(5) { animation-delay: .6s; } .sl-run i:nth-child(6) { animation-delay: .75s; }
@keyframes runway { 0%, 60%, 100% { opacity: .15; box-shadow: none; } 20% { opacity: 1; box-shadow: 0 0 6px currentColor; } }
.sl-groove { position: absolute; left: 4px; top: 4px; height: 38px; width: calc(50% + 17px); border-radius: 19px; background: #070707; border: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 3px 6px rgba(0,0,0,.9); display: flex; align-items: center; justify-content: flex-end; padding-right: 14px; }
.sl-groove span { font-size: 10px; font-weight: 600; color: var(--fg3); opacity: .7; transition: opacity .12s; }
.sl.drag .sl-groove span { opacity: 0; }
.sl-cap { text-align: center; font-size: 8.5px; color: var(--fg3); margin: 4px 0 0; line-height: 1.35; width: 50%; margin-left: 25%; }
.sl-cap b { color: var(--fg); font-weight: 600; }

/* Đồng hồ nghỉ (BreakCountdown) */
.m-brk { margin-top: 12px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.m-brk-h { display: flex; justify-content: space-between; }
.m-brk-r { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.m-brk-t { font-size: 34px; font-weight: 500; letter-spacing: -.05em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.m-brk-t.over { color: var(--danger); }
.m-brk-a { display: flex; gap: 5px; }
.m-brk-a button { height: 26px; min-width: 38px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--border3); font-size: 9px; }
.m-brk-bar { height: 3px; border-radius: 2px; background: #161616; margin-top: 8px; overflow: hidden; }
.m-brk-bar i { display: block; height: 3px; width: 0; background: var(--fg2); border-radius: 2px; transition: width 1s linear; }

/* Nhật ký chấm công hôm nay */
.m-log { margin-top: 22px; }
.m-stamp { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.m-stamp:first-of-type { border-top: 1px solid var(--line); margin-top: 6px; }
.m-stamp .ico { color: var(--fg2); justify-self: center; }
.m-stamp b, .m-note b, .m-req b, .m-dayrow > div > b, .m-member b, .m-detail b { display: block; font-size: 9.8px; font-weight: 600; color: var(--fg); }
.m-stamp span, .m-note span, .m-req > div > span:not(.m-act), .m-dayrow > div > span, .m-member .m-mi > span, .m-detail span { display: block; font-size: 8.6px; color: var(--fg2); }
.m-stamp em { font-style: normal; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.new { animation: row-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); background: rgba(200,255,61,.08); } }

/* Màn phủ (chấm công, nghỉ, thông báo, gửi đơn) */
.ov { position: absolute; inset: 0; background: #000; padding: 42px 18px 70px; overflow-y: auto; scrollbar-width: none; z-index: 3; animation: ov-in .32s cubic-bezier(.2,.8,.2,1) both; }
.ov::-webkit-scrollbar { display: none; }
@keyframes ov-in { from { opacity: 0; transform: translateY(14px); } }
.ov-head { display: flex; justify-content: space-between; align-items: center; min-height: 26px; margin-bottom: 8px; }
.m-back { font-size: 10px; font-weight: 600; color: var(--fg2) !important; min-height: 26px; }
.m-link { font-size: 9.5px; font-weight: 600; color: var(--accent) !important; }
.m-vf { position: relative; height: 222px; border-radius: 18px; background: radial-gradient(120% 90% at 50% 30%, #1d1d1d, #050505 70%); overflow: hidden; display: grid; place-items: center; margin-bottom: 8px; }
.m-face { width: 128px; height: 160px; fill: #141414; stroke: #2e2e2e; stroke-width: 1.5; position: absolute; bottom: -10px; }
.m-oval { position: absolute; width: 92px; height: 118px; border-radius: 50%; border: 1.5px dashed var(--fg3); top: 74px; }
.m-vf.scanning .m-oval { animation: oval 1.1s ease-in-out infinite alternate; }
@keyframes oval { to { border-color: var(--accent); transform: scale(1.04); } }
.m-vf-clock { position: absolute; top: 10px; left: 12px; font-size: 20px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.m-vf-st { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 9.5px; color: var(--fg); }
.m-vf.scanning .m-vf-st { color: var(--accent); }
.m-shoot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; }
.m-shoot span { font-size: 9px; color: var(--fg2); }
.m-shutter { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--fg) !important; box-shadow: inset 0 0 0 3px #000, inset 0 0 0 23px var(--fg); }
.m-shutter:disabled { opacity: .35; cursor: default; }
.m-photo { position: relative; height: 252px; border-radius: 18px; overflow: hidden; background: linear-gradient(170deg, #2a2a2a, #0d0d0d 70%); display: grid; place-items: center; }
.m-photo .m-face { fill: #3a3a3a; stroke: #4a4a4a; }
.m-photo.flash::after { content: ''; position: absolute; inset: 0; background: #fff; animation: flash .45s ease-out both; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.m-stampbox { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; flex-direction: column; gap: 1px; font-size: 8.4px; color: rgba(255,255,255,.88); text-shadow: 0 1px 2px #000; }
.m-stampbox b { font-size: 22px; font-weight: 500; letter-spacing: -.03em; color: #fff; line-height: 1.05; }
.ov-btns { display: flex; gap: 8px; margin-top: 14px; }
.ov-btns.col { flex-direction: column; }
.m-btn { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border-radius: 99px; font-size: 10.5px !important; font-weight: 600 !important; flex: 1; width: 100%; margin-top: 14px; }
.ov-btns .m-btn { margin-top: 0; }
.m-btn.acc { background: var(--accent) !important; color: #000 !important; }
.m-btn.light { background: var(--fg) !important; color: #000 !important; }
.m-btn.ghost { border: 1px solid var(--border3) !important; color: var(--fg) !important; }
.m-btn.sm { min-height: 24px; font-size: 9px !important; padding: 0 10px; margin: 0; flex: none; width: auto; }
.m-btn.busy { opacity: .55; }
.m-quote { font-family: var(--serif); font-style: italic; font-size: 13px; line-height: 1.4; color: var(--soft); margin: 4px 0 14px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 14px; }
.m-chips button { height: 24px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--border) !important; background: var(--surface) !important; font-size: 9px; font-weight: 600; color: var(--fg2) !important; transition: background .15s, color .15s; }
.m-chips button.on { background: var(--fg) !important; color: #000 !important; border-color: var(--fg) !important; }

/* Segmented gạch chân, điều hướng kỳ */
.m-seg { display: flex; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.m-seg button { padding: 0 0 7px; margin-bottom: -1px; border-bottom: 2px solid transparent !important; font-size: 10px; font-weight: 600; color: var(--fg3) !important; }
.m-seg button.on { color: var(--fg) !important; border-bottom-color: var(--fg) !important; }
.m-nav { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 6px; font-size: 10.5px; }
.m-nav button { width: 26px; height: 26px; font-size: 15px; }
.m-nav button:disabled { opacity: .25; cursor: default; }

/* Lịch tháng */
.m-wk, .m-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.m-wk span { font-size: 7.6px; letter-spacing: .05em; color: var(--fg3); padding: 4px 0; }
.m-grid { row-gap: 4px; }
.m-day { position: relative; justify-self: center; width: 28px; height: 28px; border-radius: 8px; font-size: 9.5px !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; color: var(--fg3) !important; background: #161616 !important; border: 1px solid transparent !important; }
.m-day.full { background: rgba(200,255,61,.18) !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.m-day.half { background: rgba(255,181,71,.18) !important; border-color: var(--warning) !important; color: var(--warning) !important; }
.m-day.off { background: #2e2e2e !important; border-color: var(--fg3) !important; color: var(--fg2) !important; }
.m-day.open { background: transparent !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.m-day.today { background: var(--fg) !important; border-color: var(--fg) !important; color: #000 !important; }
.m-day.pick { outline: 1px solid var(--fg2); outline-offset: 2px; }
.m-day i { position: absolute; top: 2px; right: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--warning); }
.m-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 12px 0 8px; font-size: 8.4px; color: var(--fg2); }
.m-legend span { display: inline-flex; align-items: center; gap: 4px; }
.m-legend i { width: 8px; height: 8px; border-radius: 3px; border: 1px solid var(--border3); }
.m-legend i.full { background: rgba(200,255,61,.18); border-color: var(--accent); }
.m-legend i.half { background: rgba(255,181,71,.18); border-color: var(--warning); }
.m-legend i.off { background: #2e2e2e; border-color: var(--fg3); }
.m-legend i.ed { width: 5px; height: 5px; border-radius: 50%; border: 0; background: var(--warning); }

/* Dòng ngày (lịch tuần, báo cáo) */
.m-dayrow { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.m-dayrow em { font-style: normal; color: var(--warning); }
.m-dayrow small { font-size: 9px; font-weight: 600; text-align: right; }
.m-chipday { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: #161616; color: var(--fg3); }
.m-dayrow .m-chipday b { font-size: 10px; color: inherit; line-height: 1.1; }
.m-dayrow .m-chipday small { font-size: 6.6px; color: var(--fg3); font-weight: 600; text-align: center; }
.m-chipday.full { background: rgba(200,255,61,.18); border-color: var(--accent); color: var(--accent); }
.m-chipday.half { background: rgba(255,181,71,.18); border-color: var(--warning); color: var(--warning); }
.m-chipday.off { background: #2e2e2e; border-color: var(--fg3); color: var(--fg2); }
.m-chipday.today { background: var(--fg); border-color: var(--fg); color: #000; }
.m-chipday.today small { color: #000 !important; }
.m-big { font-size: 74px; font-weight: 500; letter-spacing: -.07em; line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; margin-top: 6px; }
.m-big i { font-family: var(--serif); font-style: italic; font-size: .38em; letter-spacing: 0; margin-left: 4px; }

/* Đơn, thông báo, nhân viên */
.m-list { margin-top: 6px; }
.m-req, .m-note { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.m-req small, .m-note small { flex: none; font-size: 9px; font-weight: 600; }
.m-note small { color: var(--fg3); font-weight: 500; }
.m-tag { display: inline-block; font-style: normal; font-size: 7px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.m-act { display: flex !important; gap: 5px; margin-top: 6px; }
.m-member { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 7px 0 !important; border-bottom: 1px solid var(--line) !important; }
.m-member small { font-size: 8.6px; font-weight: 600; }
.m-mi { min-width: 0; }
.m-mi b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-av { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border3); display: grid; place-items: center; font-family: var(--serif); font-size: 12px; color: var(--fg); }
.m-av.big { width: 40px; height: 40px; font-size: 18px; flex: none; }
.m-detail { display: flex; gap: 10px; align-items: center; padding: 8px 0 10px 34px; border-bottom: 1px solid var(--line); animation: row-in .35s ease both; }
.m-thumb { width: 34px; height: 42px; border-radius: 6px; background: linear-gradient(170deg, #2a2a2a, #0d0d0d); display: grid; place-items: center; color: var(--fg3); flex: none; }
.m-me { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.m-sw { position: relative; width: 34px; height: 20px; border-radius: 99px; border: 1px solid var(--border3) !important; flex: none; transition: background .2s; }
.m-sw i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg3); transition: transform .2s, background .2s; }
.m-sw.on { background: var(--accent) !important; border-color: var(--accent) !important; }
.m-sw.on i { transform: translateX(14px); background: #000; }

@media (max-width: 360px) { .phone { height: 600px; } }
@media (prefers-reduced-motion: reduce) {
  .phone { transition: none; transform: none; }
  .sl-knob, .sl-run i, .m-vf.scanning .m-oval { animation: none; }
  .scr.in, .ov, .new, .m-detail, .m-photo.flash::after { animation: none; }
  .ntoast { transition: none; }
}

/* Phần */
section { padding: 80px 0; }
.sec-head { margin-bottom: 44px; max-width: 40em; }
.sec-head .label { display: block; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.sec-head p { font-size: 17px; margin: 0; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }

/* Lưới tính năng: không thẻ, chỉ hairline giữa các ô */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell .ico { width: 22px; height: 22px; color: var(--accent); margin-bottom: 18px; }
.cell h3 { font-size: 21px; margin-bottom: 8px; }
.cell p { font-size: 14.5px; line-height: 1.6; margin: 0; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

/* Chi tiết: chữ + minh hoạ */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 30px 0; }
.feat.flip .feat-text { order: 2; }
.feat-text h3 { font-size: clamp(27px, 4vw, 36px); margin: 10px 0 12px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--soft); }
.ticks .ico { width: 17px; height: 17px; margin-top: 4px; color: var(--accent); }
.mock { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); padding: 6px 20px; }
.band .mock { background: #000; }
.mock .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mock .row:first-child { border-top: 0; }
.mock .row span:first-child { color: var(--fg2); }
.mock .row b { font-weight: 600; color: var(--fg); }
.ok { color: var(--accent); } .late { color: var(--danger); } .warn { color: var(--warning); }
.pillnote { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; border: 1px solid currentColor; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: 12px; padding: 14px 0; font-variant-numeric: tabular-nums; }
.cal b { font-size: 10px; color: var(--fg3); font-weight: 600; letter-spacing: .1em; padding-bottom: 4px; }
.cal span { padding: 8px 0; border-radius: 9px; border: 1px solid transparent; color: var(--fg3); }
.cal .f { background: rgba(200,255,61,.18); border-color: var(--accent); color: var(--accent); }
.cal .h { background: rgba(255,181,71,.18); border-color: var(--warning); color: var(--warning); }
.cal .a { background: #2e2e2e; border-color: var(--fg3); color: var(--fg2); }
.cal .t { border-color: var(--fg); color: var(--fg); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 0 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg3); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 820px) { .feat { grid-template-columns: 1fr; gap: 26px; } .feat.flip .feat-text { order: 0; } }

/* Lợi ích: số lớn + chữ */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.benefit { padding: 28px 24px 30px 0; }
.benefit + .benefit { padding-left: 24px; border-left: 1px solid var(--line); }
.benefit .n { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.benefit h3 { font-size: 22px; margin-bottom: 8px; }
.benefit p { font-size: 14.5px; margin: 0; }
@media (max-width: 820px) { .benefits { grid-template-columns: 1fr; } .benefit, .benefit + .benefit { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Bảng giá */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.plan { padding: 26px 22px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.hl { background: var(--surface2); box-shadow: inset 0 2px 0 var(--accent); }
.plan h3 { font-size: 24px; margin: 8px 0 4px; }
.price { font-weight: 500; font-size: 32px; letter-spacing: -0.04em; color: var(--fg); margin: 14px 0 0; line-height: 1.1; }
.price small { font-size: 13px; letter-spacing: 0; color: var(--fg3); font-weight: 400; display: block; margin-top: 4px; }
.plan .ticks { margin: 18px 0 20px; }
.plan .ticks li { font-size: 14px; }
.plan .btn { margin-top: auto; }
.tag-draft { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warning); border: 1px solid var(--warning); border-radius: 99px; padding: 3px 11px; }
.fine { font-size: 13px; color: var(--fg3); margin-top: 20px; max-width: 54em; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* Form dùng thử (chỉ hiển thị) */
.trial { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
form.f { display: grid; gap: 22px; }
.field label { display: block; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; background: transparent; color: var(--fg); font: inherit; font-size: 17px; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--border3); border-radius: 0; outline: none; }
.field select { background: var(--bg); min-height: 46px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg3); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.note-box { border: 1px dashed var(--warning); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--soft); line-height: 1.5; }
#trial-msg { font-size: 14px; color: var(--accent); min-height: 1.4em; margin: 0; }
@media (max-width: 820px) { .trial { grid-template-columns: 1fr; gap: 32px; } .two { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-family: var(--serif); font-size: 19px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-family: var(--sans); font-size: 20px; }
details[open] summary::after { content: '–'; }
details p { padding-bottom: 16px; margin: 0; font-size: 15px; }

/* CTA cuối */
.final { text-align: center; }
.final h2 { font-size: clamp(36px, 6.4vw, 64px); margin: 14px 0; }
.final p { max-width: 30em; margin: 0 auto 26px; }
.final .cta { justify-content: center; }

/* Chân trang */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { font-family: var(--serif); font-style: italic; font-size: 16px; max-width: 22em; margin-top: 12px; }
.foot a:not(.wm) { display: flex; align-items: center; min-height: 44px; text-decoration: none; padding: 0; color: var(--fg2); font-size: 14.5px; }
.foot a:not(.wm):hover { color: var(--accent); }
.foot .label { display: block; margin-bottom: 8px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: span 2; } }

/* Trang văn bản */
.doc-wrap { padding-top: 56px; padding-bottom: 80px; }
.doc { max-width: 780px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); margin: 10px 0 14px; }
.doc .lead { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--soft); }
.doc h2 { font-size: 24px; margin: 38px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; margin: 20px 0 6px; color: var(--fg); letter-spacing: 0; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; color: var(--fg2); }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent); }
.doc strong { color: var(--fg); font-weight: 600; }
.draft { font-size: 13px; border: 1px dashed var(--warning); border-radius: 12px; padding: 12px 16px; color: var(--soft); margin: 18px 0 0; line-height: 1.55; }
.contact-box { display: flex; gap: 14px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: var(--surface); margin: 18px 0; }
.contact-box .ico { width: 24px; height: 24px; color: var(--accent); }
.contact-box a { font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.e404 { text-align: center; padding: 96px 0; }
.e404 .big { font-family: var(--serif); font-size: clamp(88px, 22vw, 180px); line-height: 1; letter-spacing: -0.04em; }
.e404 .big em { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .wm::before { animation: none; } html { scroll-behavior: auto; } }

/* In ra PDF: nền trắng chữ đen */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface2: #fff; --line: #ccc; --border: #bbb; --border3: #999; --fg: #000; --fg2: #222; --fg3: #555; --soft: #111; --accent: #000; --danger: #b00; --warning: #850; --on-accent: #fff; }
  html, body { background: #fff; }
  .nav, .phone-wrap, footer .foot > div:not(:first-child), .skip, .cta, form.f { display: none !important; }
  section { padding: 24px 0; break-inside: avoid; }
  .band, .plan.hl, .mock, .contact-box { background: #fff; }
  .wm::before { background: #000; animation: none; }
}

/* Văn bản pháp lý của Victoria (bảng, tóm tắt, ô chờ điền) */
.doc .summary, .doc .note { border: 1px solid var(--line-soft, var(--line, #444)); border-left-width: 3px; border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: 15px; }
.doc .summary h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.doc .summary ul { margin: 0; }
.doc .ph { border: 1px dashed currentColor; border-radius: 3px; padding: 0 4px; font-size: .9em; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--line-soft, var(--line, #444)); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc .tw { overflow-x: auto; }
.doc hr.sep { display: none; }

/* Bảng trong trang pháp lý: trên điện thoại xếp mỗi dòng thành một thẻ, không bẻ chữ từng ký tự (07/10/2026). */
.tw table th, .tw table td { word-break: normal; overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 640px) {
  .tw thead { display: none; }
  .tw table, .tw tbody, .tw tr, .tw td { display: block; width: 100%; }
  .tw tr { border: 1px solid rgba(127,127,127,.28); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
  .tw td { border: 0 !important; padding: 3px 0 !important; }
  .tw td:empty { display: none; }
  .tw td:first-child { font-weight: 700; font-size: 1.04em; padding-bottom: 6px !important; }
  .tw td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .74em; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-top: 6px; }
}
