/* LUMA demo: a salon booking and loyalty app. Built to read as a native phone app: system font, tab bar, cards, sheets. */
:root {
  --bg: #f4f2ee; --card: #fff; --ink: #16161a; --muted: #7b7a84; --line: #e8e4dd;
  --acc: #e4572e; --acc-soft: #fde9e1; --ok: #1e9e6a; --ok-soft: #e2f5ec;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { background: #dedad3; }
body { font: 400 16px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; text-align: left; padding: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app { position: relative; max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--bg); overflow-x: hidden; }

/* fake system status bar: only inside the site's phone frame, a real phone already has one */
.sb { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 8px 26px 0; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.sb i { display: flex; gap: 6px; align-items: center; }
.sb svg { height: 12px; width: auto; fill: currentColor; }

.screen { padding: 8px 20px 112px; animation: in .5s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } }
.top { display: flex; align-items: center; gap: 12px; padding: 8px 0 18px; }
.ava { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: var(--line); }
.ava.me { display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 18px; }
.top small { display: block; color: var(--muted); font-size: 13px; }
.top b { font-size: 20px; letter-spacing: -.02em; }
.bell { margin-left: auto; position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bell::after { content: ""; position: absolute; top: 11px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); border: 2px solid var(--card); }
svg.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; padding: 6px 0 16px; }
h2 { font-size: 20px; letter-spacing: -.02em; font-weight: 700; margin: 26px 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
h2 button { font-size: 15px; font-weight: 600; color: var(--acc); }
.muted { color: var(--muted); }
.card { background: var(--card); border-radius: 24px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -16px rgba(0,0,0,.18); }
.press { transition: transform .3s var(--ease), opacity .3s var(--ease); }
.press:active { transform: scale(.97); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 600; font-size: 17px; }
.btn.soft { background: #efece6; color: var(--ink); }
.btn.acc { background: var(--acc); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn:focus-visible, button:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.row { display: flex; gap: 10px; }

/* hero: next visit */
.visit { background: var(--ink); color: #fff; }
.visit .tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 600; }
.visit h3 { font-size: 24px; letter-spacing: -.02em; margin: 12px 0 4px; }
.visit p { color: rgba(255,255,255,.7); font-size: 15px; }
.visit .who { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 15px; }
.visit .who .ava { width: 36px; height: 36px; }
.visit .btn { background: #fff; color: var(--ink); }
.visit .btn.soft { background: rgba(255,255,255,.14); color: #fff; }
.empty { position: relative; overflow: hidden; padding: 0; }
.empty .ph { display: block; height: 150px; }
.empty .in { padding: 16px 18px 18px; }
.empty h3 { font-size: 22px; letter-spacing: -.02em; }
.empty p { color: var(--muted); font-size: 15px; margin: 4px 0 14px; }

/* bonus strip */
.bon { display: flex; align-items: center; gap: 14px; margin-top: 12px; width: 100%; }
.bon .coin { width: 48px; height: 48px; border-radius: 16px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex: none; }
.bon b { font-size: 22px; letter-spacing: -.02em; }
.bar { height: 6px; border-radius: 99px; background: #efece6; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--acc); transition: transform .8s var(--ease); transform-origin: left; }

/* horizontal services */
.hs { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hs::-webkit-scrollbar { display: none; }
.svc { flex: 0 0 156px; scroll-snap-align: start; background: var(--card); border-radius: 22px; padding: 8px 8px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.svc .ph { display: block; height: 108px; border-radius: 16px; overflow: hidden; }
.svc b { display: block; font-size: 15px; line-height: 1.2; margin: 10px 6px 4px; letter-spacing: -.01em; }
.svc small { display: block; margin: 0 6px; color: var(--muted); font-size: 13px; }
.mast { display: flex; gap: 12px; }
.mast button { flex: 1; background: var(--card); border-radius: 22px; padding: 14px 8px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.mast .ava { width: 56px; height: 56px; margin: 0 auto 8px; }
.mast b { display: block; font-size: 14px; }
.mast small { color: var(--muted); font-size: 12px; }
.star { color: #e9a400; }
.offer { display: flex; gap: 14px; align-items: center; background: var(--acc-soft); margin-top: 26px; box-shadow: none; }
.offer b { font-size: 17px; letter-spacing: -.01em; }
.offer small { display: block; color: #8a4a36; font-size: 14px; margin-top: 2px; }
.offer .coin { width: 48px; height: 48px; border-radius: 16px; background: var(--acc); color: #fff; display: grid; place-items: center; flex: none; }

/* booking flow */
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.steps i.on { background: var(--ink); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 15px; font-weight: 600; height: 36px; }
.list { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--card); border-radius: 22px; padding: 10px; border: 2px solid transparent; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.opt.on { border-color: var(--ink); }
.opt .ph { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; flex: none; }
.opt .ava { width: 56px; height: 56px; margin: 4px; }
.opt b { display: block; font-size: 17px; letter-spacing: -.01em; }
.opt small { color: var(--muted); font-size: 14px; }
.opt .pr { margin-left: auto; padding-right: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 58px; height: 76px; border-radius: 20px; background: var(--card); text-align: center; display: grid; place-content: center; gap: 2px; }
.day small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.day b { font-size: 20px; }
.day.on { background: var(--ink); color: #fff; }
.day.on small { color: rgba(255,255,255,.65); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time { height: 50px; border-radius: 16px; background: var(--card); text-align: center; font-weight: 600; }
.time.on { background: var(--ink); color: #fff; }
.time[disabled] { opacity: .35; text-decoration: line-through; pointer-events: none; }
.sum { display: grid; gap: 14px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.sum div span { color: var(--muted); }
.sum div b { text-align: right; }
.sum hr { border: 0; border-top: 1px solid var(--line); }
.sum .tot b { font-size: 22px; letter-spacing: -.02em; }
.sw { display: flex; align-items: center; gap: 12px; width: 100%; }
.sw span { flex: 1; }
.sw small { display: block; color: var(--muted); font-size: 13px; }
.sw i { width: 52px; height: 32px; border-radius: 99px; background: #dcd8d0; position: relative; flex: none; transition: background .3s var(--ease); }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.sw.on i { background: var(--ok); }
.sw.on i::after { transform: translateX(20px); }
.cta { position: sticky; bottom: 96px; margin-top: 20px; }
.done { text-align: center; padding-top: 48px; }
.done .ok { width: 96px; height: 96px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; animation: pop .6s var(--ease) both; }
.done .ok svg { width: 44px; height: 44px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done p { color: var(--muted); margin: 0 auto 22px; max-width: 300px; }
.note { display: flex; gap: 12px; align-items: center; text-align: left; margin-bottom: 10px; box-shadow: none; }
.note .coin { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--acc-soft); color: var(--acc); }
.note.g .coin { background: var(--ok-soft); color: var(--ok); }
.note b { font-size: 15px; }
.note small { display: block; color: var(--muted); font-size: 13px; }

/* bonus screen */
.bcard { background: var(--ink); color: #fff; padding: 22px; }
.bcard small { color: rgba(255,255,255,.65); font-size: 14px; }
.bcard .n { font-size: 52px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.bcard .lv { display: flex; justify-content: space-between; font-size: 14px; margin-top: 16px; }
.bcard .bar { background: rgba(255,255,255,.16); }
.rows { padding: 4px 18px; }
.rows > * { display: flex; align-items: center; gap: 12px; padding: 14px 0; width: 100%; }
.rows > * + * { border-top: 1px solid var(--line); }
.rows span { flex: 1; }
.rows small { display: block; color: var(--muted); font-size: 13px; }
.rows .plus { font-weight: 700; color: var(--ok); white-space: nowrap; }
.rows .minus { font-weight: 700; color: var(--muted); white-space: nowrap; }
.rows .re { height: 34px; padding: 0 14px; border-radius: 99px; background: #efece6; font-size: 14px; font-weight: 600; flex: none; }
.prof { display: flex; align-items: center; gap: 14px; }
.prof .ava { width: 64px; height: 64px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 26px; font-weight: 700; }
.prof b { font-size: 22px; letter-spacing: -.02em; }

/* tab bar */
.tabs { position: fixed; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 430px); display: flex; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 249, 246, .86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tabs button { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 6px 0; color: #a3a1a8; font-size: 11px; font-weight: 600; transition: color .3s var(--ease); }
.tabs button.on { color: var(--ink); }
.tabs svg.ic { width: 25px; height: 25px; }
.tabs .mid { color: #fff; }
.tabs .mid span { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: var(--acc); box-shadow: 0 10px 20px -8px var(--acc); transition: transform .3s var(--ease); }
.tabs .mid:active span { transform: scale(.94); }
.tabs .mid em { font-style: normal; color: #a3a1a8; }
.tabs .mid.on em { color: var(--ink); }
.home-ind { position: fixed; z-index: 6; left: 50%; bottom: 6px; transform: translateX(-50%); width: 128px; height: 5px; border-radius: 99px; background: var(--ink); opacity: .85; pointer-events: none; }
.toast { position: fixed; z-index: 9; left: 50%; bottom: 104px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; animation: in .4s var(--ease) both; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .screen, .toast, .done .ok { animation: none; } .press, .bar i, .sw i, .sw i::after { transition: none; } }
