/* Client portal pages (manage booking, invoice) */
:root { --ink: #070a1f; --ink-3: #1a2152; --porcelain: #f6f3ee; --paper: #fffdfa; --line: #e6e0d6; --text: #15182f; --muted: #5f6280; --champagne: #d9bf8c; --champagne-2: #b89755; --sapphire: #3557e6; --ok: #2f9e6e; --warn: #d08a1e; --bad: #c2415a;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Manrope", system-ui, "Segoe UI", sans-serif; --script: "Pinyon Script", cursive; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--porcelain); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.band { background: radial-gradient(700px 300px at 80% 0, #1d2a78, transparent 70%), var(--ink); color: #fff; padding: 26px 20px 120px; text-align: center; }
.band a { text-decoration: none; }
.band__script { font-family: var(--script); font-size: 3rem; line-height: 1; }
.band__sub { display: block; font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--champagne); margin-top: 4px; }
.wrap { max-width: 760px; margin: -90px auto 60px; padding: 0 16px; }
.card { background: var(--paper); border-radius: 26px; box-shadow: 0 30px 80px -30px rgba(7, 10, 31, .35); padding: clamp(22px, 5vw, 44px); margin-bottom: 18px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.05; margin: 0 0 8px; color: var(--ink); }
h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 0 0 12px; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #eee; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-pending { background: #fbf1dc; color: #9a6510; } .b-confirmed { background: #e1f3ea; color: #1f7a52; } .b-arrived, .b-in_session { background: #e3e9ff; color: #2d47c2; }
.b-completed { background: #ecebf2; color: #4a4f6e; } .b-cancelled, .b-no_show { background: #f8e3e8; color: #a3324a; }
.b-paid { background: #e1f3ea; color: #1f7a52; } .b-unpaid { background: #fbf1dc; color: #9a6510; } .b-partial { background: #e3e9ff; color: #2d47c2; } .b-void { background: #ecebf2; color: #6b6f8c; }
.rows { margin: 22px 0; border-top: 1px solid var(--line); }
.rows div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.track { display: flex; justify-content: space-between; margin: 26px 0 6px; position: relative; }
.track::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: var(--line); }
.track__fill { position: absolute; left: 12px; top: 11px; height: 2px; background: linear-gradient(90deg, var(--champagne), var(--sapphire)); }
.track span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .74rem; color: var(--muted); width: 25%; text-align: center; }
.track span::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.track span.on { color: var(--ink); font-weight: 600; }
.track span.on::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 5px var(--champagne); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--gold { background: linear-gradient(135deg, #ecd6a6, var(--champagne) 45%, #c4a466); color: var(--ink); }
.btn--line { background: #fff; border-color: #d3cdd9; color: var(--ink); }
.btn--danger { background: #fff; border-color: #ebc3cc; color: var(--bad); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.notice { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-size: .94rem; }
.notice--ok { background: #e1f3ea; color: #1b6646; }
.notice--bad { background: #f8e3e8; color: #8f2a40; }
.notice--info { background: #f8f2e4; color: #6c5522; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; }
.tab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid #ddd6ca; background: #fff; }
/* mini calendar */
.mcal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mcal__head b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.mcal__nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.mcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mcal__dow { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; }
.md { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: #fff; font-weight: 600; position: relative; }
.md::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; }
.md--open::after { background: var(--ok); } .md--limited::after { background: var(--warn); }
.md--full { background: #f6eef0; color: #b7a3ab; } .md--full::after { background: var(--bad); }
.md--closed, .md--past { background: transparent; color: #cbc7d4; }
.md.is-on { background: var(--ink); color: #fff; }
.md:disabled { cursor: default; }
.mslots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 16px; }
.ms { padding: 11px 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.ms small { display: block; font-weight: 500; font-size: .7rem; color: var(--ok); }
.ms:disabled { color: #bbb; text-decoration: line-through; background: #f7f5f5; }
.ms.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ms.is-on small { color: var(--champagne); }
/* invoice */
.inv__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.inv__from { font-size: .86rem; color: var(--muted); }
.inv__from b { display: block; color: var(--ink); font-size: 1rem; }
.inv__meta { text-align: right; font-size: .88rem; }
.inv__no { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
table.items { width: 100%; border-collapse: collapse; margin: 26px 0 10px; font-size: .95rem; }
table.items th { text-align: left; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 10px 6px; border-bottom: 2px solid var(--ink); }
table.items td { padding: 13px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.items .r { text-align: right; } table.items .c { text-align: center; }
.totals { margin-left: auto; width: min(320px, 100%); font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-size: 1.25rem; font-weight: 700; }
.totals .due { color: var(--bad); font-weight: 700; }
.pay { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; }
.qr { position: relative; width: 240px; aspect-ratio: 1; border-radius: 20px; padding: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.qr svg, .qr img { width: 100%; height: 100%; }
.qr__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--script); font-size: 1.6rem; box-shadow: 0 0 0 5px #fff; }
.pay__amount { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ink); margin: 6px 0 12px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stamp { display: inline-block; transform: rotate(-8deg); border: 3px solid var(--ok); color: var(--ok); padding: 6px 18px; border-radius: 10px; font-weight: 800; letter-spacing: .2em; font-size: 1.4rem; }
.paid-burst { text-align: center; padding: 20px 0; animation: pop .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.foot { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 24px; }
@media (max-width: 620px) { .actions .btn { flex: 1 1 auto; } .field input, .field select, .field textarea { font-size: 16px; } table.items { font-size: .86rem; } table.items th, table.items td { padding: 10px 3px; } .rows div { grid-template-columns: 1fr; gap: 2px; } .pay { grid-template-columns: 1fr; justify-items: center; text-align: center; } .inv__meta { text-align: left; } }
@media print {
  body { background: #fff; } .band { background: none; color: var(--ink); padding: 0 0 10px; } .band__sub { color: var(--champagne-2); }
  .wrap { margin: 0; max-width: none; } .card { box-shadow: none; padding: 0; } .no-print { display: none !important; }
}
