/* Ikhsana Resort Admin — layout & sidebar */

:root {
  --sidebar-bg: #0B1325;
  --main-bg: #0F172A;
  --panel-bg: #0B1325;
  --glass-bg: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(201, 169, 98, 0.15);
  --sidebar-width: 272px;
  --gold: #C9A962;
  --gold-light: #E8D5A3;
  --gold-glow: rgba(201, 169, 98, 0.35);
  --text-primary: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--main-bg);
}

/* ── App shell ── */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background: var(--sidebar-bg);
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  z-index: 30;
  border-right: 1px solid rgba(201, 169, 98, 0.12);
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-emblem {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #C9A962 0%, #8B7340 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--gold-glow);
}

.logo-text {
  transition: opacity 0.2s;
}

.logo-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  line-height: 1.3;
}

.logo-sub {
  font-size: 0.65rem;
  color: #64748B;
  letter-spacing: 0.04em;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
}

.nav-item-active {
  background: rgba(201, 169, 98, 0.1) !important;
  color: var(--gold) !important;
  box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.25);
}

.nav-item-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gold);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px var(--gold);
}

.nav-icon {
  font-size: 1.1rem;
  min-width: 1.5rem;
  text-align: center;
}

.nav-label {
  transition: opacity 0.2s;
  white-space: nowrap;
}

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Main area (dark luxury) ── */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--main-bg);
}

.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(11, 19, 37, 0.95);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  backdrop-filter: blur(12px);
}

.sub-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.module-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.search-wrap {
  flex: 1;
  max-width: 340px;
}

.search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C9A962'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") 0.65rem center / 1rem no-repeat;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background-color: rgba(15, 23, 42, 0.95);
}

.sub-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.clock-block {
  text-align: right;
  line-height: 1.2;
}

.clock-time {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.clock-date {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.pms-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.32);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold-light);
}

.pms-badge.disconnected {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #FCA5A5;
}

.quick-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(201, 169, 98, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.quick-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.08);
}

.quick-btn-primary {
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold);
  border-color: rgba(201, 169, 98, 0.45);
}

.quick-btn-primary:hover {
  background: rgba(201, 169, 98, 0.2);
  box-shadow: 0 0 12px var(--gold-glow);
}

.quick-btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
  border-color: rgba(248, 113, 113, 0.45);
}

.quick-btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.22);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.25);
  color: #fecaca;
}

.quick-btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hotel-row-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Content ── */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  background: var(--main-bg);
}

.module-view {
  height: 100%;
  animation: fadeIn 0.2s ease-out;
}

.module-view.hidden {
  display: none !important;
}

.module-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.module-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: rgba(11, 19, 37, 0.4);
}

.module-card-header h2 {
  color: var(--gold-light) !important;
  font-weight: 700;
}

.module-card-header p,
.module-card-header .text-slate-500 {
  color: var(--text-muted) !important;
}

.module-card-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

/* Dark form inputs — modals, forms, and main content area */
.modal-panel input[type="text"],
.modal-panel input[type="email"],
.modal-panel input[type="password"],
.modal-panel input[type="number"],
.modal-panel input[type="search"],
.modal-panel input[type="tel"],
.modal-panel input[type="date"],
.modal-panel input[type="url"],
.modal-panel textarea,
.modal-panel select,
.dark-form-panel input[type="text"],
.dark-form-panel input[type="email"],
.dark-form-panel input[type="password"],
.dark-form-panel input[type="number"],
.dark-form-panel input[type="search"],
.dark-form-panel input[type="tel"],
.dark-form-panel input[type="date"],
.dark-form-panel input[type="url"],
.dark-form-panel textarea,
.dark-form-panel select,
.main-area input[type="text"],
.main-area input[type="email"],
.main-area input[type="password"],
.main-area input[type="number"],
.main-area input[type="search"],
.main-area input[type="tel"],
.main-area input[type="date"],
.main-area input[type="url"],
.main-area textarea,
.main-area select,
.sa-field {
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: #1E293B !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #F8FAFC !important;
  -webkit-text-fill-color: #F8FAFC;
  caret-color: #F8FAFC;
  border-radius: 0.75rem !important;
  padding: 0.625rem 1rem !important;
  box-shadow: none;
}

.modal-panel input::placeholder,
.modal-panel textarea::placeholder,
.dark-form-panel input::placeholder,
.dark-form-panel textarea::placeholder,
.main-area input::placeholder,
.main-area textarea::placeholder,
.sa-field::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  opacity: 1;
}

.modal-panel input:focus,
.modal-panel textarea:focus,
.modal-panel select:focus,
.dark-form-panel input:focus,
.dark-form-panel textarea:focus,
.dark-form-panel select:focus,
.main-area input:focus,
.main-area textarea:focus,
.main-area select:focus,
.sa-field:focus {
  border-color: #D4AF37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35) !important;
  outline: none !important;
}

.modal-panel select option,
.dark-form-panel select option,
.main-area select option {
  background: #1E293B;
  color: #F8FAFC;
}

.modal-panel input[type="date"]::-webkit-calendar-picker-indicator,
.dark-form-panel input[type="date"]::-webkit-calendar-picker-indicator,
.main-area input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  cursor: pointer;
}

.modal-panel label,
.dark-form-panel label,
.main-area label {
  color: var(--text-muted) !important;
}

/* Autofill — keep dark theme readable (incl. email/password) */
.modal-panel input:-webkit-autofill,
.modal-panel input:-webkit-autofill:hover,
.modal-panel input:-webkit-autofill:focus,
.dark-form-panel input:-webkit-autofill,
.dark-form-panel input:-webkit-autofill:hover,
.dark-form-panel input:-webkit-autofill:focus,
.main-area input:-webkit-autofill,
.main-area input:-webkit-autofill:hover,
.main-area input:-webkit-autofill:focus,
.sa-field:-webkit-autofill,
.sa-field:-webkit-autofill:hover,
.sa-field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1E293B inset !important;
  box-shadow: 0 0 0 1000px #1E293B inset !important;
  -webkit-text-fill-color: #F8FAFC !important;
  caret-color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: background-color 99999s ease-out;
}

.dark-form-panel {
  background: rgba(11, 19, 37, 0.5) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px;
  padding: 1.25rem;
}

.dark-form-panel h3 {
  color: var(--gold-light) !important;
}

.section-label {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Filter tabs (KDS) */
.filter-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(11, 19, 37, 0.8);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: 10px;
  padding: 0.25rem;
}

.filter-tab {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab:hover {
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.08);
}

.filter-tab.active {
  background: rgba(201, 169, 98, 0.18) !important;
  color: var(--gold) !important;
  box-shadow: 0 0 10px var(--gold-glow);
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid rgba(201, 169, 98, 0.35);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ── KDS Order Cards (glassmorphic) ── */
.order-card {
  animation: fadeIn 0.25s ease-out;
  background: rgba(11, 19, 37, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: 16px;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.order-card:hover {
  border-color: rgba(201, 169, 98, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(201, 169, 98, 0.08);
  transform: translateY(-2px);
}

.order-room {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.order-meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.order-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #E8D5A3;
}

.order-items-box {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  box-shadow: none;
}

.status-pending {
  background: rgba(139, 115, 85, 0.16);
  color: #C4B59A;
  border: 1px solid rgba(139, 115, 85, 0.35);
}

.status-preparing {
  background: rgba(148, 163, 184, 0.12);
  color: #B8C2D0;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.status-delivered {
  background: rgba(201, 169, 98, 0.12);
  color: #DCC89A;
  border: 1px solid rgba(201, 169, 98, 0.32);
}

.kds-advance-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid rgba(201, 169, 98, 0.4);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.kds-advance-btn:hover {
  background: rgba(201, 169, 98, 0.28);
  box-shadow: 0 0 14px var(--gold-glow);
}

.kds-delivered-label {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #DCC89A;
}

.empty-state {
  color: var(--text-dim);
  text-align: center;
  padding: 4rem 1rem;
}

.empty-state p:first-child {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Room grid (PMS) — dark glass */
.pms-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.pms-summary-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .pms-summary-grid,
  .pms-summary-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pms-stat-card {
  background: rgba(11, 19, 37, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.pms-stat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pms-stat-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.22);
  color: var(--gold);
  flex-shrink: 0;
}

.pms-stat-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.pms-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.pms-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pms-stat-occupied,
.pms-stat-vacant,
.pms-stat-housekeeping {
  border-color: var(--glass-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.pms-stat-occupied .pms-stat-value {
  color: #E8D5A3;
}

.pms-stat-vacant .pms-stat-value {
  color: #CBD5E1;
}

.pms-stat-housekeeping .pms-stat-value {
  color: #C4B59A;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  padding: 12px;
  box-sizing: border-box;
}

.room-card-item {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.92) 0%, rgba(11, 16, 26, 0.96) 100%);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.05rem 1rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.room-card-item::before {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 1.5px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.45), transparent);
}

.room-card-item:hover,
.room-card-item:focus-visible,
.room-card-item:focus-within,
.room-card-item:active {
  z-index: 20;
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1.5px #D4AF37;
}

.room-card-vacant::before {
  background: linear-gradient(90deg, transparent, rgba(180, 190, 205, 0.35), transparent);
}

.room-card-occupied::before {
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.8), transparent);
}

.room-card-housekeeping::before,
.room-card-maintenance::before {
  background: linear-gradient(90deg, transparent, rgba(160, 140, 110, 0.5), transparent);
}

.room-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.room-card-item .room-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #E8D5A3;
  display: block;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.room-type-tag {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.room-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  box-shadow: none;
}

.room-status-vacant {
  background: rgba(148, 163, 184, 0.12);
  color: #B8C2D0;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.room-status-occupied {
  background: rgba(201, 169, 98, 0.12);
  color: #DCC89A;
  border: 1px solid rgba(201, 169, 98, 0.32);
}

.room-status-housekeeping,
.room-status-maintenance {
  background: rgba(139, 115, 85, 0.16);
  color: #C4B59A;
  border: 1px solid rgba(139, 115, 85, 0.35);
}

.room-card-item .guest-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.45;
}

.room-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.room-action-btn {
  flex: 1;
  min-width: calc(50% - 0.25rem);
  padding: 0.42rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(201, 169, 98, 0.3);
  color: #E8D5A3;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  box-shadow: none;
}

.room-action-btn:hover {
  background: rgba(201, 169, 98, 0.12);
  border-color: rgba(201, 169, 98, 0.55);
  color: #fff;
}

.room-action-primary {
  background: rgba(201, 169, 98, 0.08);
  border-color: rgba(201, 169, 98, 0.4);
  color: #E8D5A3;
}

.room-action-primary:hover {
  background: rgba(201, 169, 98, 0.18);
  box-shadow: none;
}

.room-action-danger {
  background: transparent;
  border-color: rgba(176, 148, 140, 0.38);
  color: #D4C4BC;
}

.room-action-danger:hover {
  background: rgba(120, 78, 70, 0.2);
  border-color: rgba(196, 150, 140, 0.5);
  color: #F3E8E4;
  box-shadow: none;
}

.room-edit-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.3);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.15s;
}

.room-edit-btn:hover {
  background: rgba(201, 169, 98, 0.22);
}

/* Menu & alert list rows — dark glass */
.menu-row,
.alert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(11, 19, 37, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.menu-row:hover,
.alert-row:hover {
  border-color: rgba(201, 169, 98, 0.3);
}

.menu-row .item-name,
.alert-row .alert-title {
  font-weight: 600;
  color: var(--text-primary);
}

.menu-row .item-desc,
.alert-row .alert-msg {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.menu-row .item-price {
  font-weight: 700;
  color: #E8D5A3;
}

.menu-action-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 98, 0.25);
  background: rgba(201, 169, 98, 0.08);
  color: var(--gold-light);
  cursor: pointer;
  transition: all 0.15s;
}

.menu-action-btn:hover {
  background: rgba(201, 169, 98, 0.18);
}

.menu-action-btn.danger {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
}

.menu-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Menu card grid */
.menu-filter-tabs {
  flex-wrap: wrap;
}

.menu-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
  align-content: start;
  padding: 12px;
  box-sizing: border-box;
}

.menu-card {
  position: relative;
  z-index: 1;
  background: rgba(11, 19, 37, 0.55);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: fadeIn 0.2s ease-out;
}

.menu-card:hover,
.menu-card:focus-visible,
.menu-card:focus-within,
.menu-card:active {
  z-index: 20;
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1.5px #D4AF37;
}

.menu-card-out {
  opacity: 0.65;
  border: 1.5px solid rgba(176, 148, 140, 0.38);
}

.menu-card-header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.menu-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.menu-card-img {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(201, 169, 98, 0.25);
}

.menu-card-info {
  flex: 1;
  min-width: 0;
}

.menu-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.menu-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.3;
}

.menu-category-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.3);
  color: var(--gold);
  white-space: nowrap;
}

.menu-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.menu-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Stock toggle switch */
.stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.stock-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.stock-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(248, 113, 113, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 999px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.stock-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #FCA5A5;
  border-radius: 50%;
  transition: transform 0.2s;
}

.stock-toggle input:checked + .stock-slider {
  background: rgba(201, 169, 98, 0.2);
  border-color: rgba(201, 169, 98, 0.45);
}

.stock-toggle input:checked + .stock-slider::after {
  transform: translateX(16px);
  background: var(--gold-light);
}

.stock-toggle-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.stock-toggle input:checked ~ .stock-toggle-label {
  color: var(--gold-light);
}

.stock-toggle-form {
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

/* Room feature toggles module */
.room-features-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 32rem;
}

.room-features-scope {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.room-features-scope-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary, #f5f5f5);
  cursor: pointer;
}

.room-features-scope-option input {
  accent-color: var(--gold, #c9a962);
  width: 1rem;
  height: 1rem;
}

.room-features-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.room-features-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.room-feature-toggle .stock-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  white-space: normal;
  line-height: 1.25;
}

.room-feature-toggle .stock-toggle-label strong {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-primary, #f5f5f5);
}

.room-feature-hint {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-dim, #94a3b8);
}

.room-features-status {
  word-break: break-all;
}

.modal-panel-wide {
  max-width: 32rem;
}

/* Edit Property — wide two-column dialog with sticky chrome */
.edit-property-modal {
  width: min(800px, 96vw);
  max-width: 56rem; /* ~max-w-4xl */
  max-height: min(90vh, 920px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.edit-property-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.edit-property-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(20, 30, 54, 0.98);
  position: sticky;
  top: 0;
  z-index: 2;
}
.edit-property-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.edit-property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .edit-property-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.edit-property-col {
  min-width: 0;
}
.edit-property-modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(20, 30, 54, 0.98);
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.edit-property-modal .sa-media-preview {
  max-height: 8rem; /* max-h-32 */
}
.edit-property-modal .sa-media-preview-wide {
  min-height: 4.5rem;
  max-height: 8rem;
}
.edit-property-modal .sa-preview-img,
.edit-property-modal .sa-preview-logo,
.edit-property-modal .sa-preview-wallpaper {
  max-height: 8rem;
  width: auto;
  object-fit: contain;
}

.edit-hotel-rooms-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.edit-hotel-rooms-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.edit-hotel-rooms-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-hotel-rooms-list {
  /* Tall enough for multi-room categories; list scrolls so all rooms are reachable */
  max-height: min(40vh, 22rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-right: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.edit-hotel-add-block-panel {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: rgba(201, 169, 98, 0.06);
}

.edit-hotel-add-block-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.hotel-room-blocks-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hotel-room-blocks-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.room-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.room-block-card {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.room-block-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.room-block-card-title {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-primary, #f5f5f5);
}

.room-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

@media (max-width: 640px) {
  .room-block-grid {
    grid-template-columns: 1fr;
  }
}

.room-block-fields label {
  display: block;
  font-size: 0.75rem;
  font-weight: 550;
  margin-bottom: 0.25rem;
  color: var(--text-muted, #cbd5e1);
}

.room-block-fields input,
.room-block-fields select,
.room-block-fields textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  outline: none;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #f5f5f5);
  font-size: 0.8125rem;
}

.room-block-fields textarea {
  min-height: 3.2rem;
  resize: vertical;
}

.room-category-group {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  /* Do not use overflow:hidden — it clipped room rows without a scrollport */
  overflow: visible;
  flex-shrink: 0;
  min-height: 0;
}

.room-category-group[open] {
  border-color: rgba(201, 169, 98, 0.35);
}

.room-category-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  user-select: none;
}

.room-category-summary::-webkit-details-marker {
  display: none;
}

.room-category-summary-title {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-primary, #f5f5f5);
}

.room-category-summary-meta {
  font-size: 0.6875rem;
  color: var(--text-dim, #94a3b8);
}

.room-category-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.65rem 0.65rem;
  /* Single large category (e.g. 16 Uncategorized) scrolls inside the accordion */
  max-height: min(32vh, 16rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.edit-hotel-room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.edit-hotel-room-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.edit-hotel-room-id {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-primary, #f5f5f5);
}

.edit-hotel-room-status {
  font-size: 0.6875rem;
  color: var(--text-dim, #94a3b8);
}

.edit-hotel-room-btns {
  display: flex;
  flex-shrink: 0;
  gap: 0.35rem;
}

.edit-hotel-room-btns .quick-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.check-in-modal-panel.modal-panel-wide {
  max-width: 36rem;
}

.check-in-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.check-in-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.7fr);
  gap: 0.85rem 0.75rem;
  align-items: end;
}

.check-in-field-name {
  grid-column: 2;
}

.check-in-field-full,
.check-in-section-label {
  grid-column: 1 / -1;
}

.check-in-section-label {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(201, 169, 98, 0.18);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 213, 163, 0.55);
}

.field-optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.65;
  font-size: 0.75rem;
}

.check-in-submit {
  margin-top: 0.25rem;
}

@media (max-width: 560px) {
  .check-in-grid {
    grid-template-columns: 1fr;
  }

  .check-in-field-name,
  .check-in-field-salutation,
  .check-in-field-full,
  .check-in-section-label {
    grid-column: 1;
  }
}

.dark-panel-form {
  background: rgba(11, 19, 37, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.dark-panel-form .form-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.btn-gold {
  padding: 0.5rem 1.25rem;
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid rgba(201, 169, 98, 0.4);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-gold:hover {
  background: rgba(201, 169, 98, 0.28);
  box-shadow: 0 0 12px var(--gold-glow);
}

.btn-purple {
  padding: 0.75rem;
  width: 100%;
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #DDD6FE;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-purple:hover {
  background: rgba(147, 51, 234, 0.35);
}

/* TV Mass Messaging */
.broadcast-form {
  max-width: 100%;
}

.alert-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.alert-preset-btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 98, 0.2);
  background: rgba(11, 19, 37, 0.55);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.alert-preset-btn:hover {
  border-color: rgba(201, 169, 98, 0.4);
  color: var(--gold-light);
}

.alert-preset-btn.active {
  background: rgba(201, 169, 98, 0.18);
  border-color: rgba(201, 169, 98, 0.5);
  color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.target-selector {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.target-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
}

.target-option input {
  accent-color: var(--gold);
}

.btn-broadcast {
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.25) 0%, rgba(147, 51, 234, 0.2) 100%);
  border: 1px solid rgba(201, 169, 98, 0.45);
  color: var(--gold-light);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-broadcast:hover {
  box-shadow: 0 0 20px var(--gold-glow);
  border-color: var(--gold);
}

.btn-danger-outline {
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #FCA5A5 !important;
  background: rgba(248, 113, 113, 0.08) !important;
}

.btn-danger-outline:hover {
  background: rgba(248, 113, 113, 0.18) !important;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.25) !important;
}

.broadcast-history {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.broadcast-row {
  background: rgba(11, 19, 37, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}

.broadcast-row:hover {
  border-color: rgba(201, 169, 98, 0.3);
}

.broadcast-row-revoked {
  opacity: 0.55;
}

.broadcast-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.broadcast-row-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.broadcast-type-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.broadcast-type-emergency {
  background: rgba(139, 90, 90, 0.18);
  color: #D4C4BC;
  border: 1px solid rgba(176, 148, 140, 0.38);
}

.broadcast-type-event {
  background: rgba(148, 163, 184, 0.12);
  color: #B8C2D0;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.broadcast-type-promotional {
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 98, 0.32);
}

.broadcast-type-checkout {
  background: rgba(201, 169, 98, 0.1);
  color: #DCC89A;
  border: 1px solid rgba(201, 169, 98, 0.28);
}

.broadcast-status-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.broadcast-status-badge.status-delivered {
  background: rgba(201, 169, 98, 0.12);
  color: #DCC89A;
  border: 1px solid rgba(201, 169, 98, 0.32);
}

.status-revoked {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.broadcast-time {
  font-size: 0.6875rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.broadcast-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.broadcast-preview {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.broadcast-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.broadcast-target {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

#broadcast-history::-webkit-scrollbar {
  width: 6px;
}

#broadcast-history::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.25);
  border-radius: 999px;
}

/* Service request cards (Housekeeping & Concierge) */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
  align-content: start;
}

.service-card {
  background: rgba(11, 19, 37, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeIn 0.2s ease-out;
}

.service-card:hover {
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.service-card-pending,
.service-card-in_progress,
.service-card-completed {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card-completed {
  opacity: 0.82;
}

.service-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.service-card-info {
  flex: 1;
  min-width: 0;
}

.service-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-room {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gold);
}

.service-type {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.service-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.service-details {
  font-size: 0.8125rem;
  color: var(--gold);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.service-schedule {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #F5E6C3;
  background: rgba(201, 169, 98, 0.18);
  border: 1px solid rgba(201, 169, 98, 0.45);
}

.service-schedule strong {
  color: #FFE7A8;
  font-weight: 800;
}

.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.req-status-badge {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.req-status-pending {
  background: rgba(139, 115, 85, 0.16);
  color: #C4B59A;
  border: 1px solid rgba(139, 115, 85, 0.35);
}

.req-status-progress {
  background: rgba(148, 163, 184, 0.12);
  color: #B8C2D0;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.req-status-completed {
  background: rgba(201, 169, 98, 0.12);
  color: #DCC89A;
  border: 1px solid rgba(201, 169, 98, 0.32);
}

.req-status-cancelled {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hk-view-tabs {
  flex-wrap: wrap;
}

.hk-view-tabs .filter-tab {
  flex: 1;
  min-width: 140px;
  text-align: center;
  gap: 0.4rem;
}

.hk-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: #94A3B8;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.hk-tab-badge.has-items {
  background: rgba(201, 169, 98, 0.16);
  color: #DCC89A;
  border: 1px solid rgba(201, 169, 98, 0.35);
}

.filter-tab.active .hk-tab-badge.has-items {
  background: rgba(201, 169, 98, 0.3);
  color: var(--gold-light);
  border-color: rgba(201, 169, 98, 0.5);
}

.nav-pending-badge {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.16);
  color: #DCC89A;
  border: 1px solid rgba(201, 169, 98, 0.35);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-pending-badge.hidden,
.nav-pending-badge[hidden] {
  display: none !important;
}

#nav-kds-badge.nav-pending-badge {
  background: linear-gradient(180deg, #D4AF37 0%, #B8952F 100%);
  border: 1px solid rgba(232, 213, 163, 0.35);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(201, 169, 98, 0.35);
}

.cleaning-room-card {
  background: rgba(11, 19, 37, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeIn 0.2s ease-out;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cleaning-room-card:hover {
  border-color: rgba(201, 169, 98, 0.28);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#hk-room-cleaning-list::-webkit-scrollbar {
  width: 6px;
}

#hk-room-cleaning-list::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.3);
  border-radius: 999px;
}

#housekeeping-list::-webkit-scrollbar,
#concierge-list::-webkit-scrollbar {
  width: 6px;
}

#housekeeping-list::-webkit-scrollbar-thumb,
#concierge-list::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.25);
  border-radius: 999px;
}

/* ── Executive Analytics ── */
.analytics-body {
  overflow-y: auto;
}

.ana-live-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.32);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  animation: none;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 1100px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .analytics-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(11, 19, 37, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.analytics-kpi-card:hover {
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 0 20px rgba(201, 169, 98, 0.08);
}

.analytics-kpi-occupancy,
.analytics-kpi-revenue,
.analytics-kpi-requests,
.analytics-kpi-housekeeping {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-kpi-icon {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.9;
}

.analytics-kpi-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.analytics-kpi-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.analytics-kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}

.analytics-kpi-occupancy .analytics-kpi-value,
.analytics-kpi-revenue .analytics-kpi-value,
.analytics-kpi-requests .analytics-kpi-value,
.analytics-kpi-housekeeping .analytics-kpi-value {
  color: var(--gold-light);
}

.analytics-kpi-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.analytics-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .analytics-charts-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-widget {
  background: rgba(11, 19, 37, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
}

.analytics-widget-wide {
  min-width: 0;
}

.analytics-widget-header {
  margin-bottom: 0.85rem;
}

.analytics-widget-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.analytics-widget-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.analytics-chart-wrap {
  position: relative;
  width: 100%;
}

.analytics-chart-doughnut {
  height: 240px;
}

.analytics-chart-line {
  height: 260px;
}

.top-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.top-menu-item {
  padding: 0.65rem 0.75rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(201, 169, 98, 0.12);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.top-menu-item:hover {
  border-color: rgba(201, 169, 98, 0.3);
}

.top-menu-item-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.top-item-rank {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-dim);
  min-width: 1.5rem;
}

.top-item-rank-gold {
  color: var(--gold);
}

.top-item-rank-silver {
  color: #CBD5E1;
}

.top-item-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-item-qty {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
}

.top-item-bar-track {
  height: 6px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.top-item-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.55), rgba(201, 169, 98, 0.9));
  border-radius: 999px;
  transition: width 0.4s ease-out;
  box-shadow: none;
}

.analytics-body::-webkit-scrollbar {
  width: 6px;
}

.analytics-body::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.25);
  border-radius: 999px;
}

/* Placeholder modules */
.placeholder-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.placeholder-module h2 {
  color: var(--gold-light) !important;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Scrollbars — dark */
.content-area::-webkit-scrollbar,
.module-card-body::-webkit-scrollbar,
#orders-list::-webkit-scrollbar,
#menu-list::-webkit-scrollbar,
#recent-alerts::-webkit-scrollbar,
#guest-room-list::-webkit-scrollbar {
  width: 6px;
}
.content-area::-webkit-scrollbar-thumb,
.module-card-body::-webkit-scrollbar-thumb,
#orders-list::-webkit-scrollbar-thumb,
#menu-list::-webkit-scrollbar-thumb,
#recent-alerts::-webkit-scrollbar-thumb,
#guest-room-list::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.25);
  border-radius: 999px;
}

/* Existing utilities */
#new-order-banner:not(.hidden) {
  animation: slideDown 0.35s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#orders-count.has-pending {
  animation: ping-soft 2s ease-in-out infinite;
}
@keyframes ping-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(201, 169, 98, 0); }
}
.conn-dot.connected { background-color: #8FA089; }
.conn-dot.connecting { background-color: #C4B59A; animation: pulse 1s infinite; }
.conn-dot.disconnected { background-color: #B89A96; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal-panel {
  background: #141E36;
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  width: 100%;
  max-width: 28rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.2s ease-out;
  color: var(--text-primary);
}

.modal-panel h3 {
  color: var(--gold-light);
}

.modal-close-btn {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--gold-light);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
body.modal-open { overflow: hidden; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -- Multi-tenant login / super-admin -- */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(201, 169, 98, 0.12), transparent 50%),
    var(--main-bg);
}
.login-card {
  width: min(420px, 100%);
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.login-brand { text-align: center; margin-bottom: 1.5rem; }
.login-brand h1 { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin-top: 0.75rem; }
.login-brand p { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }
.login-bootstrap-btn {
  margin-top: 1rem;
  width: 100%;
  background: transparent;
  border: 1px dashed var(--glass-border);
  color: var(--text-muted);
  border-radius: 0.75rem;
  padding: 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.login-bootstrap-btn:hover { color: var(--gold-light); border-color: var(--gold); }
.login-hint { margin-top: 1rem; font-size: 0.7rem; color: var(--text-dim); text-align: center; }
.login-hint code { color: var(--gold-light); }

.super-admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(201, 169, 98, 0.08), transparent 42%),
    radial-gradient(ellipse at 90% 10%, rgba(56, 189, 248, 0.05), transparent 40%),
    var(--main-bg);
}
.super-admin-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
}
.super-admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.super-admin-content {
  padding: 1.5rem 1.75rem 2rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.impersonate-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.impersonate-select {
  min-width: 220px;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--main-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}
.hotels-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hotels-table th,
.hotels-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
  color: var(--text-primary);
}
.hotels-table th {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.hotel-id-code {
  font-size: 0.8rem;
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.status-pill-active { background: rgba(201, 169, 98, 0.12); color: #DCC89A; }
.status-pill-inactive { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.property-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.property-type-badge-hotel {
  background: rgba(201, 169, 98, 0.16);
  color: #e8d5a3;
  border: 1px solid rgba(201, 169, 98, 0.35);
}
.property-type-badge-corporate {
  background: rgba(0, 102, 179, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.helpdesk-form-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.helpdesk-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.helpdesk-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 0.9rem;
  border: 1px solid var(--glass-border);
  background: rgba(11, 19, 37, 0.55);
}
.helpdesk-contact-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}
.helpdesk-contact-ext {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
}
.helpdesk-contact-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.quick-btn-edit {
  background: rgba(201, 169, 98, 0.1);
  color: var(--gold-light);
  border-color: rgba(201, 169, 98, 0.4);
}
.quick-btn-edit:hover {
  background: rgba(201, 169, 98, 0.18);
  box-shadow: none;
}

.agenda-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.agenda-form-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.agenda-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.agenda-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 0.9rem;
  border: 1px solid var(--glass-border);
  background: rgba(11, 19, 37, 0.55);
}
.agenda-item-time {
  flex-shrink: 0;
  min-width: 9.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #c9a962;
}
.agenda-item-body {
  flex: 1;
  min-width: 0;
}
.agenda-item-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}
.agenda-item-location {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
}
.agenda-item-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .agenda-item-card {
    flex-wrap: wrap;
  }
  .agenda-item-time {
    min-width: 100%;
  }
  .agenda-item-actions {
    width: 100%;
  }
}

.sa-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.sa-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(27, 40, 56, 0.95), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.sa-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 55%),
    rgba(201, 169, 98, 0.18);
  border: 1px solid rgba(201, 169, 98, 0.28);
  position: relative;
}
.sa-stat-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  background: var(--gold);
  opacity: 0.85;
}
.sa-stat-icon-active {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.3);
}
.sa-stat-icon-active::after {
  background: #34d399;
  border-radius: 999px;
}
.sa-stat-icon-screens {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.3);
}
.sa-stat-icon-screens::after {
  width: 1.15rem;
  height: 0.75rem;
  border-radius: 0.2rem;
  background: #38bdf8;
}
.sa-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}
.sa-stat-value {
  margin: 0.2rem 0 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sa-hotels-card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.sa-hotel-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.sa-hotel-thumb {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.8);
  flex-shrink: 0;
}
.sa-hotel-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.12);
}
.sa-screen-count {
  display: inline-block;
  min-width: 1.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sa-media-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  border-radius: 0.85rem;
  border: 1px dashed var(--glass-border);
  background: rgba(11, 19, 37, 0.55);
  overflow: hidden;
}
.sa-media-preview-wide { min-height: 7rem; }
.sa-preview-img {
  max-width: 100%;
  max-height: 7rem;
  object-fit: contain;
}
.sa-preview-logo { max-height: 4rem; }
.sa-preview-placeholder {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.sa-status-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--glass-border);
  background: rgba(11, 19, 37, 0.45);
}
.sa-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}
.sa-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sa-toggle-track {
  width: 2.6rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  transition: background 0.15s ease;
}
.sa-toggle-track::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #e2e8f0;
  transition: transform 0.15s ease;
}
.sa-toggle input:checked + .sa-toggle-track {
  background: rgba(52, 211, 153, 0.35);
  border-color: rgba(52, 211, 153, 0.5);
}
.sa-toggle input:checked + .sa-toggle-track::after {
  transform: translateX(1.15rem);
  background: #34d399;
}
.sa-toggle-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #34d399;
  min-width: 3.5rem;
}
.sa-toggle-label.is-inactive { color: #94a3b8; }

/* TV Kiosk Settings modal */
.kiosk-pkg-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.kiosk-pkg-row .sa-field {
  flex: 1;
}
.kiosk-pkg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
}
.kiosk-pkg-tags:empty::before {
  content: 'No packages yet — add YouTube, Prime, IPTV, etc.';
  color: var(--text-dim);
  font-size: 0.78rem;
}
.kiosk-pkg-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.35);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.kiosk-pkg-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kiosk-pkg-tag button {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: none;
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}
.kiosk-pkg-tag button:hover {
  background: rgba(248, 113, 113, 0.4);
}
.quick-btn-kiosk,
.btn-secondary.kiosk-settings-btn {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(96, 165, 250, 0.06));
  border-color: rgba(96, 165, 250, 0.45);
  color: #93c5fd;
}
.quick-btn-kiosk:hover,
.btn-secondary.kiosk-settings-btn:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.28), rgba(96, 165, 250, 0.1));
  color: #fff;
}
.btn-secondary {
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

@media (max-width: 960px) {
  .sa-stats-grid { grid-template-columns: 1fr; }
}

.tenant-banner {
  margin: 0 0.85rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid var(--glass-border);
}
.tenant-banner-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tenant-banner-name {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
}
.logo-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.impersonation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(99, 102, 241, 0.18);
  border-bottom: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.login-error {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-size: 0.85rem;
  line-height: 1.4;
}

.login-success {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(6, 78, 59, 0.35);
  color: #a7f3d0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.login-link-btn {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.35rem;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}

.staff-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.account-deactivated-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(185, 28, 28, 0.18), transparent 50%),
    rgba(11, 19, 37, 0.94);
  backdrop-filter: blur(6px);
}
.account-deactivated-gate.hidden {
  display: none;
}
.account-deactivated-card {
  width: min(440px, 100%);
  padding: 2rem 1.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.account-deactivated-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fca5a5;
}
.account-deactivated-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.account-deactivated-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.account-deactivated-hotel {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}
.account-deactivated-hotel:empty {
  display: none;
}
.account-deactivated-logout {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
}

.app-shell.pms-locked {
  pointer-events: none;
  filter: grayscale(0.35) brightness(0.55);
}

.pms-impersonate { margin-right: 0.5rem; }
.opacity-60 { opacity: 0.6; pointer-events: none; }

/* ── Bulk Menu Upload ─────────────────────────────────────────────────────── */
.modal-panel-xl {
  max-width: 56rem;
  width: min(56rem, 96vw);
  max-height: 90vh;
  overflow-y: auto;
}

.btn-secondary-outline {
  background: transparent !important;
  border-color: rgba(201, 169, 98, 0.45) !important;
  color: #E8D5A3 !important;
  box-shadow: none !important;
}

.btn-secondary-outline:hover {
  background: rgba(201, 169, 98, 0.14) !important;
  color: #F5E6C8 !important;
}

.bulk-upload-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.bulk-upload-hint {
  font-size: 0.75rem;
  color: rgba(232, 213, 163, 0.55);
}

.bulk-dropzone {
  border: 1.5px dashed rgba(201, 169, 98, 0.35);
  border-radius: 14px;
  background: rgba(11, 19, 37, 0.45);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  margin-bottom: 1rem;
}

.bulk-dropzone:hover,
.bulk-dropzone:focus-visible,
.bulk-dropzone.is-dragover {
  border-color: rgba(201, 169, 98, 0.75);
  background: rgba(201, 169, 98, 0.08);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.12);
  outline: none;
}

.bulk-dropzone-icon {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.bulk-dropzone-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gold-light);
}

.bulk-dropzone-sub {
  font-size: 0.75rem;
  color: rgba(232, 213, 163, 0.5);
  margin-top: 0.2rem;
}

.bulk-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.bulk-preview-wrap {
  margin-bottom: 1rem;
}

.bulk-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.bulk-preview-scroll {
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.bulk-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.bulk-preview-table th,
.bulk-preview-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.bulk-preview-table th {
  position: sticky;
  top: 0;
  background: rgba(15, 22, 41, 0.98);
  color: var(--gold);
  font-weight: 600;
  z-index: 1;
}

.bulk-desc-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-row-ok td:last-child {
  color: #34d399;
  font-weight: 600;
}

.bulk-row-bad {
  background: rgba(239, 68, 68, 0.06);
}

.bulk-row-bad td:last-child {
  color: #fca5a5;
  white-space: normal;
  max-width: 160px;
}

.bulk-progress-wrap {
  margin-bottom: 1rem;
}

.bulk-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(232, 213, 163, 0.75);
  margin-bottom: 0.35rem;
}

.bulk-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bulk-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a962, #e8d5a3);
  transition: width 0.2s ease;
}

.bulk-upload-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bulk-upload-actions .btn-gold:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.announcement-admin-card {
  margin-bottom: 1.25rem;
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: rgba(12, 18, 32, 0.72);
  border: 1px solid rgba(201, 169, 98, 0.22);
}

.announcement-admin-head {
  margin-bottom: 12px;
}

.announcement-admin-hint {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.announcement-admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px 12px;
}

.announcement-admin-copy {
  min-width: 180px;
  flex: 0 1 auto;
}

.announcement-admin-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8d5a3;
}

.announcement-admin-path {
  margin: 4px 0 0;
  font-size: 0.68rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #64748b;
  word-break: break-all;
}

.announcement-admin-input {
  flex: 1 1 280px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(7, 11, 20, 0.85);
  color: #f8fafc;
  font-size: 0.92rem;
  outline: none;
}

.announcement-admin-input:focus {
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.14);
}

.announcement-admin-row .btn-gold,
.announcement-admin-row .quick-btn {
  flex: 0 0 auto;
  min-height: 44px;
}

.intro-video-url-row {
  margin-top: 12px;
}

.intro-video-preview {
  display: block;
  width: min(100%, 480px);
  max-height: 240px;
  margin-top: 14px;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ── Staff RBAC ───────────────────────────────────────────────────────────── */
.staff-role-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0B132B;
  background: linear-gradient(135deg, #E8D5A3, #C9A962);
}

.staff-users-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(201, 169, 98, 0.15);
}

.staff-users-table td {
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.staff-role-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 169, 98, 0.35);
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.12);
}

.staff-role-kitchen { border-color: rgba(251, 146, 60, 0.45); color: #FDBA74; background: rgba(251, 146, 60, 0.12); }
.staff-role-reception { border-color: rgba(96, 165, 250, 0.45); color: #93C5FD; background: rgba(96, 165, 250, 0.12); }
.staff-role-housekeeping { border-color: rgba(52, 211, 153, 0.45); color: #6EE7B7; background: rgba(52, 211, 153, 0.12); }
.staff-role-admin { border-color: rgba(232, 213, 163, 0.55); color: #E8D5A3; background: rgba(201, 169, 98, 0.16); }

.rbac-module-placeholder {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 169, 98, 0.18);
  background: rgba(11, 19, 37, 0.45);
}

.rbac-module-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
