/* LeBookly phone app: light, rose-gold, big easy buttons. Made for phone screens. */
:root {
  --rose: #b9705a; --rose-d: #8f4f3d; --rose-l: #f6e3da; --blush: #fdf4f0; --ink: #2b211e; --muted: #8a7a75; --line: #eee5e1;
  --bg: #faf7f5; --white: #fff; --ok: #2f9e6b; --bad: #d14b4b; --r: 16px;
  --grad: linear-gradient(135deg, #e7a98c 0%, #c9826a 45%, #b9705a 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font: 15px/1.45 'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang SC', 'Noto Sans Thai', sans-serif; color: var(--ink); background: var(--bg); max-width: 560px; margin: 0 auto; min-height: 100vh; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 20px; font-weight: 700; } h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
a { color: var(--rose); text-decoration: none; }
svg { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 6px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(185, 112, 90, .28); }
.btn.primary:disabled { opacity: .45; box-shadow: none; }
.btn.danger { color: var(--bad); border-color: #f1d3d3; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.wide { display: flex; width: 100%; margin-top: 12px; }
.btn.small { min-height: 40px; margin-top: 8px; }
.ib { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer; }
.link { background: none; border: 0; color: var(--rose); font: inherit; font-weight: 600; padding: 10px 0; cursor: pointer; }

/* sign in */
.login { min-height: 100vh; padding: 48px 24px 30px; background: radial-gradient(circle at 15% 0%, #fbe1d5 0, transparent 50%), var(--blush); }
.login-logo { height: 44px; display: block; margin: 0 0 34px; }
.login h1 { font-size: 28px; margin-bottom: 8px; }
.login .btn { width: 100%; margin-top: 6px; }
.login .links { display: flex; justify-content: space-between; margin-top: 14px; }
.code-in { font-size: 26px; letter-spacing: 10px; text-align: center; }
.err { color: var(--bad); background: #fdeeee; padding: 12px 14px; border-radius: 12px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.login .langs a { padding: 8px 14px; border-radius: 20px; background: rgba(255, 255, 255, .7); color: var(--muted); font-size: 14px; }
.login .langs a.on { background: var(--ink); color: #fff; }

/* top bar + page + bottom tabs */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; min-height: 60px; padding: 8px 8px 8px 16px; background: rgba(250, 247, 245, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar:has(.ib:first-child) { padding-left: 4px; }
.bar h1 { flex: 1; font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.bar .salon { position: absolute; left: 16px; top: 4px; font-size: 11px; color: var(--muted); font-weight: 600; }
.bar .salon + h1 { text-align: left; padding-top: 10px; }
.ib-sp { width: 44px; flex: none; }
.salon + h1 + .ib-sp { display: none; }
.pg { padding: 4px 16px calc(110px + var(--safe-b)); }
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end;
  background: var(--white); border-top: 1px solid var(--line); padding: 6px 10px calc(8px + var(--safe-b)); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.tabs a.on { color: var(--rose); }
.tab-add { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--rose); cursor: pointer; }
.tab-add svg { width: 54px; height: 54px; padding: 15px; margin-top: -26px; border-radius: 50%; background: var(--grad); color: #fff; stroke-width: 2.4; box-shadow: 0 8px 18px rgba(185, 112, 90, .4); }

/* week strip + staff chips */
.week { display: flex; align-items: center; gap: 2px; margin: 2px -8px 10px; }
.wk-nav { width: 30px; height: 56px; display: grid; place-items: center; color: var(--muted); flex: none; }
.wd { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; border-radius: 14px; color: var(--ink); min-width: 0; }
.wd small { font-size: 11px; color: var(--muted); font-weight: 600; }
.wd b { font-size: 17px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.wd i { font-style: normal; font-size: 10px; height: 14px; color: var(--rose); font-weight: 700; }
.wd.now b { color: var(--rose); }
.wd.on b { background: var(--ink); color: #fff; }
.to-today { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px; background: var(--rose-l); margin-bottom: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sum { font-size: 13px; color: var(--muted); font-weight: 600; margin: 4px 0 10px; }

/* booking cards */
.list { display: flex; flex-direction: column; gap: 10px; }
.card { display: block; background: var(--white); border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(43, 33, 30, .05), 0 0 0 1px var(--line); }
.list .card { margin: 0; }
.card.ap, .card.grey { display: flex; gap: 14px; color: var(--ink); padding: 14px 14px 14px 0; position: relative; overflow: hidden; }
.card.ap::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.card.ap:active { transform: scale(.99); }
.tcol { width: 72px; flex: none; text-align: right; display: flex; flex-direction: column; }
.tcol b { font-size: 15px; } .tcol small { font-size: 12px; color: var(--muted); }
.body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl { font-size: 16px; }
.sv { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #ddd); margin-right: 3px; }
.card.grey { background: repeating-linear-gradient(135deg, #f6f1ef 0 8px, #f1ebe8 8px 16px); box-shadow: none; }
.card.grey .body b { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #6d5f5b; }
.card.grey .body b svg { width: 16px; height: 16px; }
.card.grey .ib { align-self: center; color: var(--muted); }
.card.st-completed, .card.st-no_show { opacity: .62; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #efe9e6; color: #6d5f5b; }
.pill.st-confirmed { background: #e4eefc; color: #2c5fa8; } .pill.st-arrived { background: #fff2d9; color: #9a6a00; }
.pill.st-started { background: #efe3fb; color: #6b3fa0; } .pill.st-completed { background: #e3f4ea; color: #23784f; }
.pill.st-cancelled, .pill.st-no_show { background: #fde6e6; color: #b23b3b; }
.empty { text-align: center; color: var(--muted); padding: 40px 0 10px; }
.empty > svg { width: 42px; height: 42px; color: #dccbc4; }
.empty .btn { margin-top: 10px; }
.loading { height: 120px; background: radial-gradient(circle, var(--rose) 3px, transparent 4px) center/18px 18px no-repeat; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* booking details */
.card.big { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--blush); box-shadow: 0 0 0 1px #f3dfd6; }
.when { display: flex; flex-direction: column; } .when b { font-size: 24px; } .when span { color: var(--muted); font-weight: 600; }
.by { width: 100%; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.two-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; }
.line span { display: flex; flex-direction: column; } .line small { font-size: 12px; color: var(--muted); }
.line b { display: flex; align-items: center; text-align: right; }
.line.tot b { font-size: 17px; }
.sts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-btn { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.st-btn.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.st-btn svg { width: 16px; height: 16px; }
.note { display: flex; gap: 8px; align-items: center; background: #f4efed; border-radius: 12px; padding: 12px 14px; color: #6d5f5b; font-size: 14px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { position: relative; padding: 0 0 14px 20px; display: flex; flex-direction: column; font-size: 14px; }
.hist li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.hist li:not(:last-child)::after { content: ''; position: absolute; left: 6.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.hist small { color: var(--muted); font-size: 12px; }

/* bottom sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(43, 33, 30, .35); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 22px 16px calc(16px + var(--safe-b)); animation: up .25s ease-out; }
.sheet h2 { margin-bottom: 14px; }
.sheet input { margin: 4px 0 4px; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(40px); opacity: .5; } }
.row-btn { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; margin-bottom: 8px; border: 0; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.row-btn svg { color: var(--rose); }
.row-btn > span:not(.ava):not(.box) { flex: 1; display: flex; flex-direction: column; }
.row-btn small { font-size: 13px; font-weight: 400; color: var(--muted); }
.ava { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }
.ava.big { width: 58px; height: 58px; font-size: 22px; }

/* date strip + time slots */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -16px; padding-left: 16px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.sd { flex: none; width: 58px; padding: 8px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.sd small { font-size: 11px; color: var(--muted); } .sd b { font-size: 19px; }
.sd.on { background: var(--ink); border-color: var(--ink); color: #fff; } .sd.on small { color: #d9cbc6; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.slots .muted, .slots .loading { grid-column: 1 / -1; }
.slot { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.slot.on { background: var(--grad); border-color: transparent; color: #fff; }

/* new booking steps */
.steps { list-style: none; display: flex; justify-content: space-between; margin: 0 0 16px; padding: 0; counter-reset: s; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line); }
.steps i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: 0 0 0 1.5px var(--line); font-size: 13px; }
.steps i svg { width: 15px; height: 15px; }
.steps li.on { color: var(--ink); } .steps li.on i { background: var(--ink); color: #fff; box-shadow: none; }
.steps li.done i { background: var(--rose-l); color: var(--rose); box-shadow: none; }
.wiz input[type=search] { margin: 0 0 12px; }
.wiz details.card { margin-top: 6px; }
.wiz summary { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--rose); list-style: none; cursor: pointer; }
.wiz summary::-webkit-details-marker { display: none; }
.wiz details[open] summary { margin-bottom: 14px; }
.cat { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; } .cat i { width: 10px; height: 10px; border-radius: 50%; }
.svc .box { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 1.5px solid #d8cbc6; display: grid; place-items: center; color: #fff; }
.svc .box svg { width: 16px; height: 16px; color: #fff; stroke-width: 2.6; }
.svc.on { box-shadow: 0 0 0 2px var(--rose); } .svc.on .box { background: var(--rose); border-color: var(--rose); }
.go-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 30; padding: 10px 16px calc(12px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, rgba(250, 247, 245, 0)); }
.go-bar:empty { display: none; }
.go-bar .btn { margin: 0; }

/* my profile */
.card.me { display: flex; align-items: center; gap: 14px; }
.card.me .muted { margin: 2px 0 0; font-size: 14px; word-break: break-all; }
.langs .lang { flex: 1 1 calc(50% - 8px); min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.card .langs { margin: 0; }
.langs .lang.on { border-color: var(--rose); background: var(--rose-l); color: var(--rose-d); }

/* toast */
.toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -30px); z-index: 99; max-width: 90%; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; transition: .25s; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.toast.bad { background: var(--bad); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* sign-up */
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.switch { margin-top: 22px; font-size: 15px; color: var(--muted); }
.switch a { font-weight: 700; }
.signup .small { margin-top: 12px; }
fieldset.types { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.types legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.tchip { display: inline-block; margin: 0 6px 8px 0; font-weight: 600; }
.tchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tchip span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--white); font-size: 15px; cursor: pointer; }
.tchip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.tchip input:focus-visible + span { outline: 2px solid var(--rose); }

/* set-up checklist on the schedule */
.setup { background: var(--blush); box-shadow: 0 0 0 1px #f3dfd6; }
.setup h2 { font-size: 18px; margin-bottom: 4px; }
.setup .pend { font-size: 13px; color: #9a6a00; background: #fff2d9; border-radius: 10px; padding: 8px 10px; margin: 8px 0 10px; }
.setup .live { font-size: 13px; color: #23784f; background: #e3f4ea; border-radius: 10px; padding: 8px 10px; margin: 8px 0 10px; }
.chk { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #f1dcd3; color: var(--ink); font-weight: 600; }
.chk:first-of-type { border-top: 0; }
.chk i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; background: var(--white); box-shadow: 0 0 0 1.5px #e7cfc5; color: var(--muted); }
.chk.done i { background: var(--ok); box-shadow: none; color: #fff; }
.chk.done span { color: var(--muted); text-decoration: line-through; }
.chk svg { width: 15px; height: 15px; }
.chk .go { margin-left: auto; color: var(--rose); }
.setup .share { display: flex; gap: 8px; margin-top: 6px; }
.setup .share input { margin: 0; font-size: 14px; }
.setup .share .btn { min-height: 46px; white-space: nowrap; }.setup { margin: 0 0 14px; display: block; }
.setup .link { margin-top: 10px; }

/* home-screen guide */
.home-guide > .muted { margin: 0 0 12px; }
.seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: #f1e6e1; border-radius: 14px; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.hs { margin-bottom: 12px; }
.hs-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.hs-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #fff; font-weight: 700; font-size: 16px; }
.hs-top p { margin: 4px 0 0; font-size: 16px; font-weight: 600; line-height: 1.45; }
.shot { display: block; width: 100%; height: auto; border-radius: 14px; overflow: hidden; background: #f6f1ee; }
.shot text { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang SC', 'Noto Sans Thai', sans-serif; }
.tap { fill: none; stroke: #e0553d; stroke-width: 3; }
.tap.anim { transform-box: fill-box; transform-origin: center; animation: tapring 1.4s ease-out infinite; }
@keyframes tapring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .tap.anim { display: none; } }
.home-guide .btn.wide { margin-top: 8px; }
