/* ZALO SALES BOT — Design System: màu, chữ, khoảng cách, nút, thẻ, form, bảng, modal… */
:root {
  --bg: #F7F9FC; --surface: #fff; --brand: #0068FF; --brand-d: #0754C7; --brand-50: #EAF2FF; --accent: #7C3AED; --accent-50: #F3EEFF;
  --ink: #111827; --navy: #172554; --muted: #64748B; --line: #E5E7EB; --ok: #16A34A; --ok-50: #E8F7EE; --warn: #F59E0B; --warn-50: #FEF5E1; --err: #EF4444; --err-50: #FDECEC;
  --r: 12px; --r-sm: 10px; --r-lg: 16px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.05); --shadow-lg: 0 12px 40px rgba(16,24,40,.14);
  --font: "Be Vietnam Pro", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; --w: 1200px; --header: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; } a { color: inherit; text-decoration: none; } img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 18px; height: 18px; stroke-width: 2; flex: none; } .ic.sm { width: 15px; height: 15px; } .ic.lg { width: 24px; height: 24px; }
:focus-visible { outline: 3px solid rgba(0,104,255,.35); outline-offset: 2px; border-radius: 8px; }
.container { width: min(var(--w), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.stack { display: grid; gap: 16px; } .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

/* nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:hover { border-color: #cbd5e1; background: #F7F9FC; } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn.grad { background: linear-gradient(135deg, var(--brand), var(--accent)); border-color: transparent; color: #fff; } .btn.grad:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: #eef2f7; }
.btn.danger { color: var(--err); border-color: #f5c2c2; } .btn.danger:hover { background: var(--err-50); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; } .btn.lg { min-height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; } .btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; } .iconbtn:hover { background: #eef2f7; }

/* thẻ, huy hiệu */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); } .card.pad { padding: 20px; } .card.flat { box-shadow: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef2f7; color: #475569; white-space: nowrap; }
.badge.brand { background: var(--brand-50); color: var(--brand-d); } .badge.accent { background: var(--accent-50); color: var(--accent); } .badge.ok { background: var(--ok-50); color: #12803a; } .badge.warn { background: var(--warn-50); color: #a96a00; } .badge.err { background: var(--err-50); color: #b42318; }
.logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; flex: none; background: linear-gradient(135deg, hsl(var(--h) 78% 52%), hsl(calc(var(--h) + 38) 74% 44%)); } .logo.sm { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; } .logo.lg { width: 72px; height: 72px; font-size: 28px; border-radius: 18px; }
.stars { display: inline-flex; gap: 1px; color: var(--warn); } .stars svg { width: 14px; height: 14px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-d); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; } .site-header.scrolled { box-shadow: 0 4px 18px rgba(16,24,40,.07); }
.site-header .bar { height: var(--header); display: flex; align-items: center; gap: 20px; }
a.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; } .brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: #fff; }
a.brand small { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .02em; color: var(--muted); margin-top: -2px; }
.nav { display: flex; gap: 2px; margin-left: 8px; } .nav > a, .nav > .dd > button { white-space: nowrap; padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: #334155; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; } .nav > a:hover, .nav > .dd > button:hover, .nav a.on { background: #eef2f7; color: var(--brand-d); }
.dd { position: relative; } .dd-menu { position: absolute; top: 100%; left: 0; width: 560px; margin-top: 8px; padding: 12px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; z-index: 60; } .dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: grid; }
.dd-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; } .dd-menu a:hover { background: var(--brand-50); } .dd-menu .ci { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.hsearch { position: relative; margin-left: auto; } .hsearch input { width: 170px; height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line); background: #F7F9FC; transition: width .2s, background .2s; } .hsearch input:focus { width: 300px; background: #fff; outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,104,255,.15); } .hsearch > .ic { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.sugg { position: absolute; top: 46px; left: 0; right: 0; min-width: 320px; padding: 6px; z-index: 70; } .sugg a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 9px; } .sugg a:hover, .sugg a.act { background: var(--brand-50); } .sugg .nores { padding: 12px; color: var(--muted); font-size: 14px; }
.hactions { display: flex; align-items: center; gap: 8px; } .burger { display: none; }
.mnav { display: none; } .mnav.open { display: block; position: fixed; inset: var(--header) 0 0 0; background: #fff; z-index: 49; overflow: auto; padding: 16px; } .mnav a { display: flex; padding: 14px 8px; border-bottom: 1px solid var(--line); font-weight: 600; justify-content: space-between; align-items: center; }
.demo-banner { background: #fff8e6; border-bottom: 1px solid #f6e3b0; color: #7a5200; font-size: 12.5px; text-align: center; padding: 6px 12px; }
.userchip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; } .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: radial-gradient(900px 420px at 85% -10%, rgba(124,58,237,.12), transparent 60%), radial-gradient(800px 420px at 0% 0%, rgba(0,104,255,.12), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin: 18px 0 16px; letter-spacing: -.035em; } .hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17.5px; color: #475569; max-width: 560px; } .hero .cta { display: flex; gap: 12px; margin: 28px 0; flex-wrap: wrap; }
.trust { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 28px; justify-content: start; } .trust b { display: block; font-size: 22px; letter-spacing: -.02em; } .trust span { font-size: 12.5px; color: var(--muted); }
.mock { position: relative; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); } .mock .tb { display: flex; gap: 6px; margin-bottom: 12px; } .mock .tb i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.mk-grid { display: grid; grid-template-columns: 120px 1fr; gap: 12px; } .mk-side { background: #F7F9FC; border-radius: 12px; padding: 10px; display: grid; gap: 6px; align-content: start; } .mk-side i { display: block; height: 10px; border-radius: 5px; background: #e2e8f0; } .mk-side i:first-child { background: var(--brand); width: 70%; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; } .mk-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .mk-kpi b { font-size: 18px; display: block; } .mk-kpi span { font-size: 10.5px; color: var(--muted); }
.mk-chart { border: 1px solid var(--line); border-radius: 12px; padding: 10px; } .mk-list { display: grid; gap: 6px; margin-top: 10px; } .mk-row { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 12px; } .mk-row .logo { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; animation: bob 6s ease-in-out infinite; } .float.a { left: -26px; bottom: 56px; } .float.b { right: -18px; top: 38px; animation-delay: -3s; }
.float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
@keyframes bob { 50% { transform: translateY(-7px); } } @media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* section */
.section { padding: 64px 0; } .section.alt { background: #fff; border-block: 1px solid var(--line); } .sec-head { max-width: 640px; margin-bottom: 32px; } .sec-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 10px 0 8px; } .sec-head p { color: var(--muted); font-size: 16px; } .sec-head.row { max-width: none; align-items: end; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; } .cat { display: flex; gap: 12px; align-items: center; padding: 16px; transition: transform .15s, border-color .15s, box-shadow .15s; } .cat:hover { transform: translateY(-2px); border-color: #bcd0fb; box-shadow: var(--shadow-lg); } .cat .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; } .cat b { display: block; font-size: 14.5px; line-height: 1.3; } .cat span { font-size: 12.5px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; } .chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; } .chip:hover { border-color: #bcd0fb; } .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .app-grid.three { grid-template-columns: repeat(3, 1fr); } .app-grid.list { grid-template-columns: 1fr; }
.app { padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, transform .15s; } .app:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } .app h3 { font-size: 16.5px; } .app .desc { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 41px; }
.app .price { display: flex; align-items: baseline; gap: 4px; } .app .price b { font-size: 20px; letter-spacing: -.02em; } .app .price span { font-size: 12.5px; color: var(--muted); } .app .acts { display: flex; gap: 8px; margin-top: auto; } .app .acts .btn { flex: 1; padding: 0 10px; }
.app.rowv { flex-direction: row; align-items: center; } .app.rowv .desc { min-height: 0; } .app.rowv .mid { flex: 1; min-width: 0; display: grid; gap: 4px; } .app.rowv .acts { margin: 0; flex: none; }
.rate { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; counter-reset: s; } .step { text-align: center; padding: 0 8px; position: relative; } .step .n { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 8px 20px rgba(0,104,255,.28); } .step h3 { font-size: 16px; margin-bottom: 6px; } .step p { font-size: 13.5px; color: var(--muted); } .steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); opacity: .25; }
.biz { border-radius: 24px; padding: 44px; color: #fff; background: linear-gradient(135deg, #1e40af 0%, #5b3bd0 100%); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; } .biz h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 12px; } .biz p { opacity: .85; } .biz ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .biz li { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px; font-size: 14px; } .biz .btn { background: #fff; color: var(--brand-d); border-color: #fff; margin-top: 22px; }
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .testi .card { padding: 20px; display: grid; gap: 12px; }
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; } .faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; } .faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; } .faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: "+"; font-size: 20px; color: var(--muted); } .faq details[open] summary::after { content: "–"; } .faq details p { padding: 0 0 16px; color: #475569; }
.footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 24px; margin-top: 0; } .footer a { color: #cbd5e1; } .footer a:hover { color: #fff; } .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } .footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; } .footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; } .foot-bot { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #94a3b8; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding: 18px 0 6px; flex-wrap: wrap; } .crumbs a:hover { color: var(--brand); }
.page-head { padding: 20px 0 8px; } .page-head h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }

/* danh sách + bộ lọc */
.cat-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; padding-bottom: 56px; } .filters { padding: 18px; position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 18px; } .filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; } .fopt { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 14px; cursor: pointer; } .fopt input { accent-color: var(--brand); width: 16px; height: 16px; } .fopt .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; } .toolbar .grow { min-width: 200px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; } .pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; } .pager a:hover { border-color: var(--brand); } .pager .on { background: var(--brand); color: #fff; border-color: var(--brand); } .pager .dis { opacity: .4; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: grid; gap: 10px; justify-items: center; } .empty .ic { width: 40px; height: 40px; color: #94a3b8; } .empty h3 { color: var(--ink); font-size: 17px; }
.filter-fab { display: none; }

/* chi tiết */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; padding: 12px 0 40px; align-items: start; }
.shot { aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; padding: 14px; display: grid; grid-template-columns: 70px 1fr; gap: 10px; position: relative; } .shot .sb { background: hsl(var(--h) 60% 96%); border-radius: 10px; display: grid; gap: 6px; padding: 8px; align-content: start; } .shot .sb i { height: 8px; border-radius: 4px; background: hsl(var(--h) 60% 85%); } .shot .sb i:first-child { background: hsl(var(--h) 72% 50%); }
.shot .mn { display: grid; gap: 8px; grid-template-rows: auto 1fr; } .shot .kp { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; } .shot .kp div { height: 38px; border-radius: 8px; background: hsl(var(--h) 60% 96%); } .shot .bd { border-radius: 10px; background: linear-gradient(180deg, hsl(var(--h) 60% 97%), #fff); border: 1px solid var(--line); padding: 10px; display: flex; align-items: end; gap: 6px; } .shot .bd i { flex: 1; border-radius: 4px 4px 0 0; background: hsl(var(--h) 72% 58%); opacity: .85; }
.shot .tag { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; } .thumbs button { width: 92px; aspect-ratio: 16/10; border-radius: 10px; border: 2px solid var(--line); background: hsl(var(--h) 60% 96%); cursor: pointer; font-size: 11px; color: #475569; font-weight: 600; } .thumbs button.on { border-color: var(--brand); }
.buy { padding: 22px; display: grid; gap: 16px; position: sticky; top: calc(var(--header) + 16px); } .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .plan { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 12px; cursor: pointer; display: grid; gap: 2px; background: #fff; transition: border-color .15s, background .15s; } .plan:hover { border-color: #bcd0fb; } .plan.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(0,104,255,.12); } .plan b { font-size: 15px; } .plan .p { font-size: 18px; font-weight: 800; letter-spacing: -.02em; } .plan .tag { position: absolute; top: -9px; right: 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-top: 12px; } .tabs button { padding: 12px 16px; border: 0; background: none; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; } .tabs button.on { color: var(--brand-d); border-color: var(--brand); } .tabpane { padding: 24px 0; max-width: 820px; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .feat div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; } .feat .ic { color: var(--ok); margin-top: 3px; }
.assure { display: grid; gap: 8px; font-size: 13.5px; color: #475569; } .assure div { display: flex; gap: 8px; align-items: center; } .assure .ic { color: var(--ok); }

/* form */
.field { display: grid; gap: 6px; } .field label { font-size: 13.5px; font-weight: 600; } .input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; } .textarea { min-height: 110px; resize: vertical; } .input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,104,255,.15); } .input[aria-invalid="true"] { border-color: var(--err); } .errmsg { color: var(--err); font-size: 12.5px; } .hint { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form-grid .full { grid-column: 1 / -1; }
.auth { min-height: calc(100vh - var(--header)); display: grid; place-items: center; padding: 32px 16px; } .auth .card { width: min(440px, 100%); padding: 32px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; } .check input { margin-top: 3px; accent-color: var(--brand); }
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; padding-bottom: 56px; align-items: start; } .paym { display: grid; gap: 10px; } .pm { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; } .pm:has(input:checked) { border-color: var(--brand); background: var(--brand-50); } .pm.off { opacity: .55; cursor: not-allowed; } .pm input { accent-color: var(--brand); }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; } .sumrow.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 18px; font-weight: 800; }
.result { max-width: 640px; margin: 40px auto 64px; padding: 32px; text-align: center; display: grid; gap: 14px; justify-items: center; } .result .big { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; } .result .big .ic { width: 34px; height: 34px; } .transfer { width: 100%; text-align: left; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 14px; background: #F7F9FC; display: grid; gap: 6px; font-size: 14px; } .transfer div { display: flex; justify-content: space-between; gap: 12px; } .transfer b { word-break: break-all; text-align: right; }
.timeline { display: flex; gap: 0; width: 100%; margin: 6px 0; } .timeline div { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; } .timeline div::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: #e2e8f0; margin: 0 auto 6px; position: relative; z-index: 1; } .timeline div::after { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: #e2e8f0; } .timeline div:first-child::after { display: none; } .timeline .done::before { background: var(--ok); } .timeline .done::after { background: var(--ok); } .timeline .done { color: var(--ink); } .timeline .cur::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(0,104,255,.2); } .timeline .bad::before { background: var(--err); }

/* dashboard (khách hàng + quản trị) */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; } .side { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; } .side a.brand { padding: 6px 8px 16px; } .side a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: #475569; } .side a:hover { background: #f1f5f9; } .side a.on { background: var(--brand-50); color: var(--brand-d); } .side .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; padding: 14px 12px 4px; font-weight: 700; } .side .bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.dmain { min-width: 0; } .dtop { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 20; } .dtop h1 { font-size: 18px; } .dcontent { padding: 24px; display: grid; gap: 20px; max-width: 1280px; } .dtop .burger { display: none; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; } .kpis.six { grid-template-columns: repeat(3, 1fr); } .kpi { padding: 18px; display: flex; gap: 14px; align-items: center; } .kpi .ki { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; } .kpi b { display: block; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; } .kpi span { font-size: 13px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; } .three-c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .eq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 18px; } .panel h3 { font-size: 15.5px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tablewrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 14px; } th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd; } td { padding: 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; } tr:last-child td { border-bottom: 0; } tbody tr:hover { background: #fafbfd; }
.subcard { padding: 18px; display: grid; gap: 12px; } .prog { height: 6px; border-radius: 3px; background: #eef2f7; overflow: hidden; } .prog i { display: block; height: 100%; background: var(--brand); border-radius: 3px; } .prog.warn i { background: var(--warn); } .prog.err i { background: var(--err); }
.notif { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid #f1f5f9; } .notif.un { background: #f6f9ff; } .notif:last-child { border: 0; }
.chart { width: 100%; height: auto; display: block; } .legend { display: grid; gap: 8px; font-size: 13.5px; } .legend div { display: flex; align-items: center; gap: 8px; } .legend i { width: 10px; height: 10px; border-radius: 3px; } .legend b { margin-left: auto; }
.sk { background: linear-gradient(90deg, #eef2f7 25%, #f6f8fb 37%, #eef2f7 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 10px; } @keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 210px; }
.perm { width: 100%; } .perm td, .perm th { text-align: center; } .perm td:first-child, .perm th:first-child { text-align: left; }

/* modal + toast */
.ov { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; } .modal { width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 24px; box-shadow: var(--shadow-lg); } .modal.wide { width: min(760px, 100%); } .modal h3 { font-size: 18px; margin-bottom: 14px; } .modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; } @keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 10px; } .toast { background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; max-width: 360px; font-size: 14px; animation: up .2s; } .toast.ok .ic { color: #4ade80; } .toast.err .ic { color: #f87171; } @keyframes up { from { opacity: 0; transform: translateY(8px); } }
.tip { position: relative; } .tip:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 7px; white-space: nowrap; z-index: 30; }

/* responsive */
@media (max-width: 1320px) { .nav { gap: 0; } .nav > a, .nav > .dd > button { padding: 8px 8px; font-size: 14px; } a.brand small { display: none; } }
@media (max-width: 1100px) { .app-grid, .cat-grid { grid-template-columns: repeat(3, 1fr); } .nav { display: none; } .burger { display: grid; } .hsearch input, .hsearch input:focus { width: 180px; } .kpis { grid-template-columns: repeat(2, 1fr); } .two, .three-c { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .hero-grid, .detail, .checkout, .biz, .cat-layout { grid-template-columns: 1fr; } .hero { padding-top: 36px; } .mock { max-width: 560px; margin-inline: auto; } .float.a { left: -6px; } .float.b { right: -6px; }
  .app-grid, .app-grid.three, .cat-grid, .testi { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: 1fr; gap: 0; padding-left: 8px; } .steps::before { left: 36px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; } .step { display: grid; grid-template-columns: 56px 1fr; text-align: left; gap: 16px; padding: 0 0 24px; } .step .n { margin: 0; }
  .filters { position: fixed; inset: 0 30% 0 0; z-index: 90; border-radius: 0; overflow: auto; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-lg); } .filters.open { transform: none; } .filter-fab { display: inline-flex; } .buy { position: static; }
  .dash { grid-template-columns: 1fr; } .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 90; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-lg); } .side.open { transform: none; } .dtop .burger { display: grid; } .dcontent { padding: 16px; } .dtop { padding: 0 12px; } .eq { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-grid, .app-grid.three, .cat-grid, .testi, .form-grid, .feat, .biz ul { grid-template-columns: 1fr; } .cat-grid { grid-template-columns: 1fr 1fr; } .trust { grid-template-columns: 1fr 1fr; } .foot-grid { grid-template-columns: 1fr; } .hsearch { display: none; } .hactions .hide-m { display: none; } .biz { padding: 26px 20px; } .section { padding: 44px 0; }
  .mk-grid { grid-template-columns: 1fr; } .mk-side { display: none; } .float { display: none; } .plans { grid-template-columns: 1fr; } .kpis, .kpis.six { grid-template-columns: 1fr 1fr; } .kpi { padding: 14px; flex-direction: column; align-items: flex-start; gap: 8px; } .kpi b { font-size: 20px; }
  .app.rowv { flex-direction: column; align-items: stretch; } .modal { padding: 18px; } .btn.lg { width: 100%; } .hero .cta .btn { flex: 1; }
  table.resp thead { display: none; } table.resp tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; background: #fff; } table.resp td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border: 0; text-align: right; } table.resp td::before { content: attr(data-l); color: var(--muted); font-size: 12.5px; text-align: left; }
}
/* chống tràn ngang: phần tử lưới được phép co */
.detail > *, .checkout > *, .cat-layout > *, .hero-grid > *, .two > *, .eq > *, .three-c > *, .biz > * { min-width: 0; }
.thumbs { flex-wrap: wrap; } .shot { width: 100%; } .tabs { max-width: 100%; }
@media (max-width: 900px) { .detail, .checkout, .cat-layout, .hero-grid, .biz { grid-template-columns: minmax(0, 1fr); } .shot .bd i { min-width: 0; } }
.dtop h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .dtop h1 { font-size: 15px; } .dtop .select { max-width: 120px; font-size: 13px; } }

/* ===== bổ sung ZALO SALES BOT (nền tảng chung) ===== */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 66% 44%)); }
.badge.demo { background: #fff7e0; color: #9a6400; border: 1px dashed #f0c96a; font-size: 11px; padding: 1px 8px; }
.badge.purple { background: var(--accent-50); color: var(--accent); }
.tabs button { background: none; }
.drawer-ov { place-items: stretch end; padding: 0; }
.drawer { width: min(520px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slidein .2s; } .drawer.wide { width: min(760px, 100%); }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); } .drawer header h3 { font-size: 17px; } .drawer .dbody { flex: 1; overflow: auto; padding: 20px; display: grid; gap: 14px; align-content: start; } .drawer footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; } .crumbs a:hover { color: var(--brand); } .crumbs span { color: var(--ink); font-weight: 600; }
.empty { text-align: center; padding: 40px 16px; display: grid; gap: 10px; justify-items: center; color: var(--muted); } .empty .ic { width: 44px; height: 44px; color: #94a3b8; } .empty h3 { color: var(--ink); font-size: 17px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--brand-50); color: #0b3d91; border: 1px solid #cfe0ff; } .alert .ic { margin-top: 2px; } .alert.warn { background: var(--warn-50); color: #7a5200; border-color: #f6e3b0; } .alert.err { background: var(--err-50); color: #9b1c1c; border-color: #f5c2c2; } .alert.ok { background: var(--ok-50); color: #12603a; border-color: #bfe6cd; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0 0; } .pager a, .pager span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; } .pager .on { background: var(--brand); border-color: var(--brand); color: #fff; } .pager .dis { opacity: .4; }
.switch { position: relative; width: 40px; height: 22px; display: inline-block; flex: none; } .switch input { opacity: 0; width: 0; height: 0; } .switch i { position: absolute; inset: 0; background: #cbd5e1; border-radius: 22px; cursor: pointer; transition: .15s; } .switch i::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); } .switch input:checked + i { background: var(--brand); } .switch input:checked + i::before { transform: translateX(18px); }
.seg { display: inline-flex; padding: 3px; background: #eef2f7; border-radius: 11px; gap: 2px; flex-wrap: wrap; } .seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: #475569; cursor: pointer; } .seg button.on { background: #fff; color: var(--brand-d); box-shadow: var(--shadow); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .toolbar .input, .toolbar .select { width: auto; min-height: 40px; } .searchbox { position: relative; } .searchbox .ic { position: absolute; left: 11px; top: 12px; color: #94a3b8; width: 16px; height: 16px; } .searchbox .input { padding-left: 34px; min-width: 220px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: calc(100vw - 24px); z-index: 60; padding: 8px; display: none; } .menu-pop.open { display: block; } .menu-pop a, .menu-pop button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; border: 0; background: none; cursor: pointer; font-size: 14px; } .menu-pop a:hover, .menu-pop button:hover { background: var(--brand-50); } .menu-pop .un { background: #f6f9ff; }
.relpop { position: relative; }
.dbadge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--err); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.dtop .crumbs { margin-right: auto; } .dtop h1 { font-size: 17px; }
.titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .titlebar h2 { font-size: 22px; } .titlebar p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.side .navhead { padding: 6px 8px 14px; } .side-close { display: none; }
.sbk { display: none; }
@media (max-width: 960px) { .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 90; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); } .side.open { transform: none; } .side.open ~ .sbk, .sbk.show { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 80; } .dash { grid-template-columns: 1fr; } .dtop .burger { display: grid; } .dcontent { padding: 16px; } }
@media (max-width: 640px) { .drawer { width: 100%; } .searchbox .input { min-width: 0; width: 100%; } .toolbar > * { flex: 1 1 140px; } }
.dcontent { grid-template-columns: minmax(0, 1fr); }
