/* ==========================================================================
   AstuteStayCloud design system
   Centralised tokens · light/dark themes · glass surfaces · motion
   ========================================================================== */

:root {
  --sc-primary: #6366f1;
  --sc-primary-rgb: 99, 102, 241;
  --sc-secondary: #0ea5e9;
  --sc-gradient: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-secondary) 100%);
  --sc-bg: #f3f5fb;
  --sc-bg-accent: radial-gradient(1200px 600px at 100% -10%, rgba(var(--sc-primary-rgb), .08), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(14, 165, 233, .07), transparent 60%);
  --sc-surface: #ffffff;
  --sc-surface-2: #f8fafc;
  --sc-surface-3: #eef2f7;
  --sc-border: rgba(15, 23, 42, .08);
  --sc-border-strong: rgba(15, 23, 42, .14);
  --sc-text: #0f172a;
  --sc-text-2: #334155;
  --sc-muted: #64748b;
  --sc-glass: rgba(255, 255, 255, .72);
  --sc-glass-border: rgba(255, 255, 255, .6);
  --sc-radius-xs: 8px;
  --sc-radius-sm: 12px;
  --sc-radius: 16px;
  --sc-radius-lg: 20px;
  --sc-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --sc-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --sc-shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --sc-ring: 0 0 0 4px rgba(var(--sc-primary-rgb), .16);
  --sc-sidebar-w: 268px;
  --sc-sidebar-w-collapsed: 84px;
  --sc-topbar-h: 68px;
  --sc-ease: cubic-bezier(.2, .8, .2, 1);
  --sc-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Room / status palette (professional, consistent in both themes) */
  --st-available: #10b981;
  --st-occupied: #6366f1;
  --st-reserved: #f59e0b;
  --st-dirty: #ef4444;
  --st-cleaning: #0ea5e9;
  --st-inspected: #14b8a6;
  --st-outoforder: #64748b;
  --st-maintenance: #f97316;
  --st-blocked: #475569;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-border-radius: var(--sc-radius-sm);
  --bs-border-radius-lg: var(--sc-radius);
  --bs-primary: var(--sc-primary);
  --bs-primary-rgb: var(--sc-primary-rgb);
  --bs-link-color: var(--sc-primary);
  --bs-link-color-rgb: var(--sc-primary-rgb);
  --bs-body-bg: var(--sc-bg);
  --bs-body-color: var(--sc-text);
  --bs-border-color: var(--sc-border);
}

[data-bs-theme="dark"] {
  --sc-bg: #0a0f1e;
  --sc-bg-accent: radial-gradient(1200px 600px at 100% -10%, rgba(var(--sc-primary-rgb), .16), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(14, 165, 233, .10), transparent 60%);
  --sc-surface: #111827;
  --sc-surface-2: #0f172a;
  --sc-surface-3: #1e293b;
  --sc-border: rgba(148, 163, 184, .14);
  --sc-border-strong: rgba(148, 163, 184, .24);
  --sc-text: #e5e7eb;
  --sc-text-2: #cbd5e1;
  --sc-muted: #94a3b8;
  --sc-glass: rgba(15, 23, 42, .72);
  --sc-glass-border: rgba(148, 163, 184, .14);
  --sc-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --sc-shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --bs-body-bg: var(--sc-bg);
  --bs-body-color: var(--sc-text);
  --bs-border-color: var(--sc-border);
  --bs-secondary-bg: var(--sc-surface-3);
  --bs-tertiary-bg: var(--sc-surface-2);
}

/* --------------------------------------------------------------- base */
html { scroll-behavior: smooth; }
body {
  background: var(--sc-bg);
  background-image: var(--sc-bg-accent);
  background-attachment: fixed;
  color: var(--sc-text);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6, .sc-heading { font-family: "Plus Jakarta Sans", var(--bs-body-font-family); letter-spacing: -.02em; font-weight: 700; }
a { text-decoration: none; }
::selection { background: rgba(var(--sc-primary-rgb), .22); }
.text-muted, .sc-muted { color: var(--sc-muted) !important; }
.fw-semi { font-weight: 600; }
.small-caps { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--sc-muted); }
.tabular { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .28); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(100, 116, 139, .45); }

/* --------------------------------------------------------------- app loader */
.sc-loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: var(--sc-bg); transition: opacity .5s var(--sc-ease), visibility .5s;
}
.sc-loader.hidden { opacity: 0; visibility: hidden; }
.sc-loader-mark { position: relative; width: 84px; height: 84px; }
.sc-loader-mark span {
  position: absolute; inset: 0; border-radius: 26px; background: var(--sc-gradient);
  animation: sc-morph 1.6s var(--sc-ease) infinite;
}
.sc-loader-mark span:nth-child(2) { inset: 14px; border-radius: 18px; background: var(--sc-surface); animation-delay: .15s; }
.sc-loader-mark i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; color: var(--sc-primary); z-index: 2; }
.sc-loader-text { margin-top: 18px; font-weight: 700; letter-spacing: .02em; color: var(--sc-muted); text-align: center; }
.sc-loader-bar { width: 160px; height: 4px; border-radius: 4px; background: var(--sc-surface-3); overflow: hidden; margin: 12px auto 0; }
.sc-loader-bar::after { content: ""; display: block; height: 100%; width: 40%; background: var(--sc-gradient); border-radius: 4px; animation: sc-indeterminate 1.2s var(--sc-ease) infinite; }
@keyframes sc-morph { 0%, 100% { transform: rotate(0) scale(1); border-radius: 26px; } 50% { transform: rotate(90deg) scale(.92); border-radius: 40px; } }
@keyframes sc-indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* top progress bar for navigation / ajax */
.sc-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 3000; background: var(--sc-gradient); box-shadow: 0 0 12px rgba(var(--sc-primary-rgb), .6); transition: width .3s var(--sc-ease), opacity .3s; }

/* --------------------------------------------------------------- layout */
.sc-app { display: flex; min-height: 100vh; }
.sc-sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 1040; width: var(--sc-sidebar-w);
  display: flex; flex-direction: column; padding: 18px 14px;
  background: var(--sc-glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-inline-end: 1px solid var(--sc-border);
  transition: width .35s var(--sc-ease), transform .35s var(--sc-ease);
}
.sc-main { flex: 1; min-width: 0; margin-inline-start: var(--sc-sidebar-w); transition: margin .35s var(--sc-ease); display: flex; flex-direction: column; }
.sc-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; min-height: 56px; }
.sc-brand-logo { width: 42px; height: 42px; border-radius: 14px; background: var(--sc-gradient); display: grid; place-items: center; color: #fff; font-size: 1.3rem; flex-shrink: 0; box-shadow: 0 8px 20px rgba(var(--sc-primary-rgb), .35); overflow: hidden; }
.sc-brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sc-brand-text { line-height: 1.15; overflow: hidden; white-space: nowrap; }
.sc-brand-text strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.02rem; }
.sc-brand-text small { color: var(--sc-muted); font-size: .72rem; }
.sc-nav { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -6px; padding: 0 6px; }
.sc-nav-group { margin-bottom: 14px; }
.sc-nav-title { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sc-muted); padding: 6px 12px; font-weight: 700; white-space: nowrap; }
.sc-nav-link {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 12px;
  color: var(--sc-text-2); font-weight: 500; font-size: .92rem; white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--sc-ease);
}
.sc-nav-link i { font-size: 1.15rem; width: 24px; text-align: center; flex-shrink: 0; transition: transform .3s var(--sc-spring); }
.sc-nav-link:hover { background: rgba(var(--sc-primary-rgb), .08); color: var(--sc-primary); }
.sc-nav-link:hover i { transform: scale(1.12); }
.sc-nav-link.active { background: rgba(var(--sc-primary-rgb), .12); color: var(--sc-primary); font-weight: 600; }
.sc-nav-link.active::before { content: ""; position: absolute; inset-inline-start: -6px; top: 22%; bottom: 22%; width: 4px; border-radius: 4px; background: var(--sc-gradient); }
.sc-nav-link .badge { margin-inline-start: auto; }
.sc-sidebar-footer { padding-top: 12px; border-top: 1px solid var(--sc-border); }
.sc-collapse-btn { width: 100%; justify-content: center; }

body.sidebar-collapsed .sc-sidebar { width: var(--sc-sidebar-w-collapsed); }
body.sidebar-collapsed .sc-main { margin-inline-start: var(--sc-sidebar-w-collapsed); }
body.sidebar-collapsed .sc-brand-text, body.sidebar-collapsed .sc-nav-title, body.sidebar-collapsed .sc-nav-link span, body.sidebar-collapsed .sc-nav-link .badge { opacity: 0; width: 0; pointer-events: none; }
body.sidebar-collapsed .sc-nav-link { justify-content: center; }
body.sidebar-collapsed .sc-collapse-btn i { transform: rotate(180deg); }

.sc-topbar {
  position: sticky; top: 0; z-index: 1030; height: var(--sc-topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: var(--sc-glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--sc-border);
}
.sc-search-trigger {
  display: flex; align-items: center; gap: 10px; min-width: 300px; padding: 9px 14px; border-radius: 12px;
  background: var(--sc-surface-2); border: 1px solid var(--sc-border); color: var(--sc-muted); font-size: .9rem; transition: border-color .2s, box-shadow .2s;
}
.sc-search-trigger:hover { border-color: rgba(var(--sc-primary-rgb), .4); box-shadow: var(--sc-ring); color: var(--sc-text-2); }
.sc-kbd { font-family: ui-monospace, SFMono-Regular, monospace; font-size: .72rem; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--sc-border-strong); background: var(--sc-surface); color: var(--sc-muted); }
.sc-icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--sc-border);
  background: var(--sc-surface); color: var(--sc-text-2); font-size: 1.1rem; transition: transform .15s, background .2s, box-shadow .2s;
}
.sc-icon-btn:hover { background: var(--sc-surface-2); color: var(--sc-primary); box-shadow: var(--sc-shadow-sm); }
.sc-icon-btn:active { transform: scale(.94); }
.sc-dot { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: .68rem; font-weight: 700; background: #ef4444; color: #fff; display: grid; place-items: center; border: 2px solid var(--sc-surface); }
.sc-dot.pulse { animation: sc-pulse 1.8s infinite; }
@keyframes sc-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.sc-avatar { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; background: var(--sc-gradient); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.sc-avatar.lg { width: 72px; height: 72px; border-radius: 20px; font-size: 1.4rem; }
.sc-avatar.sm { width: 30px; height: 30px; border-radius: 10px; font-size: .72rem; }
.sc-mode-badge { font-size: .7rem; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }
.sc-mode-badge.test { background: rgba(245, 158, 11, .15); color: #b45309; border: 1px solid rgba(245, 158, 11, .35); }
.sc-mode-badge.live { background: rgba(16, 185, 129, .14); color: #047857; border: 1px solid rgba(16, 185, 129, .35); }
[data-bs-theme="dark"] .sc-mode-badge.test { color: #fbbf24; }
[data-bs-theme="dark"] .sc-mode-badge.live { color: #34d399; }

.sc-content { padding: 28px; flex: 1; }
.sc-footer { padding: 18px 28px; color: var(--sc-muted); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* page header */
.sc-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sc-page-header h1 { font-size: 1.65rem; margin: 0; }
.sc-page-header p { color: var(--sc-muted); margin: 4px 0 0; }
.sc-breadcrumb { font-size: .8rem; color: var(--sc-muted); margin-bottom: 6px; }
.sc-breadcrumb a { color: var(--sc-muted); }
.sc-breadcrumb a:hover { color: var(--sc-primary); }

/* --------------------------------------------------------------- motion */
.page-enter { animation: sc-page-in .5s var(--sc-ease) both; }
@keyframes sc-page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: sc-rise .55s var(--sc-ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; } .stagger > *:nth-child(2) { animation-delay: .06s; } .stagger > *:nth-child(3) { animation-delay: .10s; }
.stagger > *:nth-child(4) { animation-delay: .14s; } .stagger > *:nth-child(5) { animation-delay: .18s; } .stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(7) { animation-delay: .26s; } .stagger > *:nth-child(8) { animation-delay: .30s; } .stagger > *:nth-child(n+9) { animation-delay: .34s; }
@keyframes sc-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.fade-in { animation: sc-fade .35s ease both; }
@keyframes sc-fade { from { opacity: 0; } to { opacity: 1; } }
.flash { animation: sc-flash 1.2s var(--sc-ease); }
@keyframes sc-flash { 0% { box-shadow: 0 0 0 0 rgba(var(--sc-primary-rgb), .55); } 100% { box-shadow: 0 0 0 18px rgba(var(--sc-primary-rgb), 0); } }

/* --------------------------------------------------------------- cards */
.sc-card {
  background: var(--sc-surface); border: 1px solid var(--sc-border); border-radius: var(--sc-radius-lg); box-shadow: var(--sc-shadow);
  transition: transform .25s var(--sc-ease), box-shadow .25s var(--sc-ease), border-color .25s;
}
.sc-card.hover:hover, .sc-card.interactive:hover { transform: translateY(-3px); box-shadow: var(--sc-shadow-lg); border-color: rgba(var(--sc-primary-rgb), .25); }
.sc-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.sc-card-header h5, .sc-card-header h6 { margin: 0; font-size: 1rem; }
.sc-card-body { padding: 18px 22px 22px; }
.sc-glass { background: var(--sc-glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--sc-glass-border); }

/* KPI tiles */
.sc-kpi { position: relative; overflow: hidden; padding: 20px 22px; }
.sc-kpi-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; color: var(--kpi-color, var(--sc-primary)); background: color-mix(in srgb, var(--kpi-color, var(--sc-primary)) 14%, transparent); }
.sc-kpi-label { color: var(--sc-muted); font-size: .82rem; font-weight: 500; margin-top: 14px; }
.sc-kpi-value { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.2rem, .9rem + .9vw, 1.85rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; position: relative; z-index: 1; }
.sc-kpi-value.fs-4, .sc-kpi-value.fs-3 { font-size: clamp(1.1rem, .85rem + .7vw, 1.5rem) !important; }
.sc-kpi-icon, .sc-kpi-label, .sc-kpi-foot { position: relative; z-index: 1; }
.sc-kpi-foot { font-size: .78rem; color: var(--sc-muted); margin-top: 4px; }
.sc-kpi::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; inset-inline-end: -40px; top: -50px; background: color-mix(in srgb, var(--kpi-color, var(--sc-primary)) 10%, transparent); transition: transform .5s var(--sc-ease); }
.sc-kpi:hover::after { transform: scale(1.25); }
.sc-hero {
  position: relative; overflow: hidden; color: #fff; border: 0; background: var(--sc-gradient);
  box-shadow: 0 20px 50px rgba(var(--sc-primary-rgb), .35);
}
.sc-hero::before, .sc-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.sc-hero::before { width: 320px; height: 320px; inset-inline-end: -80px; top: -140px; animation: sc-float 9s ease-in-out infinite; }
.sc-hero::after { width: 200px; height: 200px; inset-inline-end: 160px; bottom: -120px; animation: sc-float 11s ease-in-out infinite reverse; }
@keyframes sc-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 18px); } }
.sc-hero .text-muted { color: rgba(255, 255, 255, .8) !important; }

/* --------------------------------------------------------------- buttons & inputs */
.btn { border-radius: 12px; font-weight: 600; padding: .55rem 1rem; transition: transform .12s ease, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-sm { border-radius: 10px; padding: .35rem .7rem; }
.btn-lg { border-radius: 14px; padding: .75rem 1.3rem; }
.btn-primary { --bs-btn-bg: var(--sc-primary); --bs-btn-border-color: var(--sc-primary); --bs-btn-hover-bg: color-mix(in srgb, var(--sc-primary) 88%, #000); --bs-btn-hover-border-color: transparent; --bs-btn-active-bg: color-mix(in srgb, var(--sc-primary) 80%, #000); --bs-btn-disabled-bg: var(--sc-primary); --bs-btn-disabled-border-color: var(--sc-primary); box-shadow: 0 6px 16px rgba(var(--sc-primary-rgb), .28); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(var(--sc-primary-rgb), .38); }
.btn-gradient { background: var(--sc-gradient); color: #fff; border: 0; box-shadow: 0 8px 22px rgba(var(--sc-primary-rgb), .35); }
.btn-gradient:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 12px 28px rgba(var(--sc-primary-rgb), .45); }
.btn-soft { background: rgba(var(--sc-primary-rgb), .1); color: var(--sc-primary); border: 0; }
.btn-soft:hover { background: rgba(var(--sc-primary-rgb), .18); color: var(--sc-primary); }
.btn-ghost { background: transparent; border: 1px solid var(--sc-border-strong); color: var(--sc-text-2); }
.btn-ghost:hover { background: var(--sc-surface-2); color: var(--sc-text); border-color: var(--sc-border-strong); }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }
.btn.loading { pointer-events: none; opacity: .85; }

.form-control, .form-select { border-radius: 12px; border-color: var(--sc-border-strong); background-color: var(--sc-surface); padding: .6rem .85rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--sc-primary-rgb), .6); box-shadow: var(--sc-ring); background-color: var(--sc-surface); }
.form-control-sm, .form-select-sm { border-radius: 10px; padding: .35rem .6rem; }
.form-label { font-size: .82rem; font-weight: 600; color: var(--sc-text-2); margin-bottom: .35rem; }
.form-text { color: var(--sc-muted); }
.form-floating > .form-control, .form-floating > .form-select { border-radius: 14px; }
.form-check-input:checked { background-color: var(--sc-primary); border-color: var(--sc-primary); }
.form-check-input:focus { box-shadow: var(--sc-ring); }
.input-group-text { border-radius: 12px; background: var(--sc-surface-2); border-color: var(--sc-border-strong); color: var(--sc-muted); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--sc-muted); pointer-events: none; }
.input-icon > .form-control { padding-inline-start: 2.4rem; }
.sc-section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sc-muted); font-weight: 700; margin: 18px 0 10px; }

/* --------------------------------------------------------------- tables */
.sc-table-wrap { border-radius: var(--sc-radius-lg); border: 1px solid var(--sc-border); background: var(--sc-surface); box-shadow: var(--sc-shadow); overflow: hidden; }
.sc-table-scroll { overflow: auto; max-height: 70vh; }
.sc-table { margin: 0; --bs-table-bg: transparent; --bs-table-hover-bg: rgba(var(--sc-primary-rgb), .04); }
.sc-table thead th { position: sticky; top: 0; z-index: 2; background: var(--sc-surface-2); color: var(--sc-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-bottom: 1px solid var(--sc-border); padding: 12px 16px; white-space: nowrap; }
.sc-table tbody td { padding: 13px 16px; vertical-align: middle; border-color: var(--sc-border); color: var(--sc-text-2); }
.sc-table tbody tr { transition: background .15s; }
.sc-table tbody tr:last-child td { border-bottom: 0; }
.sc-table a.row-link { color: var(--sc-text); font-weight: 600; }
.sc-table a.row-link:hover { color: var(--sc-primary); }
.sc-table-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--sc-border); }
.sc-pagination { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--sc-border); font-size: .85rem; color: var(--sc-muted); flex-wrap: wrap; gap: 8px; }
.sort-link { color: inherit; }
.sort-link:hover { color: var(--sc-primary); }

/* --------------------------------------------------------------- badges / status */
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 8px; padding: .38em .62em; }
.sc-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pill, var(--sc-primary)) 13%, transparent); color: color-mix(in srgb, var(--pill, var(--sc-primary)) 85%, var(--sc-text)); white-space: nowrap; }
.sc-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pill, var(--sc-primary)); }
.sc-pill.no-dot::before { display: none; }
.st-Available { --pill: var(--st-available); --st: var(--st-available); }
.st-Occupied { --pill: var(--st-occupied); --st: var(--st-occupied); }
.st-Reserved { --pill: var(--st-reserved); --st: var(--st-reserved); }
.st-Dirty { --pill: var(--st-dirty); --st: var(--st-dirty); }
.st-Cleaning { --pill: var(--st-cleaning); --st: var(--st-cleaning); }
.st-Inspected { --pill: var(--st-inspected); --st: var(--st-inspected); }
.st-OutOfOrder { --pill: var(--st-outoforder); --st: var(--st-outoforder); }
.st-Maintenance { --pill: var(--st-maintenance); --st: var(--st-maintenance); }
.st-Blocked { --pill: var(--st-blocked); --st: var(--st-blocked); }
.st-Clean { --pill: var(--st-available); }
/* reservation & generic */
.rs-Inquiry { --pill: #8b5cf6; } .rs-Confirmed { --pill: #6366f1; } .rs-Tentative { --pill: #f59e0b; } .rs-CheckedIn { --pill: #10b981; }
.rs-CheckedOut { --pill: #64748b; } .rs-Cancelled { --pill: #ef4444; } .rs-NoShow { --pill: #be123c; }
.ps-Unpaid { --pill: #ef4444; } .ps-Partial { --pill: #f59e0b; } .ps-Paid { --pill: #10b981; } .ps-Refunded { --pill: #64748b; }
.pr-Low { --pill: #64748b; } .pr-Normal { --pill: #0ea5e9; } .pr-High { --pill: #f97316; } .pr-Urgent { --pill: #ef4444; }
.ts-Pending { --pill: #f59e0b; } .ts-InProgress { --pill: #0ea5e9; } .ts-Completed { --pill: #10b981; } .ts-Inspected { --pill: #14b8a6; } .ts-Cancelled { --pill: #64748b; }
.ms-Open { --pill: #ef4444; } .ms-Assigned { --pill: #8b5cf6; } .ms-InProgress { --pill: #0ea5e9; } .ms-Waiting { --pill: #f59e0b; } .ms-Completed { --pill: #10b981; } .ms-Cancelled { --pill: #64748b; }
.os-New { --pill: #ef4444; } .os-Accepted { --pill: #8b5cf6; } .os-Preparing { --pill: #f59e0b; } .os-Ready { --pill: #10b981; } .os-Delivered { --pill: #64748b; } .os-Cancelled { --pill: #94a3b8; }
.at-Present { --pill: #10b981; } .at-Absent { --pill: #ef4444; } .at-HalfDay { --pill: #f59e0b; } .at-Leave { --pill: #8b5cf6; } .at-Holiday { --pill: #0ea5e9; } .at-WeeklyOff { --pill: #94a3b8; }
.gc-VIP { --pill: #f59e0b; } .gc-Corporate { --pill: #0ea5e9; } .gc-Blacklisted { --pill: #ef4444; } .gc-Regular { --pill: #64748b; } .gc-TravelAgent { --pill: #8b5cf6; } .gc-Other { --pill: #94a3b8; }

/* --------------------------------------------------------------- room board */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
.room-card {
  position: relative; overflow: hidden; cursor: pointer; padding: 16px; border-radius: 18px; background: var(--sc-surface); border: 1px solid var(--sc-border);
  box-shadow: var(--sc-shadow); transition: transform .25s var(--sc-ease), box-shadow .25s, border-color .3s, background .4s;
}
.room-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--st); transition: background .4s; }
.room-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--st) 9%, transparent), transparent 55%); pointer-events: none; transition: background .4s; }
.room-card:hover { transform: translateY(-4px); box-shadow: var(--sc-shadow-lg); border-color: color-mix(in srgb, var(--st) 45%, transparent); }
.room-card .room-no { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.room-card .room-type { color: var(--sc-muted); font-size: .78rem; font-weight: 500; }
.room-card .room-guest { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--sc-border-strong); font-size: .82rem; min-height: 46px; }
.room-card .room-price { font-weight: 700; font-size: .85rem; }
.room-card .room-actions { position: absolute; inset-inline-end: 10px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(6px); transition: all .25s var(--sc-ease); z-index: 2; }
.room-card:hover .room-actions { opacity: 1; transform: none; }
.room-card .hk-chip { font-size: .7rem; color: var(--sc-muted); display: inline-flex; align-items: center; gap: 4px; }
.room-card.status-changed { animation: sc-flash 1.2s var(--sc-ease), sc-pop .5s var(--sc-spring); }
@keyframes sc-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
.room-card.sortable-ghost { opacity: .35; }
.room-card.sortable-chosen { box-shadow: var(--sc-shadow-lg); transform: rotate(-1.2deg) scale(1.02); }
.status-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.status-filter { cursor: pointer; border: 1px solid transparent; transition: border-color .2s, transform .15s; }
.status-filter:hover { transform: translateY(-1px); }
.status-filter.active { border-color: var(--pill); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pill) 18%, transparent); }

/* --------------------------------------------------------------- timeline / reservation calendar */
.tl-wrap { position: relative; overflow: auto; border-radius: var(--sc-radius-lg); border: 1px solid var(--sc-border); background: var(--sc-surface); box-shadow: var(--sc-shadow); max-height: 72vh; }
.tl-grid { position: relative; display: grid; min-width: max-content; }
.tl-head, .tl-row { display: grid; grid-template-columns: 170px repeat(var(--days), var(--cell)); }
.tl-head { position: sticky; top: 0; z-index: 5; background: var(--sc-surface-2); border-bottom: 1px solid var(--sc-border); }
.tl-head .tl-day { padding: 8px 2px; text-align: center; font-size: .72rem; color: var(--sc-muted); border-inline-start: 1px solid var(--sc-border); line-height: 1.2; }
.tl-head .tl-day strong { display: block; font-size: .9rem; color: var(--sc-text); }
.tl-head .tl-day.today { background: rgba(var(--sc-primary-rgb), .1); color: var(--sc-primary); }
.tl-head .tl-day.weekend, .tl-cell.weekend { background: color-mix(in srgb, var(--sc-surface-3) 55%, transparent); }
.tl-room { position: sticky; inset-inline-start: 0; z-index: 4; background: var(--sc-surface); padding: 0 14px; display: flex; flex-direction: column; justify-content: center; border-inline-end: 1px solid var(--sc-border); border-bottom: 1px solid var(--sc-border); height: 52px; }
.tl-room strong { font-size: .92rem; }
.tl-room small { color: var(--sc-muted); font-size: .72rem; }
.tl-cell { border-inline-start: 1px solid var(--sc-border); border-bottom: 1px solid var(--sc-border); height: 52px; transition: background .15s; }
.tl-cell:hover { background: rgba(var(--sc-primary-rgb), .06); cursor: copy; }
.tl-cell.today { background: rgba(var(--sc-primary-rgb), .05); }
.tl-cell.drop-ok { background: rgba(16, 185, 129, .16) !important; }
.tl-cell.drop-bad { background: rgba(239, 68, 68, .14) !important; }
.tl-floor { grid-column: 1 / -1; padding: 6px 14px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--sc-muted); background: var(--sc-surface-2); border-bottom: 1px solid var(--sc-border); position: sticky; inset-inline-start: 0; }
.tl-bar {
  position: absolute; height: 40px; border-radius: 12px; padding: 4px 10px; color: #fff; font-size: .76rem; line-height: 1.25; overflow: hidden; white-space: nowrap; cursor: grab; z-index: 3;
  background: var(--bar, var(--sc-primary)); box-shadow: 0 6px 16px color-mix(in srgb, var(--bar, var(--sc-primary)) 40%, transparent);
  transition: left .35s var(--sc-ease), top .35s var(--sc-ease), width .35s var(--sc-ease), box-shadow .2s, transform .15s; user-select: none;
}
.tl-bar strong { display: block; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
.tl-bar:hover { transform: translateY(-1px); box-shadow: 0 10px 22px color-mix(in srgb, var(--bar, var(--sc-primary)) 55%, transparent); }
.tl-bar.dragging { cursor: grabbing; opacity: .9; transition: none; z-index: 10; box-shadow: var(--sc-shadow-lg); }
.tl-bar .tl-resize { position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35)); }
.tl-bar.rs-Confirmed { --bar: #6366f1; } .tl-bar.rs-CheckedIn { --bar: #10b981; } .tl-bar.rs-Tentative { --bar: #f59e0b; } .tl-bar.rs-Inquiry { --bar: #8b5cf6; } .tl-bar.rs-CheckedOut { --bar: #94a3b8; }
.tl-bar.has-balance::after { content: ""; position: absolute; top: 6px; inset-inline-end: 12px; width: 7px; height: 7px; border-radius: 50%; background: #fde047; box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); }
.tl-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--sc-primary); z-index: 2; opacity: .5; pointer-events: none; }

/* --------------------------------------------------------------- POS / kitchen */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.pos-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pos-cat { white-space: nowrap; }
.pos-cat.active { background: var(--sc-primary); color: #fff; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.menu-tile { padding: 14px; border-radius: 16px; background: var(--sc-surface); border: 1px solid var(--sc-border); cursor: pointer; transition: transform .2s var(--sc-ease), box-shadow .2s, border-color .2s; position: relative; min-height: 118px; display: flex; flex-direction: column; }
.menu-tile:hover { transform: translateY(-3px); box-shadow: var(--sc-shadow-lg); border-color: rgba(var(--sc-primary-rgb), .35); }
.menu-tile:active { transform: scale(.97); }
.menu-tile .veg { width: 14px; height: 14px; border: 2px solid #16a34a; border-radius: 3px; display: inline-grid; place-items: center; }
.menu-tile .veg::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.menu-tile .veg.non { border-color: #b91c1c; } .menu-tile .veg.non::after { background: #b91c1c; }
.menu-tile.unavailable { opacity: .45; pointer-events: none; }
.menu-tile .price { margin-top: auto; font-weight: 700; color: var(--sc-primary); }
.cart { position: sticky; top: calc(var(--sc-topbar-h) + 16px); }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--sc-border-strong); animation: sc-rise .3s var(--sc-ease); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--sc-border-strong); border-radius: 10px; overflow: hidden; }
.qty button { border: 0; background: transparent; width: 28px; height: 28px; color: var(--sc-text-2); }
.qty button:hover { background: var(--sc-surface-2); color: var(--sc-primary); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .85rem; }
.table-tile { border-radius: 16px; padding: 14px; text-align: center; border: 2px solid var(--sc-border); background: var(--sc-surface); cursor: pointer; transition: all .2s var(--sc-ease); }
.table-tile:hover { transform: translateY(-2px); box-shadow: var(--sc-shadow); }
.table-tile.Free { border-color: rgba(16, 185, 129, .45); }
.table-tile.Occupied { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .05); }
.table-tile.Reserved { border-color: rgba(245, 158, 11, .5); }
.table-tile.selected { box-shadow: var(--sc-ring); border-color: var(--sc-primary); }
.kds-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.kds-col { background: var(--sc-surface-2); border-radius: 18px; padding: 12px; min-height: 60vh; border: 1px solid var(--sc-border); }
.kds-col h6 { display: flex; justify-content: space-between; align-items: center; margin: 4px 6px 12px; }
.kds-ticket { background: var(--sc-surface); border-radius: 14px; padding: 12px; margin-bottom: 12px; box-shadow: var(--sc-shadow); border-top: 4px solid var(--pill); animation: sc-rise .4s var(--sc-ease); }
.kds-ticket.late { box-shadow: 0 0 0 2px rgba(239, 68, 68, .5), var(--sc-shadow); }

/* --------------------------------------------------------------- misc components */
.sc-empty { text-align: center; padding: 48px 20px; color: var(--sc-muted); }
.sc-empty .sc-empty-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; font-size: 2rem; background: rgba(var(--sc-primary-rgb), .1); color: var(--sc-primary); animation: sc-float 6s ease-in-out infinite; }
.sc-empty h6 { color: var(--sc-text); }
.skeleton { position: relative; overflow: hidden; background: var(--sc-surface-3); border-radius: 10px; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: sc-shimmer 1.4s infinite; }
[data-bs-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); }
@keyframes sc-shimmer { 100% { transform: translateX(100%); } }
.sc-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sc-border); }
.sc-list-item:last-child { border-bottom: 0; }
.sc-progress-ring { --p: 0; --c: var(--sc-primary); width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--sc-surface-3) 0); transition: --p 1s; position: relative; }
.sc-progress-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--sc-surface); }
.sc-progress-ring > * { position: relative; font-weight: 800; font-size: 1.2rem; }
.progress { border-radius: 999px; background: var(--sc-surface-3); height: 8px; }
.progress-bar { background: var(--sc-gradient); border-radius: 999px; transition: width 1.2s var(--sc-ease); }
.nav-pills.sc-tabs { gap: 6px; background: var(--sc-surface-2); padding: 5px; border-radius: 14px; border: 1px solid var(--sc-border); display: inline-flex; flex-wrap: wrap; }
.nav-pills.sc-tabs .nav-link { border-radius: 10px; color: var(--sc-text-2); font-weight: 600; font-size: .88rem; padding: .45rem .9rem; }
.nav-pills.sc-tabs .nav-link.active { background: var(--sc-surface); color: var(--sc-primary); box-shadow: var(--sc-shadow-sm); }
.media-thumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--sc-surface-3); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sc-ease); }
.media-thumb:hover img { transform: scale(1.06); }
.media-thumb .media-actions { position: absolute; inset: auto 8px 8px 8px; display: flex; gap: 6px; justify-content: flex-end; opacity: 0; transition: opacity .2s; }
.media-thumb:hover .media-actions { opacity: 1; }
.dropzone { border: 2px dashed var(--sc-border-strong); border-radius: 18px; padding: 28px; text-align: center; color: var(--sc-muted); transition: all .2s; cursor: pointer; background: var(--sc-surface-2); }
.dropzone.over, .dropzone:hover { border-color: var(--sc-primary); background: rgba(var(--sc-primary-rgb), .05); color: var(--sc-primary); }
.signature-pad { width: 100%; height: 170px; border-radius: 14px; border: 1px dashed var(--sc-border-strong); background: var(--sc-surface-2); touch-action: none; cursor: crosshair; }
.camera-box { border-radius: 14px; overflow: hidden; background: #0f172a; aspect-ratio: 4/3; display: grid; place-items: center; color: #94a3b8; }
.camera-box video, .camera-box img { width: 100%; height: 100%; object-fit: cover; }
.sc-steps { display: flex; gap: 10px; flex-wrap: wrap; }
.sc-step { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--sc-muted); font-weight: 600; }
.sc-step b { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--sc-surface-3); color: var(--sc-muted); }
.sc-step.active b { background: var(--sc-gradient); color: #fff; }
.sc-step.active { color: var(--sc-text); }
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 200px; }
.att-grid td, .att-grid th { padding: 6px 4px !important; text-align: center; font-size: .72rem; min-width: 26px; }
.att-cell { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-weight: 700; color: #fff; font-size: .65rem; }
.att-Present { background: #10b981; } .att-Absent { background: #ef4444; } .att-HalfDay { background: #f59e0b; } .att-Leave { background: #8b5cf6; } .att-Holiday { background: #0ea5e9; } .att-WeeklyOff { background: #94a3b8; } .att-none { background: var(--sc-surface-3); color: var(--sc-muted); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cp-tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px; color: var(--sc-text); }
.cp-tile i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; background: rgba(var(--sc-primary-rgb), .1); color: var(--sc-primary); flex-shrink: 0; transition: transform .3s var(--sc-spring); }
.cp-tile:hover i { transform: rotate(-8deg) scale(1.1); }
.cp-tile small { color: var(--sc-muted); display: block; }

/* --------------------------------------------------------------- dropdowns, modals, toasts, offcanvas */
.dropdown-menu { border-radius: 16px; border: 1px solid var(--sc-border); box-shadow: var(--sc-shadow-lg); padding: 6px; background: var(--sc-surface); }
.dropdown-menu.show { animation: sc-drop .22s var(--sc-ease); }
@keyframes sc-drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.dropdown-item { border-radius: 10px; padding: .5rem .75rem; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.dropdown-item i { color: var(--sc-muted); width: 18px; text-align: center; }
.dropdown-item:hover i, .dropdown-item.active i { color: inherit; }
.dropdown-item.active, .dropdown-item:active { background: rgba(var(--sc-primary-rgb), .12); color: var(--sc-primary); }
.modal { --bs-modal-border-radius: 22px; }
.modal-content { border-radius: 22px; border: 1px solid var(--sc-border); background: var(--sc-surface); box-shadow: var(--sc-shadow-lg); }
.modal-backdrop.show { opacity: .35; backdrop-filter: blur(4px); }
.modal.fade .modal-dialog { transform: scale(.94) translateY(10px); transition: transform .3s var(--sc-spring), opacity .2s; }
.modal.show .modal-dialog { transform: none; }
.modal-header { border-bottom: 1px solid var(--sc-border); padding: 18px 22px; }
.modal-footer { border-top: 1px solid var(--sc-border); padding: 14px 22px; }
.modal-body { padding: 20px 22px; }
.offcanvas { background: var(--sc-surface); border-color: var(--sc-border) !important; }
.offcanvas.offcanvas-end { border-radius: 22px 0 0 22px; width: 420px; }
.sc-toasts { position: fixed; top: 82px; inset-inline-end: 22px; z-index: 2100; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.sc-toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--sc-surface); border: 1px solid var(--sc-border);
  box-shadow: var(--sc-shadow-lg); animation: sc-toast-in .45s var(--sc-spring); position: relative; overflow: hidden;
}
.sc-toast.out { animation: sc-toast-out .3s ease forwards; }
.sc-toast i { font-size: 1.2rem; color: var(--t, var(--sc-primary)); }
.sc-toast .t-title { font-weight: 700; font-size: .9rem; }
.sc-toast .t-msg { font-size: .84rem; color: var(--sc-muted); }
.sc-toast::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; background: var(--t, var(--sc-primary)); animation: sc-countdown var(--d, 5s) linear forwards; }
.sc-toast.success { --t: #10b981; } .sc-toast.error { --t: #ef4444; } .sc-toast.warning { --t: #f59e0b; } .sc-toast.info { --t: var(--sc-primary); }
@keyframes sc-toast-in { from { opacity: 0; transform: translateX(40px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes sc-toast-out { to { opacity: 0; transform: translateX(40px); } }
@keyframes sc-countdown { from { width: 100%; } to { width: 0; } }
.notif-item { display: flex; gap: 12px; padding: 12px; border-radius: 14px; transition: background .15s; cursor: pointer; }
.notif-item:hover { background: var(--sc-surface-2); }
.notif-item.unread { background: rgba(var(--sc-primary-rgb), .06); }
.notif-item .n-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--t, var(--sc-primary)) 14%, transparent); color: var(--t, var(--sc-primary)); }
.notif-item.Success { --t: #10b981; } .notif-item.Warning { --t: #f59e0b; } .notif-item.Error { --t: #ef4444; } .notif-item.Info { --t: var(--sc-primary); }

/* command palette */
.cmdk .modal-dialog { max-width: 640px; margin-top: 10vh; }
.cmdk .modal-content { overflow: hidden; }
.cmdk-input { border: 0; border-bottom: 1px solid var(--sc-border); border-radius: 0; font-size: 1.05rem; padding: 18px 20px 18px 52px; background: transparent; }
.cmdk-input:focus { box-shadow: none; }
.cmdk-results { max-height: 55vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sc-muted); font-weight: 700; padding: 10px 12px 4px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--sc-text); }
.cmdk-item i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sc-surface-2); color: var(--sc-primary); }
.cmdk-item.active, .cmdk-item:hover { background: rgba(var(--sc-primary-rgb), .1); color: var(--sc-text); }
.cmdk-item small { color: var(--sc-muted); display: block; }

/* --------------------------------------------------------------- auth & public pages */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--sc-bg); }
.auth-visual { position: relative; overflow: hidden; background: #0b1020; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; animation: sc-blob 14s ease-in-out infinite; }
.auth-visual .blob.b1 { width: 460px; height: 460px; background: var(--sc-primary); top: -120px; left: -80px; }
.auth-visual .blob.b2 { width: 380px; height: 380px; background: var(--sc-secondary); bottom: -100px; right: -60px; animation-delay: -4s; }
.auth-visual .blob.b3 { width: 260px; height: 260px; background: #ec4899; top: 40%; left: 45%; opacity: .45; animation-delay: -8s; }
@keyframes sc-blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 40px) scale(.94); } }
.auth-visual .grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-feature { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); margin-bottom: 12px; animation: sc-rise .7s var(--sc-ease) both; }
.auth-feature i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 1.2rem; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 32px; position: relative; }
.auth-card { width: 100%; max-width: 430px; padding: 38px; border-radius: 26px; animation: sc-rise .7s var(--sc-ease) both; }
.auth-card h2 { font-size: 1.75rem; }
.auth-toolbar { position: absolute; top: 20px; inset-inline-end: 24px; display: flex; gap: 8px; }
.demo-creds { border-radius: 14px; border: 1px dashed rgba(var(--sc-primary-rgb), .45); background: rgba(var(--sc-primary-rgb), .06); padding: 12px 14px; font-size: .84rem; }
.btn-login { position: relative; overflow: hidden; }
.btn-login .btn-text { transition: opacity .2s, transform .2s; }
.btn-login .btn-loader { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(10px); transition: all .25s; }
.btn-login.loading .btn-text { opacity: 0; transform: translateY(-10px); }
.btn-login.loading .btn-loader { opacity: 1; transform: none; }
.dots span { display: inline-block; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: #fff; animation: sc-bounce 1s infinite; }
.dots span:nth-child(2) { animation-delay: .15s; } .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes sc-bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
.login-success { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; background: var(--sc-gradient); color: #fff; clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); transition: clip-path .7s var(--sc-ease); }
.login-success.show { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.otp-inputs { display: flex; gap: 10px; justify-content: center; }
.otp-inputs input { width: 50px; height: 58px; text-align: center; font-size: 1.4rem; font-weight: 700; border-radius: 14px; }
.public-shell { min-height: 100vh; }
.public-hero { position: relative; overflow: hidden; color: #fff; background: var(--sc-gradient); padding: 64px 0 120px; }
.public-hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 90px; background: var(--sc-bg); clip-path: ellipse(70% 100% at 50% 100%); }
.room-showcase img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: 18px 18px 0 0; }
.room-showcase .ph { aspect-ratio: 16/10; border-radius: 18px 18px 0 0; background: var(--sc-gradient); display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: 3rem; }
.powered-by { font-size: .78rem; color: var(--sc-muted); }
.powered-by strong { background: var(--sc-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
  .pos-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  .kds-board { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 991.98px) {
  .sc-sidebar { transform: translateX(-100%); width: var(--sc-sidebar-w) !important; box-shadow: var(--sc-shadow-lg); }
  [dir="rtl"] .sc-sidebar { transform: translateX(100%); }
  body.sidebar-open .sc-sidebar { transform: none; }
  .sc-main { margin-inline-start: 0 !important; }
  body.sidebar-collapsed .sc-brand-text, body.sidebar-collapsed .sc-nav-title, body.sidebar-collapsed .sc-nav-link span { opacity: 1; width: auto; }
  .sc-search-trigger { min-width: 0; }
  .sc-search-trigger .label, .sc-search-trigger .sc-kbd { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .sc-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 1035; opacity: 0; visibility: hidden; transition: all .3s; backdrop-filter: blur(2px); }
  body.sidebar-open .sc-backdrop { opacity: 1; visibility: visible; }
}
@media (max-width: 575.98px) {
  .sc-content { padding: 16px; }
  .sc-topbar { padding: 0 14px; gap: 8px; }
  .sc-page-header h1 { font-size: 1.35rem; }
  .room-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .room-card { padding: 12px; }
  .room-card .room-no { font-size: 1.25rem; }
  .kds-board { grid-template-columns: 1fr; }
  .sc-kpi-value { font-size: 1.45rem; }
  .auth-card { padding: 26px 20px; }
  .offcanvas.offcanvas-end { width: 100%; border-radius: 0; }
  .sc-toasts { inset-inline: 12px; max-width: none; }
  .hide-xs { display: none !important; }
}

/* --------------------------------------------------------------- print */
@media print {
  .sc-sidebar, .sc-topbar, .sc-footer, .no-print, .sc-toasts { display: none !important; }
  .sc-main { margin: 0 !important; }
  .sc-content { padding: 0; }
  .sc-card { box-shadow: none; border-color: #ddd; }
  body { background: #fff; }
}

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