/* ============================================================
   AURELIA PMS — SUPERNOVA ULTRA EDITION
   Design System: Midnight Emerald + Brass Gold
   Cinema-grade · Glassmorphism · Motion · Elite
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&family=Fraunces:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* ── Brand ── */
  --gold: #C9A227;
  --gold-soft: #E4C766;
  --gold-glow: rgba(201, 162, 39, 0.25);
  --emerald: #3FA672;
  --emerald-soft: #8FD9B2;
  --emerald-glow: rgba(63, 166, 114, 0.2);
  --rust: #C1503D;
  --rust-glow: rgba(193, 80, 61, 0.2);
  --slate: #6C7A89;

  /* ── Dark Theme ── */
  --bg: #0E1712;
  --bg-elev: #14201A;
  --surface: #182620;
  --surface-2: #1E322A;
  --border: rgba(233, 228, 214, 0.08);
  --border-strong: rgba(233, 228, 214, 0.15);
  --text: #F3F1E9;
  --text-muted: #9AA79E;
  --text-faint: #6D7C74;

  /* ── Glass ── */
  --glass-bg: rgba(24, 38, 32, 0.65);
  --glass-border: rgba(233, 228, 214, 0.08);
  --glass-blur: blur(24px) saturate(1.4);

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 48px 96px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 80px 160px rgba(0, 0, 0, 0.7);

  /* ── Radius ── */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;

  /* ── Fonts ── */
  --font-ui: 'Raleway', sans-serif;
  --font-display: 'Fraunces', serif;

  /* ── Motion ── */
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-spring: cubic-bezier(0.5, -0.2, 0.3, 1.3);
  --duration: 0.5s;

  /* ── "Bright" accent aliases (used throughout app.js inline styles + chart configs) ── */
  --emerald-bright: #1EBF93;
  --emerald-dim: #0A4C3D;
  --gold-bright: #E7C766;
  --red: #C4564A;
  --blue: #5C8FE0;
  --bg-card: var(--surface);
}

[data-theme="light"] {
  --bg: #FAF7F1;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4EFE4;
  --border: rgba(15, 27, 22, 0.08);
  --border-strong: rgba(15, 27, 22, 0.14);
  --text: #17241C;
  --text-muted: #5B6A61;
  --text-faint: #8A968D;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 27, 22, 0.06);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #14201A; }
::-moz-selection { background: var(--gold); color: #14201A; }

/* ─── Typography ─── */
.brand-word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.text-gold { color: var(--gold) !important; }
.text-emerald { color: var(--emerald) !important; }
.text-muted-soft { color: var(--text-muted) !important; }
.text-faint { color: var(--text-faint) !important; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

hr.divider { border-top: 1px solid var(--border); opacity: 1; }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   AMBIENT BACKGROUND
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1000px 600px at 10% 0%, rgba(201, 162, 39, 0.06), transparent 55%),
    radial-gradient(ellipse 800px 500px at 90% 50%, rgba(63, 166, 114, 0.05), transparent 50%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(201, 162, 39, 0.03), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   FLOATING PARTICLES
   ============================================================ */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 30s infinite;
}
.particle:nth-child(odd) { background: var(--emerald); }
.particle:nth-child(3n) { width: 5px; height: 5px; }
.particle:nth-child(5n) { width: 2px; height: 2px; }
.particle:nth-child(7n) { background: rgba(201, 162, 39, 0.3); }

@keyframes float-particle {
  0% { transform: translateY(110vh) scale(0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.4; }
  88% { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1) rotate(720deg); opacity: 0; }
}

/* ============================================================
   PROGRESS RAIL
   ============================================================ */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold), var(--emerald), var(--gold-soft), transparent);
  background-size: 300% 100%;
  width: 0%;
  z-index: 9999;
  transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 40px var(--gold-glow), 0 0 80px rgba(201, 162, 39, 0.1);
  animation: shimmer-progress 4s ease-in-out infinite;
}
@keyframes shimmer-progress {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* ============================================================
   GLASSMORPHISM
   ============================================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.card-elev {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card-elev:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-gold {
  border-top: 2px solid var(--gold);
}

.card-emerald {
  border-top: 2px solid var(--emerald);
}

/* ============================================================
   STATUS DOTS — Signature Motif
   ============================================================ */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.status-dot.lg { width: 11px; height: 11px; }
.status-dot.available,
.status-dot.confirmed,
.status-dot.completed {
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(63, 166, 114, 0.16);
}
.status-dot.reserved,
.status-dot.upcoming {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.16);
}
.status-dot.occupied,
.status-dot.cancelled {
  background: var(--rust);
  box-shadow: 0 0 0 4px rgba(193, 80, 61, 0.16);
}
.status-dot.cleaning,
.status-dot.walkin {
  background: var(--slate);
  box-shadow: 0 0 0 4px rgba(108, 122, 137, 0.16);
}
.status-dot.pulse {
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(201, 162, 39, 0); }
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.7rem 0.38rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.badge-status.confirmed,
.badge-status.available,
.badge-status.completed {
  color: var(--emerald);
  border-color: rgba(63, 166, 114, 0.28);
  background: rgba(63, 166, 114, 0.09);
}
.badge-status.upcoming,
.badge-status.reserved {
  color: var(--gold);
  border-color: rgba(201, 162, 39, 0.3);
  background: rgba(201, 162, 39, 0.1);
}
.badge-status.cancelled,
.badge-status.occupied {
  color: var(--rust);
  border-color: rgba(193, 80, 61, 0.3);
  background: rgba(193, 80, 61, 0.1);
}
.badge-status.cleaning,
.badge-status.walkin {
  color: var(--slate);
  border-color: rgba(108, 122, 137, 0.3);
  background: rgba(108, 122, 137, 0.1);
}

.badge-vip {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1B1204;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px;
  padding: 0.65rem 1.35rem;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border: none;
  color: #1B1204;
  box-shadow: 0 6px 24px -6px rgba(201, 162, 39, 0.5);
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}
.btn-gold:hover::before { transform: translateX(0); }
.btn-gold:hover {
  box-shadow: 0 10px 32px -6px rgba(201, 162, 39, 0.7);
  transform: translateY(-2px);
  color: #1B1204;
}

.btn-outline-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline-ghost:hover {
  background: var(--surface-2);
  border-color: var(--gold);
  color: var(--text);
}

.btn-dark-ghost {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-dark-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm-pill {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-link-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.62rem 0.8rem;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.89rem;
  font-weight: 600;
  margin-bottom: 3px;
  transition: all 0.25s var(--ease);
  position: relative;
}
.nav-link-app i { font-size: 1.08rem; width: 20px; text-align: center; }
.nav-link-app:hover { background: var(--surface-2); color: var(--text); }
.nav-link-app.active {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.14), rgba(201, 162, 39, 0.02));
  color: var(--gold);
}
.nav-link-app.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.4);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: 264px;
  flex: none;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  transition: width 0.3s var(--ease);
  z-index: 900;
}
.sidebar-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B1204;
  font-weight: 800;
  flex: none;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}
.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 16px 12px 6px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.user-chip:hover { background: var(--surface-2); }
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--gold);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: 68px;
  flex: none;
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}
.topbar-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.9rem 0.5rem 2.3rem;
  color: var(--text);
  font-size: 0.87rem;
  transition: all 0.3s var(--ease);
}
.topbar-search input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.08);
}
.topbar-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
  flex: none;
}
.icon-btn:hover { color: var(--gold); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn .dot-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  border: 2px solid var(--bg-elev);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================================
   KPI CARDS
   ============================================================ */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.kpi-card:hover::before { opacity: 1; }
.kpi-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.kpi-value {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.delta-chip {
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.delta-up { color: var(--emerald); background: rgba(63, 166, 114, 0.1); }
.delta-down { color: var(--rust); background: rgba(193, 80, 61, 0.1); }

/* ============================================================
   TABLES
   ============================================================ */
.table-app {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-app thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.table-app tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.88rem;
}
.table-app tbody tr {
  transition: background 0.18s var(--ease);
  cursor: pointer;
}
.table-app tbody tr:hover { background: var(--surface); }
.table-app tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   ROOM GRID
   ============================================================ */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.room-tile {
  aspect-ratio: 1;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.room-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.room-tile:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px) scale(1.02);
}
.room-tile.available { border-color: rgba(63, 166, 114, 0.4); background: rgba(63, 166, 114, 0.05); }
.room-tile.occupied { border-color: rgba(201, 162, 39, 0.4); background: rgba(201, 162, 39, 0.05); }
.room-tile.cleaning { border-color: rgba(100, 150, 200, 0.4); background: rgba(100, 150, 200, 0.05); }
.room-tile.maintenance { border-color: rgba(193, 80, 61, 0.4); background: rgba(193, 80, 61, 0.05); }

.room-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.room-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.room-status-badge.available { background: rgba(63, 166, 114, 0.2); color: var(--emerald); }
.room-status-badge.occupied { background: rgba(201, 162, 39, 0.2); color: var(--gold); }
.room-status-badge.cleaning { background: rgba(100, 150, 200, 0.2); color: #6496C8; }
.room-status-badge.maintenance { background: rgba(193, 80, 61, 0.2); color: var(--rust); }

/* ============================================================
   GUEST CARDS
   ============================================================ */
.guest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.guest-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.guest-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1B1204;
  flex: none;
}
.guest-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.guest-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 4px;
}
.guest-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   STAFF CARDS
   ============================================================ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s var(--ease);
}
.staff-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.staff-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B1204;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.staff-name { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.staff-role { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.staff-dept {
  display: inline-block;
  background: rgba(63, 166, 114, 0.15);
  color: var(--emerald);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.staff-contact { font-size: 0.8rem; color: var(--text-faint); display: flex; flex-direction: column; gap: 4px; }

/* ============================================================
   TASK BOARD (Housekeeping & Maintenance)
   ============================================================ */
.task-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.task-column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 600px;
}
.task-column-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.task-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.task-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.task-room { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.task-type { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.task-assignee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.assignee-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-soft), var(--gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #1B1204;
  font-weight: 700;
}

/* ============================================================
   FINANCE
   ============================================================ */
.finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.finance-table thead { background: var(--surface); border-bottom: 2px solid var(--border-strong); }
.finance-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.finance-table tbody tr { border-bottom: 1px solid var(--border); transition: all 0.2s var(--ease); }
.finance-table tbody tr:hover { background: var(--surface); }
.finance-table td { padding: 14px 16px; color: var(--text); }
.amount-positive { color: var(--emerald); font-weight: 600; }
.amount-negative { color: var(--rust); font-weight: 600; }

/* ============================================================
   CALENDAR
   ============================================================ */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 108px;
  padding: 8px;
  transition: all 0.3s var(--ease);
}
.cal-cell.today { border-color: var(--gold); box-shadow: 0 0 24px rgba(201, 162, 39, 0.08); }
.cal-cell.muted { opacity: 0.35; }
.cal-cell:hover { border-color: var(--border-strong); }
.cal-day-num { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.cal-chip {
  font-size: 0.63rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 5px;
  margin-top: 4px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   FLOOR PLAN
   ============================================================ */
.floor-plan {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 5% 100%,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 5% 100%,
    var(--bg-elev);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.floor-table {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 58px;
  min-height: 44px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 700;
}
.floor-table.round { border-radius: 50%; }
.floor-table:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: var(--shadow-md);
  z-index: 5;
}
.floor-table .cap { font-weight: 500; color: var(--text-faint); font-size: 0.62rem; }
.floor-table.st-available { border-color: rgba(63, 166, 114, 0.5); }
.floor-table.st-occupied { border-color: rgba(193, 80, 61, 0.5); }
.floor-table.st-reserved { border-color: rgba(201, 162, 39, 0.5); }
.floor-table.st-cleaning { border-color: rgba(108, 122, 137, 0.5); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  color: var(--text);
  box-shadow: var(--shadow-2xl);
}
.modal-header, .modal-footer { border-color: var(--border); }
.btn-close {
  filter: var(--btn-close-filter, none);
}
[data-theme="dark"] .btn-close,
:root:not([data-theme="light"]) .btn-close {
  filter: invert(1) grayscale(1);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .page-wrap { padding: 18px 16px 50px; }
  .task-board { grid-template-columns: 1fr; }
  .task-column { min-height: 400px; }
}

@media (max-width: 767.98px) {
  .room-grid { grid-template-columns: repeat(3, 1fr); }
  .room-number { font-size: 1.1rem; }
  .staff-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 1.5rem; }
  .table-app.table-app-responsive thead { display: none; }
  .table-app.table-app-responsive tbody tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 6px 4px;
    background: var(--surface);
  }
  .table-app.table-app-responsive td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: none !important;
    gap: 12px;
  }
  .table-app.table-app-responsive td[data-label]::before {
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    flex: none;
  }
  .finance-table { font-size: 0.8rem; }
  .finance-table th, .finance-table td { padding: 10px 12px; }
  .cal-grid { gap: 4px; }
  .cal-cell { min-height: 64px; padding: 4px; border-radius: 8px; }
  .cal-day-num { font-size: 0.68rem; }
  .cal-chip { font-size: 0; padding: 0; margin-top: 3px; height: 5px; border-radius: 3px; }
  .cal-chip::before { content: ''; }
}

@media (max-width: 575.98px) {
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .room-tile { min-height: 100px; }
  .room-number { font-size: 1rem; }
  .room-status-badge { font-size: 0.6rem; }
  .topbar { padding: 0 14px; }
  .task-card { padding: 12px; margin-bottom: 8px; }
  .task-room { font-size: 0.95rem; }
  .page-wrap { padding: 14px 12px 44px; }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; }
}

/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */
.fade-in { animation: fadeIn 0.6s var(--ease) both; }
.fade-up { animation: fadeUp 0.7s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

.text-glow-gold { text-shadow: 0 0 40px var(--gold-glow); }
.text-glow-emerald { text-shadow: 0 0 40px var(--emerald-glow); }

.shadow-gold { box-shadow: 0 0 40px var(--gold-glow); }
.shadow-emerald { box-shadow: 0 0 40px var(--emerald-glow); }

.border-gold { border-color: var(--gold) !important; }
.border-emerald { border-color: var(--emerald) !important; }

/* ============================================================
   FRONTEND LANDING PAGE — SUPERHERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1000px 600px at 15% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 800px 500px at 90% 80%, rgba(63, 166, 114, 0.08), transparent 50%);
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-title span {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.14rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.mock-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
  transition: all 0.6s var(--ease);
}
.mock-card:hover {
  transform: perspective(1400px) rotateY(-2deg) rotateX(0.5deg);
}

.mock-float {
  position: absolute;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-width: 200px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  animation: float-y 5.5s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.stat-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold);
}

.feature-card {
  padding: 32px 28px;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.05));
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.cta-band {
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(30, 50, 40, 0.6), rgba(20, 32, 26, 0.8));
  border: 1px solid var(--border-strong);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.08), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 16px; color: var(--text); }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }

.ticker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.84rem;
}
.ticker-row:last-child { border-bottom: none; }

.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Login Page ─── */
.login-shell {
  min-height: 100vh;
  display: flex;
}
.login-aside {
  background:
    radial-gradient(ellipse 700px 500px at 20% 10%, rgba(201, 162, 39, 0.15), transparent 55%),
    linear-gradient(160deg, #16251E, #0E1712);
  position: relative;
  overflow: hidden;
}
.login-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(233, 228, 214, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
}
.login-form-wrap { max-width: 420px; width: 100%; }

.form-control,
.form-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  font-family: var(--font-ui);
}
.form-control:focus,
.form-select:focus {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}
.form-control::placeholder { color: var(--text-faint); }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.01em; }

.input-group-flat { position: relative; }
.input-group-flat i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}
.input-group-flat .form-control { padding-left: 2.5rem; }
.input-group-flat .toggle-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  cursor: pointer;
}

/* ─── Offcanvas ─── */
.offcanvas { background: var(--bg-elev); color: var(--text); }

/* ─── Toast ─── */
.toast {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 14px;
}
/* ============================================================
   DASHBOARD COMPONENT LIBRARY
   (Actual classes rendered by app.js — added because the page
   shell tokens above were never extended to cover them.)
   ============================================================ */

/* ─── Page head ─── */
.page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
.page-head h1 { font-family:var(--font-display); font-size:1.7rem; font-weight:600; margin-bottom:4px; }
.page-head p { color:var(--text-muted); font-size:0.9rem; margin:0; }

/* ─── Buttons ─── */
.btn-signal, .btn-signal-outline, .btn-signal-ghost, .btn-signal-gold, .btn-danger-outline {
  font-family:var(--font-ui); font-weight:700; font-size:0.83rem; padding:10px 18px; border-radius:999px;
  border:1px solid transparent; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  cursor:pointer; transition:all 0.25s var(--ease); white-space:nowrap;
}
.btn-signal { background:linear-gradient(180deg, var(--emerald-soft), var(--emerald)); color:#04211A; box-shadow:0 4px 18px rgba(63,166,114,0.25); }
.btn-signal:hover { transform:translateY(-2px); box-shadow:0 8px 26px rgba(63,166,114,0.35); color:#04211A; }
.btn-signal:disabled { opacity:0.5; cursor:not-allowed; transform:none; }
.btn-signal-gold { background:linear-gradient(180deg, var(--gold-soft), var(--gold)); color:#1A1204; box-shadow:0 4px 18px rgba(201,162,39,0.25); }
.btn-signal-gold:hover { transform:translateY(-2px); box-shadow:0 8px 26px rgba(201,162,39,0.35); color:#1A1204; }
.btn-signal-outline { background:transparent; border-color:var(--border-strong); color:var(--text); }
.btn-signal-outline:hover { border-color:var(--emerald); color:var(--emerald-bright); background:rgba(63,166,114,0.06); }
.btn-signal-ghost { background:transparent; border-color:transparent; color:var(--text-muted); }
.btn-signal-ghost:hover { color:var(--text); background:var(--surface-2); }
.btn-signal-ghost:disabled { opacity:0.45; cursor:not-allowed; }
.btn-danger-outline { border-color:rgba(196,86,74,0.4) !important; color:var(--red) !important; }
.btn-danger-outline:hover { background:rgba(196,86,74,0.1) !important; border-color:var(--red) !important; }

/* ─── Inputs ─── */
.input-aur {
  width:100%; background:rgba(255,255,255,0.03); border:1px solid var(--border); color:var(--text);
  border-radius:var(--radius-sm); padding:10px 14px; font-size:0.87rem; font-family:var(--font-ui);
  transition:all 0.2s var(--ease);
}
.input-aur:focus { outline:none; border-color:var(--emerald); background:rgba(255,255,255,0.05); box-shadow:0 0 0 3px rgba(63,166,114,0.1); }
.input-aur::placeholder { color:var(--text-faint); }
select.input-aur {
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238B92A0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:11px 7px;
  padding-right:38px;
  color-scheme: dark;
}
[data-theme="light"] select.input-aur { color-scheme: light; }
select.input-aur option {
  background:var(--bg-elev);
  color:var(--text);
  padding:10px;
}
select.input-aur option:checked,
select.input-aur option:hover {
  background:var(--emerald);
  color:#04211A;
}
datalist { display:none; }
.form-label-aur { font-size:0.76rem; font-weight:700; color:var(--text-muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.04em; }
.form-check-aur { display:flex; align-items:center; gap:8px; color:var(--text-muted); font-size:0.85rem; cursor:pointer; }
.form-check-aur input { accent-color:var(--emerald); width:16px; height:16px; }
.form-error-aur { background:rgba(196,86,74,0.1); border:1px solid rgba(196,86,74,0.35); color:#E29A93; border-radius:var(--radius-sm); padding:10px 14px; font-size:0.8rem; margin-top:12px; }

/* ─── Badges ─── */
.badge-aur { display:inline-flex; align-items:center; padding:4px 11px; border-radius:999px; font-size:0.72rem; font-weight:700; letter-spacing:0.01em; }
.badge-paid, .badge-confirmed, .badge-checkedin { background:rgba(63,166,114,0.15); color:var(--emerald-bright); }
.badge-due, .badge-checkedout { background:rgba(201,162,39,0.15); color:var(--gold-bright); }
.badge-cancelled { background:rgba(196,86,74,0.15); color:var(--red); }
.badge-vip { display:inline-flex; align-items:center; gap:3px; background:linear-gradient(135deg, var(--gold-bright), var(--gold)); color:#1A1204; font-size:0.62rem; font-weight:800; padding:2px 8px; border-radius:999px; letter-spacing:0.03em; }

/* ─── Panels ─── */
.panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px; }
.panel-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.panel-title h3 { font-size:1rem; font-weight:700; margin:0; }
.muted-link { color:var(--text-faint); font-size:0.78rem; font-weight:600; cursor:pointer; transition:color 0.2s; }
.muted-link:hover { color:var(--emerald-bright); }
.chart-box { position:relative; height:280px; }
.chart-box.sm { height:220px; }

/* ─── KPI grid (overview) ─── */
.kpi-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin-bottom:20px; }
.kpi-grid .kpi-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; transition:all 0.25s var(--ease); }
.kpi-grid .kpi-card:hover { border-color:var(--border-strong); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.kpi-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; }
.kpi-label { font-size:0.76rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.04em; }
.kpi-grid .kpi-icon { width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1rem; }
.kpi-grid .kpi-value { font-family:var(--font-display); font-size:1.9rem; font-weight:600; margin-bottom:6px; }
.kpi-delta { font-size:0.76rem; font-weight:600; }
.kpi-delta.up { color:var(--emerald-bright); }
.kpi-delta.down { color:var(--red); }
.kpi-delta.flat { color:var(--text-faint); }

/* ─── Status strip / chips ─── */
.status-strip { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.status-strip .status-chip, .status-chip { display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:8px 16px; font-size:0.82rem; color:var(--text-muted); }
.status-chip .dot, .status-chip .dot-badge { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.status-chip b { color:var(--text); font-weight:700; }

/* ─── Filters / search ─── */
.filter-bar { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; align-items:center; }
.search-box { position:relative; flex:1; min-width:200px; max-width:320px; }
.search-box i { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--text-faint); font-size:0.85rem; }
.search-box input { width:100%; background:rgba(255,255,255,0.03); border:1px solid var(--border); color:var(--text); border-radius:var(--radius-sm); padding:10px 14px 10px 38px; font-size:0.86rem; }
.search-box input:focus { outline:none; border-color:var(--emerald); }
.chip-toggle { display:inline-flex; align-items:center; gap:6px; background:var(--surface); border:1px solid var(--border); color:var(--text-muted); border-radius:999px; padding:7px 14px; font-size:0.78rem; font-weight:600; cursor:pointer; transition:all 0.2s var(--ease); }
.chip-toggle:hover { border-color:var(--border-strong); color:var(--text); }
.chip-toggle.active { background:rgba(63,166,114,0.12); border-color:var(--emerald); color:var(--emerald-bright); }
.chip-toggle .dot { width:7px; height:7px; border-radius:50%; display:inline-block; }

/* ─── Stat mini (small stat cards under filter bars) ─── */
.stat-mini { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:12px 16px; }
.stat-mini .label { display:block; font-size:0.7rem; font-weight:700; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:4px; }
.stat-mini .value { font-family:var(--font-display); font-size:1.3rem; font-weight:600; color:var(--text); }

/* ─── Tables ─── */
.table-aur { width:100%; border-collapse:collapse; }
.table-aur thead th { text-align:left; padding:10px 14px; font-size:0.7rem; font-weight:700; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.05em; border-bottom:1px solid var(--border-strong); cursor:default; user-select:none; }
.table-aur thead th[data-sort] { cursor:pointer; }
.table-aur thead th[data-sort]:hover { color:var(--text); }
.table-aur thead th i { font-size:0.65rem; opacity:0.5; margin-left:4px; }
.table-aur tbody td { padding:13px 14px; font-size:0.85rem; color:var(--text); border-bottom:1px solid var(--border); vertical-align:middle; }
.table-aur tbody tr:last-child td { border-bottom:none; }
.row-hover { cursor:pointer; transition:background 0.15s; }
.row-hover:hover { background:var(--surface-2); }
.row-eye { background:transparent; border:1px solid var(--border); color:var(--text-muted); width:30px; height:30px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.2s; }
.row-eye:hover { border-color:var(--emerald); color:var(--emerald-bright); }

/* ─── Detail rows (used in offcanvas / modals) ─── */
.detail-row { display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px solid var(--border); font-size:0.85rem; }
.detail-row:last-child { border-bottom:none; }
.detail-row .k { color:var(--text-faint); }
.detail-row .v { color:var(--text); font-weight:600; text-align:right; }
.res-section-label { font-size:0.7rem; font-weight:700; color:var(--gold-bright); text-transform:uppercase; letter-spacing:0.06em; margin:18px 0 6px; }
.special-req-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px 14px; font-size:0.84rem; color:var(--text-muted); }
.action-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }

/* ─── Rooms ─── */
.room-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:16px; }
.room-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px; cursor:pointer; transition:all 0.25s var(--ease); }
.room-card:hover { border-color:var(--border-strong); transform:translateY(-3px); box-shadow:var(--shadow-md); }
.room-thumb { width:100%; height:64px; border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center; font-size:1.6rem; margin-bottom:12px; }
.room-number { font-family:var(--font-display); font-size:1.15rem; font-weight:600; color:var(--text); }
.status-pill { font-size:0.66rem; font-weight:700; padding:3px 9px; border-radius:999px; }
.room-type { font-size:0.8rem; color:var(--text-muted); margin-bottom:10px; }
.room-foot { display:flex; justify-content:space-between; align-items:center; font-size:0.78rem; padding-top:10px; border-top:1px solid var(--border); }
.room-price { font-weight:700; color:var(--gold-bright); }
.room-housekeeper { color:var(--text-faint); }
.amenity-chip { background:var(--surface-2); border:1px solid var(--border); border-radius:999px; padding:4px 11px; font-size:0.72rem; color:var(--text-muted); }

/* ─── Guests / Staff grid ─── */
.guest-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:14px; }
.guest-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px; display:flex; gap:14px; cursor:pointer; transition:all 0.25s var(--ease); }
.guest-card:hover { border-color:var(--border-strong); box-shadow:var(--shadow-md); }
.guest-avatar { width:48px; height:48px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:700; color:#04211A; font-size:0.9rem; }
.guest-name { font-weight:700; font-size:0.94rem; color:var(--text); }
.guest-contact { font-size:0.8rem; color:var(--text-muted); margin:2px 0 8px; }
.guest-meta { display:flex; gap:12px; flex-wrap:wrap; font-size:0.74rem; color:var(--text-faint); margin-bottom:8px; }
.guest-preferences { display:flex; gap:6px; flex-wrap:wrap; }
.pref-tag { background:var(--surface-2); border:1px solid var(--border); border-radius:999px; padding:3px 9px; font-size:0.68rem; color:var(--text-muted); }
.profile-stats { display:flex; flex-direction:column; gap:0; }
.stat-item { display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--border); font-size:0.84rem; }
.stat-item:last-child { border-bottom:none; }
.stat-label { color:var(--text-faint); }
.stat-value { font-weight:700; color:var(--text); }
.history-item { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px 14px; margin-bottom:8px; }

/* ─── Housekeeping board ─── */
.hk-board { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; }
.hk-column { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px; }
.hk-column-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.hk-avatar { width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg, var(--emerald-bright), var(--emerald-dim)); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.75rem; color:#04211A; }
.hk-name { font-weight:700; font-size:0.85rem; color:var(--text); }
.hk-count { font-size:0.7rem; color:var(--text-faint); }
.hk-badge { font-size:0.68rem; font-weight:700; color:var(--emerald-bright); background:rgba(30,191,147,0.12); padding:4px 10px; border-radius:999px; white-space:nowrap; }
.hk-room-list { display:flex; flex-direction:column; gap:10px; max-height:520px; overflow-y:auto; }
.hk-room-card { background:var(--bg-elev); border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px; }
.hk-room-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.hk-room-number { font-weight:700; font-size:0.9rem; color:var(--text); }
.hk-room-status { font-size:0.65rem; font-weight:700; padding:3px 8px; border-radius:999px; }
.hk-room-type { font-size:0.76rem; color:var(--text-faint); margin-bottom:10px; }
.hk-room-actions { display:flex; gap:6px; flex-wrap:wrap; }
.hk-room-actions .btn-signal, .hk-room-actions .btn-signal-outline { padding:6px 12px; font-size:0.72rem; flex:1; }

/* ─── Maintenance kanban ─── */
.mt-board { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
.mt-col { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:14px; min-height:200px; }
.mt-col-head { display:flex; justify-content:space-between; align-items:center; font-size:0.78rem; font-weight:700; color:var(--text-muted); margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.mt-col-count { background:var(--surface-2); color:var(--text-faint); font-size:0.7rem; font-weight:700; padding:2px 9px; border-radius:999px; }
.mt-col-body { display:flex; flex-direction:column; gap:10px; }
.mt-col-empty { text-align:center; color:var(--text-faint); font-size:0.78rem; padding:20px 0; }
.mt-card { background:var(--bg-elev); border:1px solid var(--border); border-left:3px solid var(--slate); border-radius:var(--radius-sm); padding:12px; cursor:pointer; transition:all 0.2s; }
.mt-card:hover { border-color:var(--border-strong); transform:translateY(-1px); }
.mt-card-urgent { border-left-color:var(--red); }
.mt-card-high { border-left-color:var(--gold-bright); }
.mt-card-medium { border-left-color:var(--blue); }
.mt-card-low { border-left-color:var(--emerald-bright); }
.mt-priority { font-size:0.62rem; font-weight:800; text-transform:uppercase; letter-spacing:0.04em; padding:2px 8px; border-radius:999px; }
.mt-priority.urgent { background:rgba(196,86,74,0.15); color:var(--red); }
.mt-priority.high { background:rgba(231,199,102,0.15); color:var(--gold-bright); }
.mt-priority.medium { background:rgba(92,143,224,0.15); color:var(--blue); }
.mt-priority.low { background:rgba(30,191,147,0.15); color:var(--emerald-bright); }
.mt-card-title { font-size:0.85rem; font-weight:600; color:var(--text); margin:8px 0 6px; }
.mt-card-meta { font-size:0.72rem; color:var(--text-faint); }
.mt-detail-status { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.mt-detail-label { font-size:0.72rem; font-weight:700; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.04em; }
.mt-detail-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); font-size:0.85rem; color:var(--text-muted); }
.mt-status { font-size:0.75rem; font-weight:700; }
.mt-status.status-pending { color:var(--gold-bright); }
.mt-status.status-in-progress { color:var(--blue); }
.mt-status.status-completed { color:var(--emerald-bright); }
.mt-status.status-cancelled { color:var(--text-faint); }
.mt-item-notes { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px 14px; font-size:0.82rem; color:var(--text-muted); margin-top:12px; }
.mt-detail-actions { display:flex; gap:8px; margin-top:16px; flex-wrap:wrap; }

/* ─── Finance ─── */
.finance-tabs { display:flex; gap:8px; border-bottom:1px solid var(--border); }
.finance-tab { background:transparent; border:none; border-bottom:2px solid transparent; color:var(--text-faint); font-size:0.84rem; font-weight:600; padding:10px 4px; margin-right:20px; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.finance-tab:hover { color:var(--text); }
.finance-tab.active { color:var(--emerald-bright); border-bottom-color:var(--emerald-bright); }
.invoice-detail { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:16px; }
.invoice-item { display:flex; justify-content:space-between; padding:9px 0; font-size:0.86rem; color:var(--text-muted); border-bottom:1px solid var(--border); }
.invoice-total { display:flex; justify-content:space-between; padding-top:12px; font-weight:700; font-size:1rem; color:var(--text); }
.revenue-summary { display:flex; flex-direction:column; gap:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.revenue-item { display:flex; justify-content:space-between; padding:12px 16px; border-bottom:1px solid var(--border); }
.revenue-item:last-child { border-bottom:none; }
.revenue-label { font-size:0.8rem; color:var(--text-faint); }
.revenue-value { font-weight:700; color:var(--text); }

/* ─── Analytics ─── */
.analytics-kpi-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin-bottom:20px; }
.analytics-kpi { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px; display:flex; flex-direction:column; gap:6px; }
.analytics-kpi-label { font-size:0.72rem; font-weight:700; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.04em; }
.analytics-kpi-value { font-family:var(--font-display); font-size:1.7rem; font-weight:600; color:var(--text); }
.analytics-kpi-change { font-size:0.75rem; font-weight:600; }
.analytics-kpi-change.up { color:var(--emerald-bright); }
.analytics-kpi-change.down { color:var(--red); }
.analytics-kpi-change.flat { color:var(--text-faint); }

/* ─── Calendar (align with app.js's actual class names) ─── */
.cal-weekday-row { display:grid; grid-template-columns:repeat(7, 1fr); gap:8px; margin-bottom:8px; }
.cal-weekday-row span { text-align:center; font-size:0.7rem; font-weight:700; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.05em; }
.cal-daynum { font-size:0.78rem; font-weight:700; color:var(--text-muted); }
.cal-dim { opacity:0.35; }
.cal-today { border-color:var(--gold) !important; box-shadow:0 0 24px rgba(201,162,39,0.1); }
.cal-selected { border-color:var(--emerald) !important; background:rgba(63,166,114,0.05); }
.cal-chip-row { display:flex; flex-direction:column; gap:3px; margin-top:6px; }
.cal-chip-empty { background:transparent !important; color:var(--text-faint) !important; text-align:center; }
.cal-legend-dot { width:9px; height:9px; border-radius:50%; display:inline-block; }

/* ─── Activity feed ─── */
.activity-item { display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--border); }
.activity-item:last-child { border-bottom:none; }
.act-icon { width:36px; height:36px; border-radius:50%; background:rgba(63,166,114,0.1); color:var(--emerald-bright); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:0.9rem; }
.act-text { font-size:0.85rem; color:var(--text); font-weight:500; }
.act-time { font-size:0.74rem; color:var(--text-faint); margin-top:2px; }

/* ─── Accordion (support/FAQ) ─── */
.accordion-aur .accordion-item { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md) !important; margin-bottom:8px; overflow:hidden; }
.accordion-aur .accordion-button { background:transparent; color:var(--text); font-weight:600; font-size:0.88rem; box-shadow:none !important; }
.accordion-aur .accordion-button:not(.collapsed) { background:var(--surface-2); color:var(--emerald-bright); }
.accordion-aur .accordion-button::after { filter:invert(1) grayscale(1); }
.accordion-aur .accordion-body { color:var(--text-muted); font-size:0.85rem; }

/* ─── Dropdowns (notifications / profile menu) ─── */
.dropdown-header { font-size:0.7rem; font-weight:700; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.05em; padding:10px 16px 6px; }
.dropdown-item-aur { display:flex; align-items:center; gap:10px; padding:10px 16px; font-size:0.85rem; color:var(--text); cursor:pointer; transition:background 0.15s; text-decoration:none; }
.dropdown-item-aur:hover { background:var(--surface-2); color:var(--text); }
.dropdown-divider-aur { height:1px; background:var(--border); margin:6px 0; }
.notif-drop-item { align-items:flex-start; }
.avatar-sm { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.72rem; color:#04211A; background:linear-gradient(135deg, var(--emerald-bright), var(--emerald-dim)); }

/* ─── Loading state ─── */
.loading-overlay { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:80px 0; }
.loading-overlay .spinner { width:34px; height:34px; border-radius:50%; border:3px solid var(--border); border-top-color:var(--emerald); animation:spin 0.8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ─── Responsive ─── */
@media (max-width:991px) {
  .kpi-grid { grid-template-columns:repeat(2, 1fr); }
  .analytics-kpi-grid { grid-template-columns:repeat(2, 1fr); }
  .mt-board { grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px) {
  .kpi-grid { grid-template-columns:1fr; }
  .analytics-kpi-grid { grid-template-columns:1fr; }
  .mt-board { grid-template-columns:1fr; }
  .room-grid, .guest-grid { grid-template-columns:1fr; }
  .page-head { flex-direction:column; }
  .action-grid { grid-template-columns:1fr; }
}

/* ─── Final gap fills ─── */
.room-body { display:flex; flex-direction:column; }
.invoice-row { display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--border); font-size:0.85rem; }
.invoice-row:last-child { border-bottom:none; }
.cal-grid-month .cal-cell { min-height:108px; }
.cal-grid-week .cal-cell { min-height:220px; }