/* Axeclusive Booking Cloud — shared tokens & components */
:root {
  --ink: #1A1430;
  --ink-2: #2A2247;
  --ink-3: #3B3360;
  --ember: #FF5A1F;
  --ember-2: #FF7A45;
  --ember-soft: #FFE8DE;
  --mint: #17C3A2;
  --mint-soft: #DDF7F0;
  --saffron: #FFC145;
  --saffron-soft: #FFF3D6;
  --sky: #2F80ED;
  --sky-soft: #E1EDFD;
  --violet: #7C5CFF;
  --violet-soft: #ECE7FF;
  --rose: #E5484D;
  --rose-soft: #FDE4E5;
  --mist: #F4F3F8;
  --paper: #FFFFFF;
  --line: #E3E0EC;
  --line-2: #EEECF4;
  --muted: #6E6787;
  --text: #1A1430;
  --brand: var(--ember);
  --display: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-lift: 0 1px 0 rgba(26, 20, 48, .04), 0 12px 32px -12px rgba(26, 20, 48, .18);
  --shadow-pop: 0 30px 80px -20px rgba(26, 20, 48, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--ui); color: var(--text); background: var(--mist); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; background: var(--b); color: #fff; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s; white-space: nowrap; position: relative; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--b) 70%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-ink { --b: var(--ink); }
.btn-mint { --b: var(--mint); }
.btn-rose { --b: var(--rose); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn-soft { background: var(--ember-soft); color: #B43A0C; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 12px; }
.link { color: var(--brand); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Forms */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.help { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea { width: 100%; padding: 10px 13px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; min-height: 42px; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.input.is-error { border-color: var(--rose); }
.error-text { color: var(--rose); font-size: 12.5px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s var(--spring); }
.switch input:checked + .track { background: var(--mint); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--mint) 50%, transparent); outline-offset: 2px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-mint { background: var(--mint-soft); color: #0B7A65; }
.badge-saffron { background: var(--saffron-soft); color: #8A5A00; }
.badge-sky { background: var(--sky-soft); color: #1A5BB5; }
.badge-violet { background: var(--violet-soft); color: #5236D9; }
.badge-rose { background: var(--rose-soft); color: #B4232A; }
.badge-ink { background: var(--line-2); color: var(--ink-3); }

/* Alerts / flash */
.alert { padding: 12px 16px; border-radius: var(--r-md); font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { background: var(--rose-soft); color: #8E1C22; }
.alert-success { background: var(--mint-soft); color: #075E4E; }
.alert-info { background: var(--sky-soft); color: #164C96; }

/* Toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 1000; max-width: min(400px, calc(100vw - 36px)); }
.toast { background: var(--ink); color: #fff; padding: 13px 16px 13px 14px; border-radius: 16px; display: flex; gap: 11px; align-items: flex-start; box-shadow: var(--shadow-pop); animation: toast-in .5s var(--spring) both; font-size: 14px; }
.toast i { margin-top: 3px; }
.toast.success i { color: var(--mint); }
.toast.error i { color: #FF8A80; }
.toast.info i { color: var(--saffron); }
.toast.out { animation: toast-out .35s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper); position: sticky; top: 0; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FBFAFE; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { text-decoration: none; font-weight: 600; }
.table a.row-link:hover { color: var(--brand); }

.pager { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 0 4px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 13px; background: var(--paper); border: 1px solid var(--line); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Misc */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono-num { font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--ink-3); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty i { font-size: 34px; color: var(--line); margin-bottom: 12px; display: block; }
.empty h3 { color: var(--text); font-size: 19px; margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Installable app */
[hidden] { display: none !important; }
.pwa-sheet { position: fixed; inset: 0; z-index: 2000; background: rgba(26, 20, 48, .55); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; padding: 12px; animation: pwa-fade .25s both; }
.pwa-sheet.out { animation: pwa-fade .25s reverse forwards; }
.pwa-sheet-card { position: relative; width: min(440px, 100%); background: #fff; color: var(--ink); border-radius: 24px; padding: 26px 24px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-pop); animation: pwa-up .45s var(--spring) both; }
.pwa-sheet-card h3 { font-size: 21px; margin-bottom: 14px; }
.pwa-sheet-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pwa-sheet-card li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.pwa-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--mist); color: var(--sky); display: grid; place-items: center; flex: none; }
.pwa-ico svg { width: 20px; height: 20px; }
.pwa-x { position: absolute; top: 12px; right: 14px; border: 0; background: var(--mist); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes pwa-fade { from { opacity: 0; } }
@keyframes pwa-up { from { transform: translateY(40px); opacity: 0; } }
/* When opened from the home screen */
.is-app body { overscroll-behavior-y: none; }
.is-app .hide-in-app { display: none !important; }
