/* Pinkama design system v3: modern booking look (Geist, white base, rounded, springy motion) on the temple palette. */
@import url('/fonts/fonts.css');
:root {
  --limewash: #faf8f4; --paper: #ffffff; --soft: #f7f3ec; --white: #ffffff; --ink: #17130f; --stone: #7a7066; --stone2: #a69c91; --line: #ece4d8; --line2: #f3ede4; --field: #e2d8ca;
  --robe: #d4691f; --robe-dk: #b8561a; --robe-soft: #fcebdc; --maroon: #7a231c; --brass: #b08a4a; --leaf: #2f7a4f; --leaf-soft: #e2f2e8; --night: #0f0c0a;
  --blue: #2f5f8f; --blue-soft: #e5edf6; --wa: #1f9d5c; --bad: #a8322a; --bad-soft: #f8e3df;
  --serif: 'Geist', system-ui, sans-serif; --sans: 'Geist', system-ui, sans-serif; --siH: 'Abhaya Libre', 'Noto Sans Sinhala', serif; --si: 'Noto Sans Sinhala', 'Iskoola Pota', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 14px; --shadow: 0 1px 2px rgba(23,19,15,.04), 0 8px 24px -12px rgba(23,19,15,.16); --shadow2: 0 2px 4px rgba(23,19,15,.04), 0 24px 60px -24px rgba(23,19,15,.32);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--limewash); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--robe); outline-offset: 2px; }
[hidden] { display: none !important; }
.i { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.si { font-family: var(--si); } .siH { font-family: var(--siH); font-weight: 700; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.03em; }
h1, h2, h3 { letter-spacing: -.025em; }
.siH { font-weight: 800; }
.label { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin: 0; }
.muted { color: var(--stone); } .note { font-size: 13px; color: var(--stone); }
.err { color: var(--bad); font-weight: 600; font-size: 13.5px; margin: 0; }
.mono { font-family: ui-monospace, Consolas, monospace; }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fbf8f2; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, opacity .2s, transform .14s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn:hover { background: #2e2620; box-shadow: 0 10px 24px -14px rgba(23,19,15,.6); }
.btn.sec { background: transparent; color: var(--ink); border-color: #cfc3b2; } .btn.sec:hover { border-color: var(--ink); background: rgba(30,25,22,.03); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink); padding: 0 10px; } .btn.quiet:hover { background: rgba(30,25,22,.05); }
.btn.robe { background: var(--robe); border-color: var(--robe); } .btn.robe:hover { background: #ad5419; }
.btn.wa { background: var(--wa); border-color: var(--wa); } .btn.wa:hover { background: #167446; }
.btn.light { background: #fbf8f2; color: var(--ink); border-color: #fbf8f2; }
.btn.danger { background: transparent; color: var(--bad); border-color: #e3c3bd; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; } .btn.lg { min-height: 52px; font-size: 16px; padding: 0 24px; } .btn.wide { width: 100%; }
.btn[disabled], .btn.off { opacity: .35; pointer-events: none; }
.ib { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; transition: all .2s var(--ease); display: inline-grid; place-items: center; background: #fff; color: var(--ink); text-decoration: none; flex: none; }
.ib:hover { border-color: var(--ink); } .ib .i { width: 17px; height: 17px; } .ib.wa { color: var(--wa); } .ib.sms { color: var(--blue); }
/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #efe8dc; color: var(--stone); white-space: nowrap; }
.pill .i { width: 13px; height: 13px; }
.pill.ok { background: var(--leaf-soft); color: var(--leaf); } .pill.robe { background: var(--robe-soft); color: var(--robe-dk); } .pill.blue { background: var(--blue-soft); color: var(--blue); } .pill.brass { background: #f1e8d4; color: #7a5a14; }
/* Forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; } .field > span { font-size: 13px; font-weight: 600; } .field > span .si, .field > span .opt-t { font-weight: 500; color: var(--stone); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; border-radius: var(--r); background: #fff; padding: 10px 13px; font-size: 16px; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23,19,15,.06); }
.field input::placeholder { color: var(--stone2); }
.field .hint { font-size: 12.5px; color: var(--stone); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--ink); margin: 1px 0 0; flex: none; }
/* Surfaces */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.hair { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
/* Brand */
.bm { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 500; font-size: 20px; text-decoration: none; color: var(--ink); }
.bm img, .bm canvas { width: 36px; height: 36px; }
.lang { display: inline-flex; border: 0; border-radius: 999px; padding: 3px; overflow: hidden; font-size: 12.5px; font-weight: 600; background: var(--soft); }
.lang button { border: 0; background: none; padding: 4px 11px; min-height: 28px; border-radius: 999px; transition: all .2s var(--ease); } .lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
/* Availability calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal .wd { font-size: 11px; font-weight: 600; color: var(--stone); text-align: center; padding: 6px 0; letter-spacing: .04em; }
.cal .d { position: relative; border: 0; background: none; aspect-ratio: 1 / 1.02; min-height: 44px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 0; transition: background .24s var(--ease), color .24s, transform .24s var(--spring); }
.cal button.d:not([disabled]):hover { background: rgba(30,25,22,.05); }
.cal .d small { font-size: 10.5px; font-weight: 600; color: var(--leaf); }
.cal .d .dots { display: flex; gap: 3px; } .cal .d .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--leaf); animation: dotIn .4s var(--spring) both; }
@keyframes dotIn { from { transform: scale(0); } } .cal .d .dots i.x { background: transparent; box-shadow: inset 0 0 0 1px #c8bdaf; }
.cal .d.past, .cal .d.far { color: #c8bdaf; } .cal .d.full { color: var(--stone2); } .cal .d.full small { color: var(--stone2); }
.cal .d.closed small { color: var(--robe); }
.cal .d.today::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--robe); }
.cal .d.sp::before { content: ''; position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; border: 1.3px solid var(--brass); }
.cal .d.sel, .cal button.d.sel:hover { background: var(--ink); color: #fff; transform: scale(1.06); } .cal .d.sel small { color: #e9dcc6; } .cal .d.sel .dots i { background: #e9dcc6; } .cal .d.sel .dots i.x { background: transparent; box-shadow: inset 0 0 0 1px #8a7f73; }
.cal .e { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--stone); margin-top: 8px; } .legend span { display: inline-flex; align-items: center; gap: 5px; } .legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.mh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 6px; } .mh b { font-family: var(--serif); font-weight: 500; font-size: 20px; } .mh b.siH { font-family: var(--siH); font-weight: 700; }
.mh .nav { display: flex; gap: 6px; } .mh .nav button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; background: #fff; } .mh .nav button[disabled] { opacity: .3; }
/* Dana option row */
.opt { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 9px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; text-align: left; width: 100%; transition: border-color .24s, background .24s, transform .14s var(--ease); }
.opt:active { transform: scale(.98); }
button.opt:not([disabled]):hover { border-color: #b9ad9c; }
.opt img { width: 60px; height: 60px; object-fit: cover; border-radius: 13px; }
.opt b { display: block; font-size: 15px; font-weight: 600; } .opt .siH { display: block; font-size: 17px; line-height: 1.25; }
.opt .when { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--stone); margin-top: 2px; } .opt .when .i { width: 14px; height: 14px; }
.opt[disabled], .opt.taken { opacity: .5; cursor: default; } .opt.on { border-color: var(--robe); background: #fffaf5; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cbbfb0; flex: none; position: relative; } .radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--robe); transform: scale(0); transition: transform .24s var(--spring); }
.opt.on .radio { border-color: var(--robe); } .opt.on .radio::after { transform: scale(1); }
.sumbar { display: flex; gap: 12px; align-items: center; padding: 9px; border: 0; border-radius: 18px; background: var(--soft); }
.sumbar img { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; } .sumbar b { display: block; font-size: 14.5px; } .sumbar span { font-size: 12.5px; color: var(--stone); }
/* Ticket */
.ticket { background: #fff; border: 1px solid var(--line2); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow2); }
.ticket .tt { padding: 22px 18px 16px; text-align: center; } .ticket .tt img { width: 76px; height: 76px; margin: 0 auto; }
.ticket .tt .siH { font-size: 27px; color: var(--maroon); margin: 8px 0 0; } .ticket .tt p { margin: 2px 0 0; color: var(--stone); font-size: 13.5px; }
.ticket .perf { border-top: 1.5px dashed var(--line); position: relative; } .ticket .perf::before, .ticket .perf::after { content: ''; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--limewash); border: 1px solid var(--line); } .ticket .perf::before { left: -11px; } .ticket .perf::after { right: -11px; }
.ticket dl { margin: 0; padding: 14px 18px 18px; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 14px; } .ticket dt { color: var(--stone); } .ticket dd { margin: 0; text-align: right; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; animation: toastIn .45s var(--spring); font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.toast.bad { background: var(--bad); }
/* Auth pages */
.authw { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.authw .ph { position: relative; overflow: hidden; margin: 0; } .authw .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.authw .ph figcaption { position: absolute; left: 20px; bottom: 16px; color: #fff; font-size: 12px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.authw .fm { padding: 32px 48px; display: flex; flex-direction: column; } .authw .fm .in { margin: auto 0; max-width: 420px; width: 100%; padding: 24px 0; }
.authw h1 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; margin: 0; } .authw .siH { color: var(--maroon); font-size: 19px; margin: 4px 0 24px; }
@media (max-width: 860px) { .authw { grid-template-columns: 1fr; } .authw .ph { height: 180px; } .authw .fm { padding: 20px 18px 40px; } }

/* Printable server pages: roster, poster, slip */
body.plain { padding: 28px 16px; background: #fff; color: var(--ink); }
.roster { max-width: 940px; margin: 0 auto; }
.roster .rh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.roster .rh img { width: 48px; height: 48px; } .roster .rh .t { display: flex; gap: 12px; align-items: center; }
.roster h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; } .roster .rh .siH { font-size: 19px; color: var(--maroon); margin: 0; }
.roster .rm { text-align: right; } .roster .rm b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; } .roster .rm span { color: var(--stone); font-size: 13px; }
.roster table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.roster th { text-align: left; padding: 8px; font-size: 12px; border-bottom: 1px solid var(--ink); } .roster th small { display: block; font-weight: 500; color: var(--stone); font-family: var(--si); }
.roster td { border-bottom: 1px solid var(--line); padding: 7px 8px; vertical-align: top; } .roster td small { display: block; color: var(--stone); font-size: 11.5px; }
.roster td.d { white-space: nowrap; width: 120px; } .roster tr.sp td.d small { color: var(--brass); font-weight: 600; }
.roster .free { color: var(--leaf); } .roster .x { color: #bbb; } .roster .foot { color: var(--stone); font-size: 12px; margin-top: 12px; }
.poster { max-width: 560px; margin: 0 auto; text-align: center; border: 1px solid var(--ink); padding: 40px 32px; }
.poster .logo { width: 96px; height: 96px; margin: 0 auto 6px; }
.poster .big { font-family: var(--siH); font-weight: 800; font-size: 44px; color: var(--maroon); margin: 0; line-height: 1.15; }
.poster h1 { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.poster .tn { font-size: 18px; font-weight: 600; margin: 16px 0 0; } .poster .tn .si { font-family: var(--siH); font-weight: 700; font-size: 22px; }
.poster .qr { width: 280px; height: 280px; margin: 22px auto; } .poster .qr svg { width: 100%; height: 100%; }
.poster .how { color: var(--stone); margin: 4px 0; } .poster .url { font-weight: 600; word-break: break-all; } .poster .by { color: var(--stone2); font-size: 12px; margin-top: 18px; }
.slips { max-width: 520px; margin: 0 auto; }
.slip { border: 1px solid var(--ink); padding: 24px 26px; }
.slip .hd { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--ink); } .slip .hd img { width: 50px; height: 50px; }
.slip .hd .siH { font-size: 20px; line-height: 1.15; display: block; } .slip .hd small { display: block; color: var(--stone); font-size: 12px; } .slip .hd .no { margin-left: auto; font-size: 12px; color: var(--stone); }
.slip .ttl { text-align: center; margin: 18px 0 4px; } .slip .ttl .siH { font-size: 30px; color: var(--maroon); display: block; } .slip .ttl small { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--stone); }
.slip .big { text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 12px 0; } .slip .big .siH { font-size: 26px; display: block; } .slip .big b { display: block; font-size: 17px; font-family: var(--si); } .slip .big small { color: var(--stone); font-size: 12.5px; }
.slip dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13.5px; } .slip dt { color: var(--stone); } .slip dt .si { font-family: var(--si); } .slip dd { margin: 0; text-align: right; font-weight: 600; }
.slip .ft { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-top: 18px; padding-top: 12px; border-top: 1px dashed #cdbfab; } .slip .ft .siH { color: var(--robe); font-size: 19px; display: block; } .slip .ft small { display: block; color: var(--stone); font-size: 11px; }
.slip .qr { width: 76px; height: 76px; flex: none; } .slip .qr svg { width: 100%; height: 100%; }
.cut { text-align: center; color: var(--stone2); font-size: 12px; margin: 18px 0; white-space: nowrap; overflow: hidden; }
.stub { display: grid; gap: 2px; border: 1px dashed #b9a58f; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
@media print { .noprint { display: none !important; } body.plain { padding: 0; } @page { margin: 12mm; } * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } }
/* v3 motion helpers */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; display: inline-block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
