/* Shared tokens + components (matches rpmavp.com) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/book/assets/fonts/inter-latin.woff2) format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/book/assets/fonts/sora-latin.woff2) format('woff2'); }

:root {
  --bg: #0b0d12; --bg-2: #11141b; --card: #161a23; --card-2: #1c212c;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #eef0f4; --muted: #9aa3b2; --faint: #6b7385;
  --red: #b3122f; --red-2: #e0344f; --red-soft: rgba(224,52,79,.14);
  --ok: #34c38f; --ok-soft: rgba(52,195,143,.14);
  --warn: #f2b84b; --warn-soft: rgba(242,184,75,.14);
  --radius: 16px; --radius-sm: 10px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
a { color: var(--red-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s; background: var(--red); color: #fff; min-height: 46px; }
.btn:hover { background: var(--red-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--card-2); }
.btn--sm { padding: 7px 14px; min-height: 34px; font-size: 13.5px; }
.btn--danger { background: transparent; border: 1px solid rgba(224,52,79,.5); color: var(--red-2); }
.btn--danger:hover { background: var(--red-soft); }
.btn--ok { background: #1f8f66; } .btn--ok:hover { background: #26a877; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; color: var(--text); font: inherit; transition: border-color .15s; }
.input:focus { outline: none; border-color: var(--red-2); }
textarea.input { min-height: 86px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--red-2); width: 16px; height: 16px; flex: none; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--card-2); color: var(--muted); white-space: nowrap; }
.badge--pending { background: var(--warn-soft); color: var(--warn); }
.badge--confirmed { background: var(--ok-soft); color: var(--ok); }
.badge--completed { background: rgba(120,140,255,.14); color: #9fb0ff; }
.badge--cancelled, .badge--declined { background: var(--red-soft); color: var(--red-2); }
.badge--no_show { background: rgba(255,255,255,.08); color: #d0d4dc; }

.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin: 0 0 14px; border: 1px solid var(--line); background: var(--card-2); }
.alert--error { border-color: rgba(224,52,79,.4); background: var(--red-soft); color: #ffd4db; }
.alert--warn { border-color: rgba(242,184,75,.35); background: var(--warn-soft); color: #ffe3ad; }
.alert--ok { border-color: rgba(52,195,143,.35); background: var(--ok-soft); color: #c6f5e1; }

.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line-2); border-top-color: var(--red-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; justify-content: center; padding: 40px 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #fff; color: #111; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 100; animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }

dialog { background: var(--card); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; width: min(460px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
dialog h3 { margin-top: 0; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
