/* Trang giới thiệu Tiệm Xóm: cùng màu, chữ với app (xanh ngọc #0f766e, Be Vietnam Pro), nhẹ, không thư viện. */
:root {
  --brand: #0f766e; --brand-ink: #0b4f4a; --brand-soft: #e6f4f1; --brand-faint: #9ccfc5;
  --sun: #fbbf24; --accent: #c2410c; --accent-soft: #fff7ed;
  --ink: #0f172a; --label: #334155; --muted: #64748b; --line: #e5e9ee;
  --bg: #fbfaf6; --surface: #fff; --soft: #f1f5f4;
  --ok: #15803d; --ok-soft: #e7f6ec; --danger: #b91c1c; --danger-soft: #fdecec;
  --radius: 16px; --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Be Vietnam Pro", system-ui, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--brand-faint); outline-offset: 2px; border-radius: 6px; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.1s, background 0.15s; }
.btn:active { transform: scale(0.98); }
.btn-main { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(15, 118, 110, 0.28); }
.btn-main:hover { background: var(--brand-ink); }
.btn-line { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-line:hover { border-color: var(--brand-faint); }
.btn svg { width: 20px; height: 20px; }

/* Thanh trên */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 246, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.logo svg { width: 36px; height: 36px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--label); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.top nav a:hover { color: var(--brand); }
.top .btn { min-height: 42px; padding: 0 16px; font-size: 0.95rem; }
@media (max-width: 820px) { .top nav { display: none; } .top .login { margin-left: auto; } }

/* Đầu trang */
.hero { position: relative; overflow: hidden; padding: 48px 0 40px; background: linear-gradient(180deg, #e8f5f1 0%, var(--bg) 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--brand); font-weight: 700; font-size: 0.85rem; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin: 16px 0 26px; max-width: 34em; color: var(--label); font-size: 1.12rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .assure { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--muted); font-size: 0.92rem; }
.hero .assure span::before { content: "✓ "; color: var(--ok); font-weight: 800; }
/* Cảnh làng của màn đăng nhập (assets/scene.css) đặt trong khung bo góc; site.js tính --s để thấy từ mặt trời tới đường làng. */
.scene { position: relative; height: clamp(320px, 40vw, 480px); overflow: hidden; border-radius: 28px; box-shadow: 0 24px 60px rgba(15, 118, 110, 0.18); isolation: isolate; }
.scene .ls-scene { height: 100%; min-height: 0; }
.scene svg { max-width: none; }
.scene .ls-world { left: 50%; transform: translateX(-50%) scale(var(--s, 1)); transform-origin: 50% 100%; }
@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .scene { order: -1; width: 100%; max-width: 520px; height: 300px; margin: 0 auto; }
}

/* Khối chung */
section { padding: 72px 0; }
.head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.kicker { display: block; margin-bottom: 8px; color: var(--brand); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 640px) { section { padding: 52px 0; } }

/* Lợi ích: chữ một bên, điện thoại mẫu một bên */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; margin-bottom: 64px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .phone { order: -1; }
.feature h3 { font-size: 1.6rem; font-weight: 800; }
.feature p { margin-top: 12px; color: var(--label); font-size: 1.05rem; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; color: var(--label); }
.feature li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature.flip .phone { order: 0; } }

/* Điện thoại mẫu: khung iPhone (viền thép, Dynamic Island, nút bên hông, vạch Home), màn vẽ bằng CSS; thay bằng ảnh chụp app thật sau. */
.phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 19.5; margin: 0 auto; padding: 11px; border-radius: 52px; background: linear-gradient(145deg, #3f4652, #1c1f26 40%, #2b3038 70%, #121418); box-shadow: inset 0 0 0 1.5px #5b6270, inset 0 0 0 4px #0b0c0f, 0 30px 60px rgba(15, 23, 42, 0.28), 0 6px 14px rgba(15, 23, 42, 0.12); }
/* Nút bên hông: tác vụ + âm lượng bên trái, nguồn bên phải */
.phone::before { content: ""; position: absolute; left: -3px; top: 96px; width: 3px; height: 26px; border-radius: 2px 0 0 2px; background: #2b3038; box-shadow: 0 50px 0 0 #2b3038, 0 50px 0 9px transparent, 0 96px 0 0 #2b3038; }
.phone::after { content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 70px; border-radius: 0 2px 2px 0; background: #2b3038; }
.phone .screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 42px; background: #f4f6f8; font-size: 13px; line-height: 1.4; }
.phone .island { position: absolute; top: 11px; left: 50%; z-index: 2; width: 92px; height: 27px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.phone .status { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 6px 26px 0 30px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13.5px; }
.phone .status .sig { display: inline-flex; align-items: center; gap: 5px; }
.phone .status svg { width: 16px; height: 11px; fill: var(--ink); }
.phone .status .bat { position: relative; display: inline-block; width: 23px; height: 11px; padding: 1.5px; border: 1.3px solid rgba(15, 23, 42, 0.45); border-radius: 3.5px; }
.phone .status .bat::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 1.6px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(15, 23, 42, 0.45); }
.phone .status .bat i { display: block; width: 80%; height: 100%; border-radius: 1.5px; background: var(--ink); }
.phone .home-bar { position: absolute; bottom: 8px; left: 50%; width: 112px; height: 4.5px; border-radius: 3px; background: rgba(15, 23, 42, 0.75); transform: translateX(-50%); }
.phone .bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; background: var(--surface); font-weight: 800; font-size: 15px; }
.phone .bar small { color: var(--muted); font-weight: 600; font-size: 11px; }
.phone .body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 10px 12px 30px; }
.phone .body .pay { margin-top: auto; }
.phone .tabbar ~ .home-bar { bottom: 6px; }
.phone .screen:has(.tabbar) .body { padding-bottom: 10px; }
.phone .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 4px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.phone .tabbar span { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 9.5px; font-weight: 600; }
.phone .tabbar svg { width: 19px; height: 19px; }
.phone .tabbar .on { color: var(--brand); font-weight: 800; }
.phone .card { padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.phone .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone .row b { font-weight: 700; }
.phone .row small { display: block; color: var(--muted); font-size: 11px; }
.phone .price { font-weight: 800; white-space: nowrap; }
.phone .thumb { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 9px; background: var(--brand-soft); font-size: 18px; }
.phone .left { display: flex; align-items: center; min-width: 0; }
.phone .pay { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 800; }
.phone .tag { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.phone .tag.owe { background: var(--danger-soft); color: var(--danger); }
.phone .tag.ok { background: var(--ok-soft); color: var(--ok); }
.phone .mini-btn { margin-top: 8px; padding: 7px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12px; text-align: center; }
.phone .kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .kpi .card b { display: block; font-size: 17px; }
.phone .kpi .card small { color: var(--muted); font-size: 11px; }
.phone .kpi .up { color: var(--ok); font-size: 11px; font-weight: 700; }
.phone .bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-top: 6px; }
.phone .bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--brand-faint); }
.phone .bars span.cur { background: var(--brand); }
.phone .mic { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; }
.phone .mic svg { width: 18px; height: 18px; }

/* Theo ngành */
.trades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trade { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trade .ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: var(--brand-soft); font-size: 26px; }
.trade h3 { font-size: 1.2rem; font-weight: 800; }
.trade ul { margin: 12px 0 0; padding-left: 18px; color: var(--label); }
.trade li + li { margin-top: 6px; }
@media (max-width: 860px) { .trades { grid-template-columns: 1fr; } }

/* Lưới tính năng nhỏ */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { padding: 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.tile b { display: block; margin: 8px 0 4px; font-size: 1rem; }
.tile p { color: var(--muted); font-size: 0.92rem; }
.tile .ico { font-size: 22px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }

/* Tin cậy */

/* Bắt đầu */
.start { text-align: center; }
.start .box { max-width: 760px; margin: 0 auto; padding: 40px 28px; border-radius: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; box-shadow: 0 20px 50px rgba(15, 118, 110, 0.3); }
.start h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.start p { margin: 12px auto 24px; max-width: 34em; color: #d4ede8; }
.start .btn-main { background: #fff; color: var(--brand); box-shadow: none; }
.start .btn-main:hover { background: var(--brand-soft); }
.start .mail { margin-top: 14px; color: #d4ede8; font-size: 0.95rem; }
.start .mail a { color: #fff; font-weight: 700; }
.no-email .has-email { display: none; }
.soon { display: none; margin-top: 14px; color: #d4ede8; font-size: 0.95rem; }
.no-email .soon { display: block; }

/* Câu hỏi */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.4rem; font-weight: 600; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--label); }

/* Chân trang */
.foot { padding: 40px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--label); text-decoration: none; }
.foot a:hover { color: var(--brand); }

/* Trang chữ (điều khoản, bảo mật) */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.doc .updated { margin: 8px 0 24px; color: var(--muted); }
.doc h2 { margin: 28px 0 8px; font-size: 1.2rem; font-weight: 800; }
.doc p, .doc li { color: var(--label); }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Khuyến mãi: thẻ bài (trang chủ, trang danh sách) và trang bài viết */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.promo-card { display: grid; align-content: start; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.15s, border-color 0.15s; }
.promo-card:hover { transform: translateY(-2px); border-color: var(--brand-faint); }
.promo-card b { font-size: 1.15rem; line-height: 1.3; }
.promo-card .promo-sum { color: var(--label); }
.promo-card small { color: var(--muted); }
.promo-card.ended { opacity: 0.7; }
.promo-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); font-size: 24px; }
.promo-tag { justify-self: start; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 0.8rem; font-weight: 700; }
.promo-card.ended .promo-tag, .promo-tag.ended { background: var(--soft); color: var(--muted); }
.promo-more { margin-top: 20px; text-align: center; font-weight: 700; }
.promo-page { padding: 48px 20px 72px; }
.promo-page .head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.empty-promo { text-align: center; color: var(--muted); }
.post .back { display: inline-block; margin-bottom: 18px; font-weight: 600; text-decoration: none; }
.post .promo-tag { margin-bottom: 10px; }
.post .lead-in { font-size: 1.1rem; color: var(--ink); }
.post .post-cta { margin-top: 28px; }
.post .note-ended { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--soft); }

/* Form đăng ký tư vấn (#dang-ky): chữ bên trái trên nền màu, form trắng bên phải; điện thoại xếp một cột. */
.start .box.signup { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; max-width: 1040px; text-align: left; align-items: start; }
.signup-text p { margin: 12px 0 18px; max-width: none; }
.signup-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #e6f4f1; font-weight: 600; }
.signup-points li::before { content: "✓ "; color: var(--sun); font-weight: 800; }
.signup .mail { margin-top: 18px; }
.signup-form, .signup-done { padding: 22px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 30px rgba(11, 79, 74, 0.25); }
.signup-form { display: grid; gap: 12px; }
.signup-form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup-form label { display: grid; gap: 5px; color: var(--label); font-size: 0.9rem; font-weight: 600; }
.signup-form label b { color: var(--danger); margin-left: 2px; }
.signup-form input:not([type="checkbox"]), .signup-form select, .signup-form textarea { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #d4dbe3; border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; }
.signup-form textarea { padding: 10px 12px; resize: vertical; }
.signup-form :is(input, select, textarea):focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.signup-form [aria-invalid="true"] { border-color: var(--danger); }
.signup-form fieldset { margin: 0; padding: 0; border: 0; }
.signup-form legend { margin-bottom: 6px; color: var(--label); font-size: 0.9rem; font-weight: 600; }
.chips-check { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-check label { display: block; }
.chips-check input { position: absolute; opacity: 0; pointer-events: none; }
.chips-check span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #d4dbe3; border-radius: 999px; color: var(--label); font-weight: 600; cursor: pointer; }
.chips-check input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.chips-check input:focus-visible + span { outline: 3px solid var(--brand-faint); }
.signup-form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--label); }
.signup-form .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.signup-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.2em; color: var(--danger); font-size: 0.92rem; font-weight: 600; }
.form-msg:empty { display: none; }
.signup-form .btn-main { width: 100%; background: var(--brand); color: #fff; }
.signup-form .btn-main:hover { background: var(--brand-ink); }
.signup-form .btn-main:disabled { opacity: 0.7; }
.signup-done { display: grid; justify-items: center; gap: 8px; padding: 40px 24px; text-align: center; }
.signup-done .done-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); font-size: 34px; }
.signup-done h3 { font-size: 1.3rem; font-weight: 800; }
.signup-done p { color: var(--label); margin: 0; }
[hidden] { display: none !important; }
@media (max-width: 860px) { .start .box.signup { grid-template-columns: 1fr; padding: 28px 18px; } }
@media (max-width: 480px) { .signup-form .f2 { grid-template-columns: 1fr; } }

/* iPad nằm ngang (khối #may-tinh-bang): vẽ ở bề ngang chuẩn 980px, site.js đặt --k để thu nhỏ vừa khung (zoom giữ đúng chỗ chiếm). */
.ipad { zoom: var(--k, 1); position: relative; width: 980px; margin: 0 auto; padding: 16px; border-radius: 40px; background: linear-gradient(145deg, #3f4652, #1c1f26 40%, #2b3038 70%, #121418); box-shadow: inset 0 0 0 1.5px #5b6270, inset 0 0 0 5px #0b0c0f, 0 36px 70px rgba(15, 23, 42, 0.26), 0 8px 18px rgba(15, 23, 42, 0.12); }
.ipad::before { content: ""; position: absolute; top: 7px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #0b0c0f; box-shadow: inset 0 0 0 1.5px #262b33; transform: translateX(-50%); }
.ipad::after { content: ""; position: absolute; top: -3px; right: 110px; width: 46px; height: 3px; border-radius: 2px 2px 0 0; background: #2b3038; }
.ipad-screen { display: grid; grid-template-columns: 168px 1fr; aspect-ratio: 1180 / 820; overflow: hidden; border-radius: 24px; background: #f4f6f8; font-size: 13px; line-height: 1.35; }
.ip-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; border-right: 1px solid var(--line); background: var(--surface); }
.ip-brand { display: flex; align-items: center; gap: 8px; margin: 0 4px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ip-brand svg { width: 30px; height: 30px; flex: none; }
.ip-brand b { font-size: 13px; line-height: 1.2; }
.ip-side nav { display: grid; gap: 2px; }
.ip-side nav span { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.ip-side nav svg { width: 17px; height: 17px; color: var(--muted); }
.ip-side nav .on { background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.ip-side nav .on svg { color: var(--brand); }
.ip-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; }
.ip-search { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 12px; border: 1px solid #d4dbe3; border-radius: 12px; background: var(--surface); color: var(--muted); }
.ip-search svg { width: 17px; height: 17px; }
.ip-search .scan { margin-left: auto; padding: 5px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12px; }
.ip-chips { display: flex; gap: 6px; }
.ip-chips span { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--label); font-weight: 600; font-size: 12px; }
.ip-chips .on { border-color: var(--brand); background: var(--brand); color: #fff; }
.ip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ip-grid .tile { position: relative; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ip-grid .tile.in { border-color: var(--brand-faint); background: #f3faf8; }
.ip-grid .emo { display: grid; place-items: center; height: 52px; margin-bottom: 4px; border-radius: 9px; background: var(--brand-soft); font-size: 26px; }
.ip-grid b { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-grid .pr { color: var(--brand); font-weight: 800; font-size: 12px; }
.ip-grid i { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-style: normal; font-weight: 800; font-size: 11px; }
.ip-cart { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-left: 1px solid var(--line); background: var(--surface); }
.ip-cart-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ip-cart-head b { font-size: 15px; }
.ip-cart-head small { color: var(--muted); font-size: 11px; }
.ip-lines { display: grid; gap: 8px; }
.ip-lines .cl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ip-lines .cl b { display: block; font-size: 12.5px; }
.ip-lines .cl small { color: var(--muted); font-size: 11px; }
.ip-lines .pr { font-weight: 800; white-space: nowrap; }
.ip-sum { display: flex; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--label); }
.ip-pay { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; }

.ipad-screen.ip-sell { grid-template-columns: 168px 1fr 250px; }

/* Mỗi tính năng: hai giao diện (điện thoại, máy tính bảng) vuốt qua lại; site.js đồng bộ nút, chấm, chiều cao. */
.devices { display: grid; gap: 14px; min-width: 0; }
.dev-tabs { justify-self: center; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.dev-tabs button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--label); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.dev-tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.devs { display: flex; min-width: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.devs::-webkit-scrollbar { display: none; }
.dev { flex: 0 0 100%; min-width: 0; display: flex; align-items: flex-start; justify-content: center; padding: 4px 2px 34px; scroll-snap-align: center; scroll-snap-stop: always; }
.dev-pad { align-items: center; }
.dev-dots { display: flex; justify-content: center; gap: 6px; margin-top: -24px; }
.dev-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: width 0.25s, background 0.25s; }
.dev-dots i.on { width: 20px; border-radius: 4px; background: var(--brand); }

/* Thẻ nhãn, dòng trong iPad (dùng chung các màn) */
.ipad .tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ipad .tag.owe { background: var(--danger-soft); color: var(--danger); }
.ipad .tag.ok { background: var(--ok-soft); color: var(--ok); }
.ipad .cl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ipad .cl b { display: block; font-size: 12.5px; }
.ipad .cl small { color: var(--muted); font-size: 11px; }
.ipad .pr { font-weight: 800; white-space: nowrap; }
.ipad .pr.ok { color: var(--ok); }
.ip-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ip-title b { font-size: 17px; }
.ip-title small { color: var(--muted); font-size: 12px; }

/* iPad Sổ nợ: danh sách trái, chi tiết phải */
.ip-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 12px; min-height: 0; flex: 1; }
.ip-list { display: grid; align-content: start; gap: 6px; }
.ip-list .dl { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ip-list .dl b { display: block; font-size: 12.5px; }
.ip-list .dl small { color: var(--muted); font-size: 11px; }
.ip-list .dl.on { border-color: var(--brand); background: #f3faf8; box-shadow: inset 3px 0 0 var(--brand); }
.ip-detail { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dd-head { display: flex; align-items: center; gap: 10px; }
.dd-head .av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.dd-head b { display: block; font-size: 15px; }
.dd-head small { color: var(--muted); font-size: 11px; }
.dd-owe { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--danger-soft); }
.dd-owe small { color: var(--danger); font-size: 11px; font-weight: 700; }
.dd-owe b { color: var(--danger); font-size: 22px; }
.dd-owe span { color: var(--label); font-size: 11.5px; }
.dd-hist { display: grid; gap: 8px; padding: 4px 0; }
.dd-btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: auto; }
.dd-btns span { display: grid; place-items: center; min-height: 38px; border-radius: 10px; font-weight: 700; font-size: 12.5px; }
.dd-btns .b-main { background: var(--brand); color: #fff; }
.dd-btns .b-line { border: 1px solid var(--line); color: var(--ink); }
.dd-note { color: var(--muted); font-size: 11px; }

/* iPad Tổng quan: ô số, biểu đồ, hai danh sách */
.ip-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ip-kpis .k { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ip-kpis .k small { color: var(--muted); font-size: 11px; }
.ip-kpis .k b { font-size: 20px; }
.ip-kpis .k span { color: var(--muted); font-size: 10.5px; }
.ip-kpis .k .up { color: var(--ok); font-weight: 700; }
.ip-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.ip-col { display: grid; gap: 10px; align-content: start; }
.ip-card { display: grid; align-content: start; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ip-card > b { font-size: 13px; }
.ip-bars { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding-top: 6px; }
.ip-bars .bc { display: grid; flex: 1; height: 100%; grid-template-rows: 1fr auto; justify-items: center; gap: 4px; }
.ip-bars .bc i { align-self: end; width: 100%; border-radius: 6px 6px 2px 2px; background: var(--brand-faint); }
.ip-bars .bc.cur i { background: var(--brand); }
.ip-bars .bc small { color: var(--muted); font-size: 10.5px; }

/* Điện thoại trong cụm hai giao diện: thu nhỏ cả khung lẫn nội dung cho cân với iPad bên cạnh. */
.dev .phone { zoom: 0.78; }
.feature.flip .devices { order: -1; }
@media (max-width: 860px) { .feature.flip .devices { order: 0; } }

/* Form đăng ký gọn: ô thấp hơn, khoảng cách nhỏ hơn; tên tiệm, tỉnh, lời nhắn gập trong "Thêm thông tin". */
.signup-form { gap: 10px; padding: 18px; }
.signup-form .f2 { gap: 10px; }
.signup-form label { gap: 4px; font-size: 0.86rem; }
.signup-form input:not([type="checkbox"]), .signup-form select { min-height: 42px; }
.signup-form legend { margin-bottom: 4px; font-size: 0.86rem; }
.chips-check { gap: 6px; }
.chips-check span { min-height: 34px; padding: 0 12px; font-size: 0.86rem; }
.f-more { border-top: 1px dashed #d4dbe3; padding-top: 8px; }
.f-more summary { cursor: pointer; color: var(--brand); font-size: 0.88rem; font-weight: 700; list-style: none; }
.f-more summary::-webkit-details-marker { display: none; }
.f-more summary::before { content: "+ "; }
.f-more[open] summary::before { content: "− "; }
.f-more[open] { display: grid; gap: 10px; }
.signup-form .consent { font-size: 0.86rem; }

/* Trang Khách hàng: từng ngành có vấn đề, cách Tiệm Xóm giúp, hướng đi. */
.kh-hero { padding: 56px 0 24px; }
.kh-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.kh-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kh-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.kh-jump a:hover { border-color: var(--brand); color: var(--brand); }
.kh-trade { padding: 56px 0; scroll-margin-top: 64px; }
.kh-trade.alt { background: var(--surface); }
.kh-title { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.kh-title h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 800; }
.kh-title .kicker { margin-bottom: 2px; }
.kh-ico { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); font-size: 28px; }
.kh-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.kh-card { padding: 20px 22px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.kh-trade.alt .kh-card { background: var(--bg); box-shadow: none; border: 1px solid var(--line); }
.kh-card h3, .kh-road h3 { margin-bottom: 10px; font-size: 1rem; font-weight: 800; }
.kh-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.kh-card li { position: relative; padding-left: 22px; color: var(--label); }
.kh-card li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.kh-pain h3 { color: var(--danger); }
.kh-pain li::before { content: "✕"; color: var(--danger); }
.kh-fix h3 { color: var(--brand); }
.kh-fix li::before { content: "✓"; color: var(--brand); }
.kh-road { margin-top: 16px; }
.kh-road ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: b; }
.kh-road li { position: relative; padding: 16px 16px 16px 52px; border-radius: 14px; background: var(--brand-soft); counter-increment: b; }
.kh-road li::before { content: counter(b); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.85rem; font-weight: 800; }
.kh-road b { display: block; color: var(--brand-ink); }
.kh-road span { color: var(--label); font-size: 0.92rem; }
.kh-lead { max-width: 44em; margin: -8px 0 20px; color: var(--muted); }
.kh-more { margin-top: 24px; text-align: center; }
.kh-more a { color: var(--brand); font-weight: 700; }
@media (max-width: 860px) { .kh-cols, .kh-road ol { grid-template-columns: 1fr; } .kh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
