/* Luna Booking onboarding — HTML/CSS chuyển từ canvas OpenPencil (onboarding.op, 26/11/2026).
   Khung admin Shopify 1440×900, nội dung rộng 950. Màu nhấn Booking chỉ dùng cho phần tự vẽ. */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --text: #303030;
  --text-2: #616161;
  --text-3: #8a8a8a;
  --link: #005bd3;
  --border: #e3e3e3;
  --border-input: #c4c4c4;
  --panel: #f1f1f1;
  --accent: #3f51b5;
  --accent-surface: #e8eaf6;
  --accent-fill: #c5cae9;
  --accent-text: #1a237e;
  --success-bg: #cdfee1;
  --success-text: #0c5132;
  --warn-bg: #fff1c2;
  --warn-text: #4f4700;
  --shadow-card: 0 1px 3px #0000001f, 0 4px 14px #00000014;
  --shadow-btn: 0 1px 1px #0000001a;
  --shadow-btn-primary: 0 1px 1px #00000040;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 13px/1.333 var(--font);
  color: var(--text);
  background: #0a0a0a;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:not([href]) { cursor: pointer; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }

/* ---------- Khung admin ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; height: 100vh; min-height: 900px; }

.sidebar {
  display: flex; flex-direction: column;
  padding: 16px 14px 14px;
  color: #fff;
  background: #0a0a0a;
}
.sb-top { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 8px 0 6px; }
.sb-search {
  display: flex; align-items: center; gap: 7px;
  height: 28px; margin-top: 16px; padding: 0 10px 0 9px;
  color: #a6a6a6; background: #393939; border-radius: 8px;
}
.sb-search .kbd { margin-left: auto; font-size: 12px; }
.sb-nav { margin-top: 14px; }
.sb-item { display: flex; align-items: center; gap: 8px; height: 30px; padding-left: 8px; color: #fff; }
.sb-item img { width: 16px; height: 16px; }
.sb-section { display: flex; align-items: center; gap: 4px; height: 24px; margin-top: 10px; padding-left: 6px; font-size: 12px; color: #a6a6a6; }
.sb-section img { width: 14px; height: 14px; }
.sb-section + .sb-item, .sb-section + .sb-nav { margin-top: 4px; }
.sb-app {
  display: flex; align-items: center; gap: 7px;
  height: 28px; margin-top: 13px; padding: 0 13px 0 9px;
  font-weight: 500; white-space: nowrap; color: #fff; background: #282828; border-radius: 8px;
}
.sb-app img { width: 16px; height: 16px; border-radius: 4px; }
.sb-app .dot { width: 4px; height: 4px; margin-left: auto; background: #a6a6a6; border-radius: 50%; }
.sb-sub { display: flex; align-items: center; height: 30px; padding-left: 32px; color: #a6a6a6; }
.sb-sub:first-of-type { margin-top: 1px; }
.sb-bottom { margin-top: auto; }
.sb-store { display: flex; align-items: center; gap: 8px; height: 30px; padding-left: 6px; }
.sb-avatar {
  display: grid; place-items: center; width: 18px; height: 18px;
  font-size: 7px; font-weight: 700; background: #e340b6; border-radius: 4px;
}
.sb-store .bell { margin-left: auto; margin-right: 4px; }

.panel {
  position: relative;
  display: flex; flex-direction: column;
  height: calc(100vh - 8px); min-height: 892px;
  margin: 4px 4px 4px 0;
  overflow: hidden;
  background: var(--panel); border-radius: 12px;
}
.titlebar {
  display: flex; align-items: center; gap: 0;
  flex: none; height: 54px; padding: 0 12px;
  background: #fff; border-bottom: 1px solid #f2f2f2;
}
.titlebar .back {
  display: grid; place-items: center; width: 30px; height: 30px; margin-right: 14px;
  border: 1px solid var(--border); border-radius: 50%; background: #fff;
}
.titlebar .app-icon { width: 18px; height: 18px; border-radius: 4px; }
.titlebar .slash { margin: 0 9px 0 10px; color: #b5b5b5; }
.titlebar .title { font-weight: 500; }
.titlebar.tb-home { padding-left: 17px; }
.titlebar.tb-home .app-icon { margin-right: 7px; }
.titlebar .more {
  display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto;
  border: 1px solid var(--border); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0000001a;
}
.panel-scroll { position: relative; flex: 1; min-height: 0; }
.page { width: 950px; margin: 0 auto; }

.sidekick {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  width: 377px; height: 51px; padding: 0 16px 0 14px;
  color: #757575; background: #fff; border: 1px solid #dedede; border-radius: 26px; box-shadow: 0 2px 8px #0000001a;
}
.sidekick .avatar { width: 22px; height: 22px; }
.sidekick .tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.sidekick .divider { width: 1px; height: 16px; background: #dedede; margin: 0 -6px 0 -5px; }

.toast {
  opacity: 0;
  position: absolute; left: 50%; bottom: 79px; transform: translateX(-50%);
  display: flex; align-items: center; height: 32px; padding: 0 16px;
  color: #fff; white-space: nowrap; background: #303030; border-radius: 8px; box-shadow: 0 4px 12px #00000033;
}

/* ---------- Thành phần chung ---------- */
.card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-card); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 16px;
  font-weight: 500; white-space: nowrap;
  color: var(--text); background: #fff;
  border: 1px solid var(--border-input); border-radius: 8px; box-shadow: var(--shadow-btn);
}
.btn.primary { color: #fff; background: #303030; border-color: #303030; box-shadow: var(--shadow-btn-primary); }
.btn.sm { height: 26px; }
.btn.block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; height: 19px; padding: 0 8px;
  font-size: 12px; font-weight: 500; color: var(--text); background: var(--border); border-radius: 10px;
}
.chip.success { color: var(--success-text); background: var(--success-bg); }

.banner { display: flex; align-items: center; min-height: 36px; padding: 8px 14px; line-height: 20px; border-radius: 8px; font-weight: 600; text-wrap: pretty; }
.banner.success { color: var(--success-text); background: var(--success-bg); }
.banner.warning { display: block; padding: 7px 14px 8px; color: var(--warn-text); background: var(--warn-bg); }
.banner.warning p { margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 16px; }

.link { color: var(--link); }
.muted { color: var(--text-2); }
.small { font-size: 12px; line-height: 16px; }

.need-help { margin-top: 24px; text-align: center; }

/* ---------- Tiêu đề trang (tên app) ---------- */
.page-header { display: flex; align-items: center; gap: 14px; margin: 8px 0 20px; }
.page-header h1 { font-size: 26px; font-weight: 700; line-height: 32px; letter-spacing: -0.01em; }

/* ---------- Thanh bước ---------- */
.stepbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 64px; padding: 16px 20px 0; }
.stepbar li::before { content: ""; display: block; height: 6px; border-radius: 999px; background: #d4d4d4; }
.stepbar li { color: var(--text-3); }
.stepbar li > :is(a, label) > span { display: inline-block; margin-top: 9px; white-space: nowrap; }
.stepbar .no { display: inline-block; width: 16px; font-weight: 600; }
.stepbar .is-done::before, .stepbar .is-current::before { background: var(--accent); }
.stepbar .is-done .no, .stepbar .is-current .no { color: var(--accent); }
.stepbar .is-done { color: var(--text-2); }
.stepbar .is-current { color: var(--text); font-weight: 600; }

/* ---------- Thẻ setup (2 cột: minh hoạ + nội dung) ---------- */
.setup { margin-top: 16px; padding: 24px; }
.setup-head { position: relative; margin-bottom: 22px; }
.setup-title { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 20px; font-weight: 600; line-height: 28px; }
.setup-title .chip { margin-left: 2px; }
.setup-title .spinner { width: 20px; height: 20px; margin: -3px 0 0 10px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.setup-desc { margin-top: 4px; max-width: 760px; line-height: 20px; color: var(--text-2); }
.skip { position: absolute; top: 4px; right: 0; color: var(--link); }
.inline-actions label:not(.btn) { color: var(--link); font-weight: 500; }
label:is(.skip, .mobile-close, .inline-actions label):hover { text-decoration: underline; }

.setup-body { display: grid; grid-template-columns: 440px 440px; column-gap: 22px; }
.setup-side { display: flex; flex-direction: column; }
.setup-foot { display: flex; align-items: center; margin-top: auto; padding-top: 16px; }
.setup-foot .btn.primary { margin-left: auto; }

.howto-title { font-size: 14px; font-weight: 600; line-height: 20px; }
.howto { margin-top: 12px; }
.howto li { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; align-items: center; line-height: 20px; }
.howto li + li { margin-top: 12px; }
.howto .no {
  display: grid; place-items: center; width: 20px; height: 20px;
  font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-surface); border-radius: 50%;
}
.actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.link-inline { margin-left: 8px; font-weight: 500; }
.setup-side > .banner { margin-top: 22px; }
.setup-side > .banner.warning + .actions { margin-top: 14px; }

/* Minh hoạ */
.illus { position: relative; width: 440px; height: 380px; overflow: hidden; background: #f5f6fb; border-radius: 16px; }
/* GIF bước 1–2: hiện đúng cỡ gốc 501×386, không nền thừa, viền mảnh như ảnh chụp màn hình */
.setup-body:has(.illus.gif) { grid-template-columns: 501px 1fr; column-gap: 24px; }
.illus.gif { width: 501px; height: 386px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.illus.gif img { width: 501px; height: 386px; }
.blob { position: absolute; border-radius: 50%; }
.blob.sky { left: 300px; top: -60px; width: 200px; height: 170px; background: var(--accent-surface); }
.blob.blue { left: -60px; top: 290px; width: 180px; height: 140px; background: var(--accent-fill); }
.mock {
  position: absolute; left: 24px; top: 36px; width: 392px; height: 308px; padding: 16px;
  background: #fff; border-radius: 12px; box-shadow: 0 1px 3px #0000001a;
}
.mock.no-cart { top: 59px; height: 262px; }
.mock-img { height: 128px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-surface), var(--accent-fill)); }
.mock-title { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 20px; }
.mock-price { width: 120px; height: 10px; margin-top: 8px; background: var(--border); border-radius: 4px; }
.mock-slot { position: relative; height: 34px; margin-top: 16px; }
.mock-slot::before { content: ""; position: absolute; inset: -4px; border: 2px solid var(--accent); border-radius: 10px; }
.mock-btn { display: grid; place-items: center; height: 34px; border-radius: 6px; }
.mock-btn.dark { font-weight: 600; color: #fff; background: #303030; }
.mock-btn.outline { margin-top: 12px; border: 1px solid #303030; }
.mock-btn.placeholder { font-size: 12px; color: var(--text-2); background: #f7f7f7; border: 1px dashed var(--text-3); }

.confetti { position: absolute; }
.badge-done {
  position: absolute; left: 172px; top: 142px; display: grid; place-items: center;
  width: 96px; height: 96px; background: var(--accent); border-radius: 50%;
}

/* Bước 2 vintage */
.code {
  padding: 13px 16px 0; height: 64px; background: #1f1f1f; border-radius: 10px;
  color: #fff;
}
.code code { font: inherit; white-space: nowrap; }
.code small { display: block; margin-top: 6px; font-size: 12px; color: #9a9a9a; }
.setup-side > .code + .actions { margin-top: 20px; }

/* Bước 4 giờ mở cửa: danh sách 7 ngày, 1 cột */
.hours-list { display: grid; gap: 4px; }
.hours-list > li { display: grid; grid-template-columns: 32px 124px auto auto 1fr; align-items: start; min-height: 44px; padding: 6px 0; }
.hours-list .switch { margin-top: 6px; }
.hours-list .day { padding-left: 12px; font-weight: 500; line-height: 32px; cursor: pointer; }
.hours-list .slots { display: grid; gap: 8px; width: 328px; }
.hours-list .slot { display: grid; grid-template-columns: 148px 32px 148px; align-items: center; }
.hours-list .slot.extra { display: none; }
.hours-list .slot.extra { grid-template-columns: 148px 32px 148px auto; }
.hours-list .slot .icon-btn.del { display: grid; place-items: center; width: 32px; height: 32px; margin-left: 12px; border: 1px solid var(--border-input); border-radius: 8px; background: #fff; box-shadow: var(--shadow-btn); cursor: pointer; }
.hours-list .slot .icon-btn.del:hover { background: #f7f7f7; }
.hours-list .slot .icon-btn.del img { width: 20px; height: 20px; }
.hours-list .dash { text-align: center; color: var(--text-2); }
.hours-list .row-actions { display: flex; gap: 8px; margin-left: 12px; }
.hours-list .row-actions .icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border-input); border-radius: 8px; background: #fff; box-shadow: var(--shadow-btn); cursor: pointer; }
.hours-list .row-actions .icon-btn:hover { background: #f7f7f7; }
.hours-list .row-actions img { width: 20px; height: 20px; }
.hours-list .note { display: none; grid-column: 3 / -1; line-height: 32px; color: var(--text-3); }
.hours-list > li:has(.cbx-input:not(:checked)) .day { color: var(--text-3); }
.hours-list > li:has(.cbx-input:not(:checked)) :is(.slots, .row-actions) { display: none; }
.hours-list > li:has(.cbx-input:not(:checked)) .note { display: block; }
.hours-list > li:has(.add-input:checked) .slot.extra { display: grid; }
.hours-list > li:has(.add-input:checked) .icon-btn.add { opacity: .45; pointer-events: none; }
.add-input, .dup-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Modal "Duplicate time slots" */
.hours-list .modal { display: none; position: fixed; inset: 0; z-index: 60; place-items: center; background: #00000080; }
.hours-list > li:has(.dup-input:checked) .modal { display: grid; }
.modal-box { width: 380px; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px #00000040; overflow: hidden; }
.modal-box header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.modal-box header b { font-size: 14px; font-weight: 600; }
.modal-box header .icon-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; }
.modal-box header .icon-btn:hover { background: #f1f1f1; }
.modal-body { padding: 16px; display: grid; gap: 8px; }
.modal-body b { font-weight: 600; }
.copy-to { display: grid; gap: 10px; margin-top: 4px; }
.copy-to label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.copy-to input { width: 16px; height: 16px; accent-color: #303030; }
.modal-box footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.modal-box:not(:has(.copy-to input:checked)) .dup-ok { opacity: .45; pointer-events: none; }
.cbx-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 32px; height: 20px; border-radius: 10px; background: #303030; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 14px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #00000040; transition: left .15s; }
li:has(.cbx-input:not(:checked)) .switch { background: #b5b5b5; }
li:has(.cbx-input:not(:checked)) .switch::after { left: 2px; }
li:has(.cbx-input:focus-visible) .switch { outline: 2px solid var(--link); outline-offset: 2px; }
.tz { margin-top: 12px; }
.form-foot .push { margin-left: auto; }

/* Bước 5 */
.inline-actions { display: flex; align-items: center; gap: 16px; }
.inline-actions a { font-weight: 500; }
.booking { padding: 14px 16px 0; height: 90px; }
.booking header { display: flex; justify-content: space-between; align-items: center; }
.booking header b { font-weight: 600; }
.booking p { margin-top: 6px; }
.booking a { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 500; }
.setup-side > .booking + .banner { margin-top: 16px; }

/* Xong */
.next-list { margin-top: 12px; }
.next-list li {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 3px #0000001a;
}
.next-list li + li { margin-top: 12px; }
.next-list b { display: block; font-weight: 600; }
.next-list p { margin-top: 2px; }
.next-list a { font-size: 13px; font-weight: 500; }

/* ---------- Bước 3: form 1 cột ---------- */
.form-section { margin-top: 0; }
.section-title { font-size: 14px; font-weight: 600; line-height: 19px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 9px; }
.tile {
  display: grid; grid-template-columns: 16px 1fr; column-gap: 12px; align-items: start;
  height: 64px; padding: 14px 16px;
  text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 12px;
}
.tile.is-selected { padding: 13px 15px; border: 2px solid var(--accent); }
.tile b { display: block; font-weight: 600; }
.tile small { display: block; margin-top: 3px; font-size: 12px; color: var(--text-2); }
.radio { width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid var(--text-3); border-radius: 50%; background: #fff; }
.is-selected .radio { border: 0; background: radial-gradient(circle, #fff 0 3px, var(--accent) 3.5px); }
.picker {
  display: flex; align-items: center; gap: 12px;
  height: 56px; margin-top: 12px; padding: 0 12px;
  border: 1px solid var(--border-input); border-radius: 8px; box-shadow: 0 1px 1px #0000000d;
}
.picker .thumb { width: 32px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, var(--accent-surface), var(--accent-fill)); }
.picker b { display: block; font-weight: 600; }
.picker small { font-size: 12px; color: var(--text-2); }
.picker a { margin-left: auto; font-weight: 500; }

.fields { margin-top: 24px; }
.field label { display: block; margin-bottom: 9px; font-weight: 500; }
.input {
  display: flex; align-items: center; width: 100%; height: 32px; padding: 0 12px;
  font: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--border-input); border-radius: 8px; box-shadow: 0 1px 1px #0000000d;
}
select.input {
  appearance: none;
  background: #fff url(assets/caret-down.svg) no-repeat right 12px center / 14px;
}
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.form-foot {
  display: flex; align-items: center; gap: 16px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border);
}
.form-foot .link { margin-left: auto; font-weight: 500; }

/* ---------- Home ---------- */
.hello { padding-top: 3px; }
.hello h1 { font-size: 26px; font-weight: 700; line-height: 32px; letter-spacing: -0.01em; }
.hello p { margin-top: 3px; color: var(--text-2); }
.home-cards { display: grid; gap: 16px; margin-top: 11px; }
.status { padding: 17px 20px 4px; }
.status h2 { font-size: 14px; font-weight: 600; margin-bottom: 11px; }
.status-row { display: flex; align-items: center; height: 38px; border-top: 1px solid var(--border); }
.status-row span:first-child { width: 140px; font-weight: 500; }
.status-row .btn { margin-left: auto; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { height: 110px; padding: 17px 20px; }
.stat h3 { font-size: 14px; font-weight: 600; }
.stat strong { display: block; margin-top: 12px; font-size: 28px; font-weight: 700; line-height: 34px; }

/* ---------- Mobile ---------- */
.mobile-stage { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: var(--panel); }
.phone {
  position: relative; display: flex; flex-direction: column;
  width: 390px; height: 780px; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
}
.phone-head { padding: 18px 16px 16px; border-bottom: 1px solid var(--border); }
.phone-head h1 { font-size: 14px; font-weight: 600; }
.phone-head p { margin-top: 15px; font-size: 12px; color: var(--text-2); }
.phone-head .track { position: relative; height: 7px; margin-top: 5px; background: var(--accent-surface); border-radius: 4px; }
.phone-head .track i { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--accent); border-radius: 4px; }
.phone-body { flex: 1; padding: 19px 16px 0; }
.phone-body h2 { font-size: 20px; font-weight: 600; line-height: 28px; }
.phone-body > p { margin-top: 7px; color: var(--text-2); }
.radios { margin-top: 12px; }
.radios li { display: flex; align-items: center; gap: 8px; height: 24px; font-weight: 500; }
.radios li.is-selected { font-weight: 600; }
.radios .radio { margin-top: 0; }
.radios .is-selected .radio { border: 0; background: radial-gradient(circle, #fff 0 3px, #303030 3.5px); }
.sample {
  display: flex; align-items: center; gap: 16px; height: 80px; margin-top: 4px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 3px #0000001a;
}
.sample .thumb { width: 48px; height: 48px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-surface), var(--accent-fill)); }
.sample b { display: block; font-size: 14px; font-weight: 600; }
.sample small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.phone .field { margin-top: 14px; }
.phone .field label { margin-bottom: 6px; }
.phone .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.phone .grid2 .field:nth-child(3) { margin-top: 14px; }
.phone .help { margin-top: 12px; }
.phone .note { margin-top: 7px; }
.phone .cta { margin-top: 24px; }
.phone .detail { display: inline-block; margin-top: 12px; font-weight: 500; }
.phone-foot { display: flex; justify-content: flex-end; gap: 12px; height: 74px; padding: 21px 16px 0; border-top: 1px solid var(--border); }

/* ---------- Trang mục lục, UX rules ---------- */
.doc { min-height: 100vh; padding: 40px; color: var(--text); background: var(--panel); }
.doc h1 { font-size: 22px; font-weight: 600; }
.doc > p { margin-top: 6px; color: var(--text-2); }
.doc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.doc-group { padding: 16px 20px; }
.doc-group h2 { font-size: 14px; font-weight: 600; }
.doc-group li { margin-top: 8px; }
.doc-group li small { display: block; color: var(--text-2); }
.rules { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; margin-top: 24px; padding: 24px; }
.rules h2 { font-size: 20px; font-weight: 600; }
.rules li { margin-top: 6px; font-size: 14px; line-height: 1.45; }
.rules li::before { content: "• "; }

/* ---------- Flow: một file, chuyển màn bằng #anchor + :target ---------- */
.nav-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.screen { display: none; height: 100%; overflow: auto; padding: 16px 0 96px; }
label[for^="go-"] { cursor: pointer; }
label.btn, label.tile, label.link { user-select: none; }
.panel-scroll .link, .panel-scroll label.link, .setup-side > div > label:not(.btn) { color: var(--link); }
.titlebar.tb-setup { display: none; }
body:has(.nav-radio.setup:checked) .titlebar.tb-setup { display: flex; }
body:has(.nav-radio.setup:checked) .titlebar.tb-home { display: none; }
.screen .toast { animation: toast 3.4s ease .3s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
a.btn { text-decoration: none; }
a.tile { color: inherit; text-decoration: none; }
.stepbar :is(a, label) { display: block; color: inherit; text-decoration: none; }
.stepbar :is(a, label):hover > span { text-decoration: underline; }

#m2.screen { position: fixed; inset: 0; z-index: 20; height: auto; padding: 24px; }
.mobile-close { position: absolute; top: 20px; right: 24px; font-weight: 500; color: var(--link); }

.flow-nav {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 260px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 12px; box-shadow: 0 4px 20px #00000033;
}
.flow-nav summary { padding: 10px 14px; font-weight: 600; cursor: pointer; list-style: none; }
.flow-nav summary::before { content: "▸ "; color: var(--text-3); }
.flow-nav[open] summary::before { content: "▾ "; }
.flow-nav section { padding: 4px 14px 8px; border-top: 1px solid var(--border); }
.flow-nav h2 { margin: 6px 0 2px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.flow-nav :is(a, label) { display: block; padding: 3px 8px; margin: 0 -8px; color: var(--text); border-radius: 6px; }
.flow-nav :is(a, label):hover { background: #f1f1f1; text-decoration: none; }

/* ---------- Trạng thái hover / bấm / focus ---------- */
.btn { transition: background .12s; }
.btn:hover { background: #f7f7f7; text-decoration: none; }
.btn.primary:hover { background: #1a1a1a; }
.btn:active { box-shadow: inset 0 1px 2px #00000033; }
.btn.primary:active { background: #000; }
.tile { transition: border-color .12s; }
.tile:hover { border-color: #b5b5b5; }
.tile.is-selected:hover { border-color: var(--accent); }
.sidebar a:hover { text-decoration: none; background: #1f1f1f; border-radius: 8px; }
.sidebar .sb-app:hover { background: #303030; }
.titlebar .back:hover, .titlebar .more:hover { background: #f7f7f7; }
.next-list li:hover { border-color: #c9c9c9; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.input:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.code code { user-select: all; cursor: text; }

/* M2: màn thấp vẫn cuộn được, không cắt đáy điện thoại */
#m2.screen { flex-direction: column; align-items: center; overflow: auto; min-height: 0; }
#m2 .phone { flex: none; margin: auto 0; }

/* Ô số có hậu tố (Capacity "per slot") */
.suffix { position: relative; }
.suffix .input { padding-right: 72px; }
.suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }

/* S5: trang sản phẩm chi tiết (Schedule thay Add to cart / Buy it now) */
.pp { position: absolute; left: 24px; top: 24px; width: 392px; height: 332px; overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px #0000001a, 0 6px 18px #0000000f; font-size: 10px; line-height: 1.35; }
.pp-bar { display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 14px; color: #fff; background: #1f1f1f; font-size: 9.5px; }
.pp-bar b { margin-right: 10px; font-size: 11px; font-weight: 700; }
.pp-bar i { width: 9px; height: 9px; border: 1.5px solid #fff; border-radius: 50%; }
.pp-bar i:first-of-type { margin-left: auto; }
.pp-crumb { padding: 8px 14px; font-size: 8.5px; color: var(--text-3); }
.pp-crumb b { font-weight: 500; color: var(--text-2); }
.pp-body { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 0 14px; }
.pp-img { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; }
.pp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.pp-thumbs i { height: 32px; background: linear-gradient(135deg, var(--accent-surface), var(--accent-fill)); border-radius: 5px; }
.pp-thumbs i.on { outline: 1.5px solid #303030; outline-offset: 1px; }
.pp-info { display: flex; flex-direction: column; }
.pp-brand { font-size: 7.5px; font-weight: 600; letter-spacing: .1em; color: var(--text-3); }
.pp-title { margin-top: 2px; font-size: 15px; font-weight: 700; line-height: 1.2; }
.pp-rating { margin-top: 3px; font-size: 8.5px; color: var(--text-2); }
.pp-rating em { font-style: normal; color: #f5a623; letter-spacing: 1px; }
.pp-price { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.pp-price b { font-size: 14px; font-weight: 700; }
.pp-price s { font-size: 9px; color: var(--text-3); }
.pp-price i { padding: 1px 6px; font-size: 8px; font-style: normal; font-weight: 600; color: var(--accent-text); background: var(--accent-surface); border-radius: 999px; }
.pp-desc { margin-top: 5px; font-size: 8.5px; color: var(--text-2); }
.pp-label { margin-top: 7px; font-size: 8px; font-weight: 600; }
.pp-chips { display: flex; gap: 5px; margin-top: 4px; }
.pp-chips i { padding: 3px 8px; font-size: 8.5px; font-style: normal; border: 1px solid var(--border); border-radius: 999px; }
.pp-chips i.on { color: #fff; background: #303030; border-color: #303030; }
.pp-sched { display: grid; place-items: center; height: 28px; margin-top: 10px; font-size: 10.5px; font-weight: 600; color: #fff; background: #303030; border-radius: 6px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.pp-acc { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 7px; font-size: 9px; border-top: 1px solid var(--border); }
.pp-acc + .pp-acc { margin-top: 0; padding-bottom: 0; }
.pp-acc span { color: var(--text-3); }

/* Nút tertiary (Polaris): chữ, không viền — "Skip setup" ở bước 1 */
.btn.tertiary { height: auto; padding: 0; font-weight: 400; color: var(--link); background: none; border: 0; box-shadow: none; }
.btn.tertiary:hover { background: none; text-decoration: underline; }
.btn.tertiary:active { background: none; box-shadow: none; }
.form-foot .btn.primary { margin-left: auto; }

/* ---------- Shopify Resource Picker (bước 3) ---------- */
.rp-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rp-show { display: none; }
body:has(#go-s3pick:checked) #s3a, body:has(#go-s3pick2:checked) #s3b { display: block; }
.rp-overlay { display: none; position: absolute; inset: 0; z-index: 40; background: #00000080; }
body:has(#go-s3pick:checked, #go-s3pick2:checked) .rp-overlay { display: block; }
.rp { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; width: 620px; height: min(627px, calc(100vh - 80px)); overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 20px 40px #00000040; }
.rp header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; }
.rp header b { font-size: 15px; font-weight: 600; }
.rp-x { display: grid; place-items: center; width: 30px; height: 30px; font-size: 13px; border: 1px solid var(--border-input); border-radius: 50%; cursor: pointer; }
.rp-x:hover { background: #f7f7f7; }
.rp-to-b { display: none !important; }
body:has(#go-s3pick2:checked) .rp-to-a { display: none !important; }
body:has(#go-s3pick2:checked) .rp-to-b { display: grid !important; }
body:has(#go-s3pick2:checked) footer .rp-to-b { display: inline-flex !important; }
.rp-search { display: grid; grid-template-columns: 1fr 190px; gap: 8px; padding: 0 14px; }
.rp-field { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--border-input); border-radius: 8px; outline: 2px solid var(--link); outline-offset: 1px; }
.rp-field input { flex: 1; font: inherit; border: 0; outline: 0; background: none; }
.rp-by { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 10px; color: var(--text-2); border: 1px solid var(--border-input); border-radius: 8px; }
.rp-by b { margin-left: 4px; margin-right: auto; font-weight: 500; color: var(--text); }
.rp-filter { padding: 10px 14px 12px; border-bottom: 1px solid var(--border); }
.rp-filter span { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; font-size: 12px; border: 1px dashed var(--border-input); border-radius: 8px; }
.rp-list { flex: 1; overflow: auto; }
.rp-list li + li { border-top: 1px solid #ebebeb; }
.rp-list label { display: flex; align-items: center; gap: 14px; height: 57px; padding: 0 16px; cursor: pointer; }
.rp-list label:hover { background: #f7f7f7; }
.rp-cb { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--text-3); border-radius: 5px; background: #fff; }
.rp-cb img { display: none; width: 14px; height: 14px; }
.rp-thumb { flex: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; }
.rp footer { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.rp-count { margin-right: auto; }
.rp-count .c1, body:has(.rp-input:checked) .rp-count .c0 { display: none; }
body:has(.rp-input:checked) .rp-count .c1 { display: inline; }
body:not(:has(.rp-input:checked)) .rp-add { color: #fff; background: #e3e3e3; border-color: #e3e3e3; box-shadow: none; pointer-events: none; }
.picker .rp-show .thumb { flex: none; }

/* ================= Polaris web components (26/11/2026) ================= */
s-button, s-link, s-badge { flex: none; }
.setup-foot s-button[variant="primary"], .form-foot s-button[variant="primary"] { margin-left: auto; }
.setup-foot s-link + s-button[variant="primary"] { margin-left: auto; }
.setup-side > s-banner { display: block; margin-top: 22px; }
.setup-title s-badge { margin-left: 2px; }
.setup-title s-spinner { margin-left: 8px; }
.status-row s-button { margin-left: auto; }
.booking header s-badge { margin-left: auto; }
.booking s-link { display: inline-block; margin-top: 8px; }
.next-list li s-link { flex: none; }
.inline-actions { display: flex; align-items: center; gap: 16px; }

/* Bước 3 */
.fields { display: grid; gap: 16px; margin-top: 24px; }
.field-row { margin-top: 0; }
.picker .picked { display: flex; align-items: center; gap: 12px; min-width: 0; }
.picker .picked b { display: block; font-weight: 600; }
.picker .picked small { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 560px; }
.picker .stack { display: flex; }
.picker .stack s-thumbnail + s-thumbnail { margin-left: -10px; }
.picker > s-link { margin-left: auto; }

/* Bước 4 */
.hours-list > li { grid-template-columns: 40px 116px auto auto 1fr; }
.hours-list s-switch { margin-top: 6px; }
.hours-list .slot s-select { width: 148px; }
.hours-list .slot.extra { grid-template-columns: 148px 32px 148px auto; }
.hours-list .slot.extra s-button { margin-left: 12px; }
.hours-list > li.has-extra .slot.extra { display: grid; }
.hours-list > li.is-closed .day { font-weight: 500; color: var(--text-3); }
.hours-list > li.is-closed :is(.slots, .row-actions) { display: none; }
.hours-list > li.is-closed .note { display: block; }
.dup-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #00000080; }
.dup-overlay[hidden] { display: none; }
.dup-overlay .modal-box header { padding: 8px 8px 8px 16px; }
.dup-overlay .copy-to { display: grid; gap: 10px; margin-top: 4px; }

/* Resource Picker: sản phẩm + variant con, chọn nhiều */
.rp-list li { display: grid; grid-template-columns: 18px 40px 1fr 120px 90px; align-items: center; column-gap: 14px; min-height: 57px; padding: 0 20px 0 16px; cursor: pointer; }
.rp-list li:hover { background: #f7f7f7; }
.rp-list li.rp-var { grid-template-columns: 18px 1fr 120px 90px; min-height: 37px; padding-left: 48px; }
.rp-list .rp-thumb { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; }
.rp-list .rp-name { min-width: 0; }
.rp-list .rp-avail { color: var(--text-2); text-align: right; }
.rp-list .rp-price { text-align: right; }
.rp-list .rp-prod > .rp-name:last-child { grid-column: 3 / -1; }
.rp-list li .rp-cb { position: relative; }
.rp-list li.on .rp-cb { background: #303030 url(assets/check.svg) center / 14px no-repeat; border-color: #303030; }
.rp-list li.some .rp-cb { background: #303030; border-color: #303030; }
.rp-list li.some .rp-cb::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6.5px; height: 2px; border-radius: 1px; background: #fff; }
.rp-x { background: #fff; }
.rp footer s-button[variant="primary"] { margin-left: 0; }

/* Mobile */
.m-fields { display: grid; gap: 14px; margin-top: 14px; }
.phone .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.phone s-choice-list { display: block; margin-top: 12px; }
.phone .cta { margin-top: 20px; }
.phone-foot { align-items: center; }

/* s-section làm card (26/11) */
.sec + .sec { margin-top: 16px; }
.sec-steps .stepbar { margin: 0; }
.sec .setup { margin-top: 0; }
.home-cards .sec + .sec, .stats .sec + .sec { margin-top: 0; }
.setup-foot, .form-foot { display: flex; align-items: center; justify-content: space-between; }
.setup-foot { margin-top: auto; padding-top: 16px; }
.grp { display: flex; align-items: center; gap: 8px; }
.skip { position: absolute; top: 4px; right: 0; }
.picker .change { margin-left: auto; }
.status-row .act, .booking .act { margin-left: auto; }
.hours-list .sw { display: flex; align-items: center; height: 32px; }
.hours-list .ts { display: block; width: 148px; }
.hours-list .ib { display: flex; }
.hours-list .slot.extra .ib { margin-left: 12px; }
.phone-foot .spacer { flex: 1; }

/* S3a: product mẫu app tạo sẵn ("Appointment Test", Active) */
.sample-product { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; background: #efefef; border-radius: 12px; }
.sample-product img { flex: none; width: 40px; height: 40px; border-radius: 9px; }
.sample-product b { font-weight: 600; }
.phone .sample-product { margin-top: 12px; }

/* S3a và S3b dùng chung một kiểu thẻ sản phẩm (anh: "UI đang khác nhau à", 26/11) */
.picker { height: auto; min-height: 64px; margin-top: 12px; padding: 12px; gap: 10px; background: #efefef; border: 0; border-radius: 12px; box-shadow: none; }
.picker .picked { gap: 10px; }
.picker .picked s-thumbnail { --thumb: 40px; }
.picker .picked b, .sample-product b { font-weight: 600; }
.sample-product { min-height: 64px; }

/* S3b nhiều sản phẩm: chồng ảnh theo ProductGroup.scss của app booking (khung 70px, ảnh 2 lệch 20px, viền trắng 2px, phủ rgba(0,0,0,.42) + "+N") */
.picker .stack { position: relative; display: block; flex: none; width: 70px; height: 40px; }
.picker .stack .pg { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 8px; outline: 2px solid #fff; }
.picker .stack .pg + .pg { left: 20px; }
.picker .stack .pg-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(0, 0, 0, .42); color: #fff; font-size: 14px; font-weight: 600; }
