/* AsiatiK customer portal - same colours and fonts as the website (assets/css/site.css) */
@font-face { font-family: "Inter"; src: url(/assets/fonts/Inter-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/assets/fonts/InterDisplay-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
:root { --red: #c8161f; --ink: #17130f; --text: #17130f; --muted: #6b6259; --line: #e5dccf; --bg: #f7f3ec; --card: #fffdf9; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 15px/1.5 Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--text); background: var(--bg); overflow-y: auto; -webkit-text-size-adjust: 100%; }
.hidden { display: none !important; }
.screen.center { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 6px 20px rgba(16, 24, 40, .05); }
.login { width: min(420px, 100%); display: grid; gap: 12px; text-align: left; }
.login img { justify-self: center; max-width: 100%; height: auto; }
.login h1 { margin: 4px 0 0; font-size: 24px; }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid #d9cdbd; border-radius: 12px; background: #fff; color: var(--text); width: 100%; }
.pass { display: flex; gap: 6px; }
.pass button { border: 1px solid #d9cdbd; background: #fff; border-radius: 12px; padding: 0 12px; cursor: pointer; }
.primary, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 99px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { background: var(--red); color: #fff; border: 1px solid var(--red); }
.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.small { padding: 5px 10px; font-size: 12.5px; }
.wide { width: 100%; }
.msg { color: var(--red); min-height: 1.2em; font-weight: 600; }
.muted { color: var(--muted); }
.back { color: var(--muted); text-decoration: none; font-size: 13px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.top img { display: block; height: 44px; width: auto; }
.who { margin-left: auto; text-align: right; line-height: 1.2; }
.who small { display: block; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 18px; background: var(--card); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs button { flex: 0 0 auto; border: 0; background: #f3ece1; border-radius: 99px; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }
main { max-width: 1100px; margin: 0 auto; padding: 18px; display: grid; gap: 16px; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { display: grid; gap: 4px; }
.stat small { color: var(--muted); font-weight: 600; }
.stat b { font-size: 26px; }
.stat b.due { color: var(--red); }
.stat span { font-size: 12.5px; color: var(--muted); }
h1, h3 { font-family: "Inter Display", Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: -.02em; }
h3 { margin: 0 0 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.big { font-size: 22px; margin: 0; }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 10px 8px; border-bottom: 1px solid #f3ece1; vertical-align: top; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; background: #f3ece1; font-size: 12px; font-weight: 700; }
.chip.active, .chip.service_completed, .chip.paid { background: #e7f6ec; color: #1d7a3a; }
.chip.expired, .chip.cancelled { background: #fde2e5; color: #a1122b; }
.chip.scheduled { background: #e3ecff; color: #2449a8; }
.empty { padding: 18px; text-align: center; color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: end; }
.form .full { grid-column: 1 / -1; }
#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(440px, calc(100% - 24px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.toast.bad { background: var(--red); }
@media (max-width: 640px) {
  .top { padding: 8px 12px; } .top img { height: 36px; } .tabs { padding: 8px 12px; } main { padding: 12px; }
  thead { display: none; } table, tbody, tr, td { display: block; width: 100%; } tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 3px 4px; } td[data-l]:not([data-l=""])::before { content: attr(data-l) ': '; color: var(--muted); font-size: 12px; font-weight: 700; }
}
