.lookup-modal-card {
  width: min(920px, calc(100vw - 32px));
  max-height: min(90svh, 840px);
  background: var(--classic-frame-bg, #bcd4e6);
  border: 1.5px solid var(--classic-frame-border, #7d9cb8);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

#lookup-modal .app-modal-header {
  background: linear-gradient(180deg, #2a2347 0%, #1e1933 100%);
  padding: 16px 20px;
  border-bottom: 2px solid #161226;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

#lookup-modal .drawer-eyebrow {
  color: #bcd4e6 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px;
}

#lookup-modal .app-modal-header h2 {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#lookup-modal .app-modal-header p {
  color: #cad9e6;
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.35;
}

#lookup-modal .app-modal-close-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

#lookup-modal .app-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px);
}

.message-logs-modal-card {
  width: min(1080px, calc(100vw - 28px));
  max-height: min(88svh, 820px);
  display: flex;
  flex-direction: column;
}

.message-logs-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px;
  padding: 14px 16px;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 12px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 5%, transparent);
  overflow-y: auto;
}

.message-logs-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.message-log-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--theme-panel, #f8fafd);
  border: 1px solid var(--theme-border, #cad9e6);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.message-log-kpi-card.is-success {
  background: #f0fdf4;
  border-color: #86efac;
}

.message-log-kpi-card.is-warning {
  background: #fef2f2;
  border-color: #fca5a5;
}

.message-log-kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-quiet, #546c86);
}

.message-log-kpi-card.is-success .message-log-kpi-label {
  color: #166534;
}

.message-log-kpi-card.is-warning .message-log-kpi-label {
  color: #991b1b;
}

.message-log-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--theme-text, #21133d);
}

.message-log-kpi-card.is-success .message-log-kpi-value {
  color: #15803d;
}

.message-log-kpi-card.is-warning .message-log-kpi-value {
  color: #dc2626;
}

.message-logs-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
}

.message-logs-search-field {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid var(--theme-border, #b8cde2);
  border-radius: 9999px;
  background: var(--theme-panel, #ffffff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.message-logs-search-field:focus-within {
  border-color: var(--mobile-coral, #ec665c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, #ec665c) 16%, transparent);
}

.message-logs-search-icon {
  color: var(--theme-quiet, #6482a5);
  flex-shrink: 0;
}

.message-logs-search-field input {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0 !important;
  outline: none;
  font-size: 0.86rem;
  background: transparent !important;
  color: var(--theme-text, #21133d);
  box-shadow: none !important;
}

.message-logs-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.message-logs-tab {
  min-height: 32px;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid var(--theme-border, #b8cde2);
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.message-logs-tab:hover:not(.is-active) {
  background: var(--theme-panel, #f0f6fc);
  border-color: var(--theme-accent, #221d3b);
}

.message-logs-tab.is-active {
  background: var(--mobile-coral, #ec665c);
  border-color: var(--mobile-coral, #ec665c);
  color: #ffffff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-accent, #ec665c) 25%, transparent);
}

.message-logs-table-wrap {
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 10px;
  background: var(--theme-panel, #ffffff);
  max-height: 440px;
  overflow-y: auto;
  overflow-x: auto;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.message-logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: left;
}

.message-logs-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, var(--theme-panel, #d6ebf7) 0%, var(--theme-panel, #c3e1f2) 100%);
  color: var(--theme-text, #21133d);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--theme-border, #9bc7df);
  white-space: nowrap;
}

.message-logs-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--theme-border, #e4edf6);
  vertical-align: middle;
  height: 30px;
  box-sizing: border-box;
}

.message-logs-table tr:hover td {
  background: var(--theme-panel, #f0f6fc);
}

.message-logs-table tr.is-issue td {
  background: #fffafa;
}

.message-logs-table tr.is-issue:hover td {
  background: #fee2e2;
}

.message-log-time {
  font-size: 0.76rem;
  color: var(--theme-quiet, #64748b);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.message-log-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.message-log-channel-badge.is-email {
  background: var(--theme-panel, #eff6ff);
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.message-log-channel-badge.is-sms {
  background: #fdf2f8;
  color: #9d174d;
  border: 1px solid #fbcfe8;
}

.message-log-recipient {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.message-log-recipient-name {
  font-weight: 700;
  color: var(--theme-text, #21133d);
}

.message-log-recipient-target {
  font-size: 0.72rem;
  color: var(--theme-quiet, #64748b);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.message-log-subject {
  font-weight: 600;
  color: var(--theme-quiet, #334155);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.message-log-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.message-log-status-badge.is-delivered,
.message-log-status-badge.is-sent {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.message-log-status-badge.is-bounced {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.message-log-status-badge.is-failed {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.message-log-status-badge.is-pending {
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #64748b);
  border: 1px solid var(--theme-border, #cbd5e1);
}

.message-log-detail-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.message-log-code-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #475569);
  border: 1px solid var(--theme-border, #cbd5e1);
  flex-shrink: 0;
}

.message-log-code-badge.is-err {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.message-log-error-text {
  font-size: 0.74rem;
  color: #b91c1c;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-log-info-text {
  font-size: 0.74rem;
  color: var(--theme-quiet, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-logs-empty-state {
  text-align: center;
  padding: 36px 16px;
  color: var(--theme-quiet, #64748b);
  font-size: 0.88rem;
}

.commitments-modal-card {
  width: min(720px, calc(100vw - 32px));
}

.commitments-body {
  min-height: 260px;
  max-height: calc(100svh - 220px);
  overflow: auto;
  margin: 12px;
  padding: 14px;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 12px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 5%, transparent);
}

.commitments-list {
  display: grid;
  gap: 10px;
}

.commitments-list .priority-item {
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 10px;
  background: var(--theme-panel, #f8fafd);
}

.commitments-list .priority-item:first-of-type {
  border-top: 1px solid var(--theme-border, #cad9e6);
}

.lookup-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--classic-frame-bg, #bcd4e6);
  overflow-y: auto;
}

.lookup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--theme-panel, #ffffff);
  border: 1px solid var(--classic-card-border, #cad9e6);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.lookup-field span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-text, #1e293b);
}

.lookup-field input {
  width: 100%;
  min-height: 42px;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--theme-border, #b8c9d9) !important;
  background: var(--theme-panel, #f8fafc);
  color: var(--theme-text, #0f172a);
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.lookup-field input:focus {
  background: var(--theme-panel, #ffffff);
  border-color: var(--classic-cta-amber, #d98c2b) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, #ec665c) 18%, transparent) !important;
  outline: none;
}

.lookup-results {
  min-height: 280px;
  max-height: calc(100svh - 260px);
  overflow-y: auto;
  border-radius: 12px;
  background: transparent;
}

.lookup-results-shell {
  display: grid;
  gap: 12px;
}

.lookup-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch;
}

.lookup-filter-chip {
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border: 1px solid var(--theme-border, #cad9e6);
  background: var(--theme-panel, #ffffff);
  color: var(--theme-quiet, #475569);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
  transition: all 0.15s ease;
}

.lookup-filter-chip:hover {
  background: #f1f7fc;
  border-color: var(--theme-border, #9ab7ce);
}

.lookup-filter-chip.active {
  background: var(--classic-cta-amber, #d98c2b);
  border-color: var(--classic-cta-amber, #d98c2b);
  color: #ffffff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-accent, #ec665c) 30%, transparent);
}

.lookup-intro {
  padding: 10px 14px;
  border: 1px solid var(--classic-card-border, #cad9e6);
  border-radius: 12px;
  background: var(--theme-panel, #ffffff);
  color: var(--theme-quiet, #475569);
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--theme-text, #21133d) 3%, transparent);
}

.lookup-empty-filter {
  padding: 18px;
  text-align: center;
  background: var(--theme-panel, #ffffff);
  border: 1px solid var(--classic-card-border, #cad9e6);
  border-radius: 12px;
  color: var(--theme-quiet, #64748b);
  font-size: 0.88rem;
}

.lookup-group {
  display: grid;
  gap: 8px;
  background: var(--theme-panel, #ffffff);
  border: 1px solid var(--classic-card-border, #cad9e6);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 3px 10px rgba(34, 29, 59, 0.05);
}

.lookup-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 8px;
  border-bottom: 1.5px solid var(--theme-border, #edf2f7);
  color: var(--theme-text, #1e293b);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lookup-group-badge {
  background: var(--classic-pill-bg, #e6f0fa);
  color: var(--classic-pill-text, #1e3a5f);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.lookup-group-list {
  display: grid;
  gap: 4px;
  background: transparent;
}

.lookup-result-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--theme-panel, #ffffff);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lookup-result-button:hover,
.lookup-result-button:focus-visible {
  background: #f1f7fc;
  border-color: var(--theme-border, #cad9e6);
  transform: translateX(2px);
  outline: none;
}

.lookup-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: var(--theme-panel, #f8fafc);
  color: var(--theme-text, #221d3b);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1.5px #cad9e6, 0 0 0 3px #ffffff;
  flex-shrink: 0;
}

.lookup-result-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.lookup-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lookup-result-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--theme-text, #0f172a);
}

.lookup-result-badge {
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-badge-mint {
  background: #e2f6f0;
  color: #065f46;
}

.status-badge-peach {
  background: #fdeee3;
  color: #9a3412;
}

.status-badge-ice {
  background: #e6f0fa;
  color: #1e3a5f;
}

.lookup-result-meta {
  font-size: 0.82rem;
  color: var(--theme-quiet, #475569);
}

.lookup-result-note {
  font-size: 0.78rem;
  color: var(--theme-quiet, #64748b);
}

.lookup-chevron {
  color: var(--theme-quiet, #94a3b8);
  font-size: 1.25rem;
  font-weight: 600;
  margin-left: auto;
  flex-shrink: 0;
}

/* ==========================================================================
   Mobile Version Update Notification Modal
   ========================================================================== */

.mobile-version-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.mobile-version-modal[hidden] {
  display: none !important;
}

.mobile-version-modal.is-open:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-version-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.mobile-version-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  background: var(--theme-panel, #ffffff);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28), 0 4px 12px rgba(15, 23, 42, 0.12);
  padding: 26px 20px 22px;
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: mobileVersionCardIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileVersionCardIn {
  from {
    transform: scale(0.92) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.mobile-version-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--theme-quiet, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.mobile-version-close:hover,
.mobile-version-close:active {
  background: var(--theme-panel, #e2e8f0);
  color: var(--theme-text, #0f172a);
}

.mobile-version-badge-wrap {
  margin-bottom: 12px;
}

.mobile-version-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-panel, #eff6ff) 0%, #e0e7ff 100%);
  border: 2px solid #c7d2fe;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  animation: mobileVersionIconPulse 2.5s infinite ease-in-out;
}

@keyframes mobileVersionIconPulse {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.06);
  }
}

.mobile-version-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f46e5;
  margin-bottom: 6px;
}

.mobile-version-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--theme-text, #0f172a);
  letter-spacing: -0.015em;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.mobile-version-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--theme-quiet, #475569);
  margin: 0 0 20px 0;
  padding: 0 6px;
}

.mobile-version-refresh-button {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-version-refresh-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.mobile-version-footer-note {
  font-size: 11.5px;
  color: var(--theme-quiet, #94a3b8);
  margin: 12px 0 0 0;
  line-height: 1.35;
}

/* Theme 2 Classic Desktop Styling for Legal, Reviews, and Admin Modals */
.legal-modal-card {
  width: min(840px, calc(100vw - 32px));
  max-height: min(90svh, 800px);
  background: var(--classic-frame-bg, #bcd4e6);
  border: 1.5px solid var(--classic-frame-border, #7d9cb8);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

#terms-conditions-modal .app-modal-header,
#privacy-policy-modal .app-modal-header,
#google-reviews-modal .app-modal-header,
#admin-control-modal .app-modal-header,
#online-booking-modal .app-modal-header {
  background: linear-gradient(180deg, #2a2347 0%, #1e1933 100%);
  padding: 16px 20px;
  border-bottom: 2px solid #161226;
  color: #ffffff;
}

#terms-conditions-modal .app-modal-header h2,
#privacy-policy-modal .app-modal-header h2,
#google-reviews-modal .app-modal-header h2,
#admin-control-modal .app-modal-header h2,
#online-booking-modal .app-modal-header h2 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 2px 0 4px 0;
}

#terms-conditions-modal .app-modal-header p,
#privacy-policy-modal .app-modal-header p,
#google-reviews-modal .app-modal-header p,
#admin-control-modal .app-modal-header p,
#online-booking-modal .app-modal-header p {
  color: #c5bfe0;
  font-size: 0.85rem;
  margin: 0;
}

.legal-modal-body {
  padding: 16px;
  overflow-y: auto;
  background: var(--classic-frame-bg, #bcd4e6);
}

.legal-card-content {
  background: var(--theme-panel, #ffffff);
  border-radius: 12px;
  padding: 24px 28px;
  border: 1px solid var(--theme-border, #cad9e6);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: var(--theme-text, #1e293b);
  line-height: 1.6;
  font-size: 0.92rem;
}

.legal-card-content h3 {
  color: var(--theme-text, #21133d);
  font-size: 1.05rem;
  margin: 20px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--theme-border, #e2e8f0);
}

.legal-card-content p {
  margin: 0 0 12px 0;
  color: var(--theme-quiet, #334155);
}

#terms-conditions-modal .terms-quick-read {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--theme-accent, #bf9180);
  border-radius: 8px;
  background: color-mix(in srgb, var(--theme-accent, #bf9180) 10%, var(--theme-panel, #fff));
  line-height: 1.5;
}
#terms-conditions-modal .terms-quick-read strong,
#terms-conditions-modal .legal-card-content p > strong { color: var(--theme-text, #181d26); }

.legal-callout-box {
  background: var(--theme-panel, #eff6ff);
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #1e3a8a;
  line-height: 1.5;
}

/* Google Reviews Modal */
.google-reviews-modal-card {
  width: min(840px, calc(100vw - 32px));
  max-height: min(90svh, 840px);
  background: var(--classic-frame-bg, #bcd4e6);
  border: 1.5px solid var(--classic-frame-border, #7d9cb8);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.google-reviews-body {
  padding: 16px;
  overflow-y: auto;
  background: var(--classic-frame-bg, #bcd4e6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.google-reviews-summary-card {
  background: var(--theme-panel, #ffffff);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--theme-border, #cad9e6);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
}

.google-rating-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.google-rating-score {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--theme-text, #21133d);
  line-height: 1;
}

.google-stars {
  color: #f59e0b;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.google-rating-count {
  font-size: 0.8rem;
  color: var(--theme-quiet, #64748b);
  margin-bottom: 6px;
}

.google-write-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.82rem !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  display: inline-block;
  font-weight: 600;
}

.google-rating-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rating-bar-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--theme-quiet, #475569);
}

.rating-bar-track {
  background: var(--theme-panel, #e2e8f0);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}

.rating-bar-fill {
  background: #f59e0b;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.google-reviews-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.google-review-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.google-filter-chip {
  background: var(--theme-panel, #ffffff);
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--theme-quiet, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
}

.google-filter-chip:hover {
  background: var(--theme-panel, #f1f5f9);
  border-color: var(--theme-border, #94a3b8);
}

.google-filter-chip.active {
  background: var(--theme-text, #21133d);
  color: #ffffff;
  border-color: #21133d;
}

.google-sync-btn {
  background: var(--theme-panel, #ffffff) !important;
  border: 1px solid var(--theme-border, #94a3b8) !important;
  font-size: 0.82rem !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  cursor: pointer;
}

.google-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.google-review-card {
  background: var(--theme-panel, #ffffff);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid var(--theme-border, #cad9e6);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.google-review-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.google-review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 0 0 2px #e0e7ff;
}

.google-review-meta {
  display: flex;
  flex-direction: column;
}

.google-review-author {
  color: var(--theme-text, #0f172a);
  font-size: 0.92rem;
}

.google-review-sub {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
}

.google-review-stars {
  color: #f59e0b;
}

.google-review-date {
  color: var(--theme-quiet, #94a3b8);
}

.google-review-text {
  color: var(--theme-quiet, #334155);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.google-review-reply {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--theme-panel, #f8fafc);
  border-left: 3px solid #64748b;
  border-radius: 4px;
  font-size: 0.85rem;
}

.google-review-reply strong {
  color: var(--theme-text, #1e293b);
  display: block;
  margin-bottom: 4px;
}

.google-review-reply p {
  margin: 0;
  color: var(--theme-quiet, #475569);
}

/* Administrator Control Hub — Full-Page Workspace Architecture */
#admin-control-modal {
  padding: 0 !important;
}

.admin-fullpage-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 20px !important;
}

.admin-fullpage-header .modal-eyebrow {
  display: none !important;
}

.admin-fullpage-header h2 {
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.admin-fullpage-header p {
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
  margin: 2px 0 0 !important;
}

.admin-back-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.app-modal-card.admin-control-modal-card,
.admin-control-modal-card {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  background: var(--mobile-page-bg, #f4f3f8) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.admin-control-body {
  padding: 24px 28px 40px !important;
  overflow-y: auto !important;
  background: var(--mobile-page-bg, #f4f3f8) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 18px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.admin-nav-tabs {
  width: 100%;
  max-width: 1120px;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  border: 1px solid #d7d9de !important;
  box-shadow: 0 1px 4px rgba(33, 19, 61, 0.05) !important;
}

.admin-tab-btn {
  background: #f4f3f8;
  border: 1px solid #d7d9de;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #21133d;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  line-height: 1.25;
}

.admin-tab-btn:hover {
  background: #eae7f2;
  color: var(--mobile-purple, #21133d);
}

.admin-tab-btn.is-active {
  background: var(--mobile-coral, #ec665c) !important;
  color: #ffffff !important;
  border-color: var(--mobile-coral, #ec665c) !important;
  box-shadow: 0 2px 6px rgba(236, 102, 92, 0.35) !important;
}

.admin-tab-panel {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
}

.admin-section {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 26px 28px !important;
  border: 1px solid #d7d9de !important;
  box-shadow: 0 2px 10px rgba(33, 19, 61, 0.05) !important;
}

/* Create Staff Login & Temporary Password Card */
.admin-create-login-card {
  margin: 22px 0;
  padding: 20px 22px;
  border: 1px solid #d7d9de;
  border-radius: 14px;
  background: #faf9fc;
  box-sizing: border-box;
}

.admin-create-login-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--mobile-purple, #21133d);
}

.admin-create-login-desc {
  margin: 0 0 18px;
  font-size: 0.86rem;
  color: #5b546b;
  line-height: 1.45;
}

.admin-create-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: end;
}

.admin-create-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-create-login-field > span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mobile-purple, #21133d);
}

.admin-create-login-field input,
.admin-create-login-field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--mobile-purple, #21133d);
  font: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.admin-temp-pwd-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.admin-temp-pwd-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-temp-pwd-row button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.admin-create-login-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-create-login-status {
  font-size: 0.85rem;
  color: #5b546b;
}

.admin-create-login-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #9bc7df;
  background: rgba(195, 225, 242, 0.25);
  font-size: 0.85rem;
}

.admin-create-login-result-title {
  font-weight: 700;
  color: #21133d;
  margin-bottom: 8px;
}

.admin-created-login-link {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #9bc7df;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.84rem;
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .admin-control-body {
    padding: 14px 14px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .admin-section {
    padding: 18px 16px !important;
  }
  .admin-create-login-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Modern iOS-style toggle switch for Admin Settings */
.admin-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--mobile-card-border, #c3e1f2);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(33, 19, 61, 0.04);
}

.admin-switch-info strong {
  display: block;
  font-size: 1.05rem;
  color: var(--mobile-purple, #21133d);
  margin-bottom: 4px;
}

.admin-switch-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mobile-text-subtle, #5e5772);
  line-height: 1.45;
}

.mobile-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 32px;
  flex-shrink: 0;
}

.mobile-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.mobile-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 32px;
}

.mobile-switch-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

.mobile-switch input:checked + .mobile-switch-slider {
  background-color: var(--mobile-coral, #ec665c);
  box-shadow: 0 2px 8px rgba(236, 102, 92, 0.35);
}

.mobile-switch input:checked + .mobile-switch-slider:before {
  transform: translateX(22px);
}

@media (max-width: 680px) {
  .admin-control-modal-card {
    width: 100vw;
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .admin-control-body {
    padding: 12px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .admin-switch-card {
    padding: 14px 16px;
  }
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.admin-section-header h3 {
  margin: 0 0 4px 0;
  color: var(--theme-text, #21133d);
  font-size: 1.1rem;
}

.admin-section-header p {
  margin: 0;
  color: var(--theme-quiet, #64748b);
  font-size: 0.85rem;
}

/* Theme 2 treatment for the high-density Global Settings admin surface. */
#admin-tab-panel .admin-global-settings {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--classic-card-bg, #ffffff);
  border: 1px solid var(--classic-card-border, #cad9e6);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
#admin-tab-panel .admin-global-settings .admin-section-header { margin-bottom: 0; }
#admin-tab-panel .admin-global-settings .admin-section-header h3,
#admin-tab-panel .admin-global-settings h4 { color: var(--classic-text-main, #221d3b); }
#admin-tab-panel .admin-global-settings .settings-fieldset {
  margin: 0;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--classic-frame-border, #9ab7ce);
  border-radius: 12px;
}
#admin-tab-panel .admin-global-settings .settings-fieldset legend {
  padding: 4px 10px;
  color: #334e68;
  background: #ffffff;
  border: 1px solid #cad9e6;
  border-radius: 9999px;
  font-weight: 800;
}
#admin-tab-panel .admin-global-settings .weekday-toggle {
  border-color: #b8c9d9;
  background: #ffffff;
  color: var(--classic-text-main, #221d3b);
}
#admin-tab-panel .admin-global-settings .weekday-toggle:has(input:checked) {
  color: #ffffff;
  background: var(--classic-cta-dark, #212c3d);
  border-color: var(--classic-cta-amber, #d98c2b);
  box-shadow: 0 2px 5px rgba(33, 44, 61, 0.16);
}
.admin-global-tax {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 420px;
  padding: 12px 14px;
  color: var(--classic-text-main, #221d3b);
  background: #f8fbff;
  border: 1px solid #cad9e6;
  border-radius: 12px;
  font-weight: 700;
}
.admin-global-tax input {
  width: 112px;
  min-height: 38px;
  padding: 0 10px;
  color: #212c3d;
  background: #ffffff;
  border: 1px solid #b8c9d9;
  border-radius: 9px;
  font-weight: 700;
}
#admin-tab-panel .admin-provider-order { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
#admin-tab-panel .admin-provider-order li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 40px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 8px 4px 12px;
  background: #ffffff;
  border: 1px solid #cad9e6;
  border-radius: 10px;
}
#admin-tab-panel .admin-global-settings > button { align-self: flex-start; min-height: 38px; border-radius: 9999px; }
#admin-tab-panel .admin-global-settings > button[data-action="admin-global-save"] {
  color: #ffffff;
  background: var(--classic-cta-amber, #d98c2b);
  border: 1px solid var(--classic-cta-amber, #d98c2b);
  font-weight: 800;
}
#admin-tab-panel .admin-global-settings > button[data-action="admin-global-save"]:hover { background: #b45309; }

.admin-staff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-staff-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--theme-panel, #f8fafc);
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 8px;
}

.admin-staff-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--theme-text, #21133d);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

.admin-staff-info {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-role-badge {
  background: #e0e7ff;
  color: #3730a3;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-passkey-status {
  font-size: 0.78rem;
  color: #059669;
}

.admin-rbac-matrix-container {
  overflow-x: auto;
}

.admin-rbac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-rbac-table th,
.admin-rbac-table td {
  padding: 10px 12px;
  border: 1px solid var(--theme-border, #e2e8f0);
  text-align: center;
}

.admin-rbac-table th:first-child,
.admin-rbac-table td:first-child {
  text-align: left;
}

.admin-rbac-table th {
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #334155);
  font-weight: 600;
}

.perm-pill {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.perm-pill-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  padding: 3px 10px;
  font-family: inherit;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  outline: none;
  transition: filter 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.perm-pill-select:hover {
  filter: brightness(0.96);
  border-color: rgba(33, 19, 61, 0.16);
}

.perm-pill-select:focus-visible {
  border-color: var(--mobile-coral, #ec665c);
  box-shadow: 0 0 0 2px rgba(236, 102, 92, 0.2);
}

.perm-pill.full {
  background: #d1fae5;
  color: #065f46;
}

.perm-pill.partial {
  background: #fef3c7;
  color: #92400e;
}

.perm-pill.view {
  background: #e0f2fe;
  color: #0369a1;
}

.perm-pill.none {
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #94a3b8);
}

.admin-audit-ledger {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-audit-row {
  display: grid;
  grid-template-columns: 140px 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--theme-panel, #f8fafc);
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.85rem;
}

#admin-tab-panel .admin-audit-section { background: var(--classic-card-bg, #ffffff); }
#admin-tab-panel .admin-audit-row { grid-template-columns: minmax(150px, 190px) minmax(125px, 190px) minmax(0, 1fr); background: #ffffff; border-color: #cad9e6; border-radius: 10px; }
#admin-tab-panel .admin-audit-row .audit-badge { overflow-wrap: anywhere; background: #e6f0fa; color: #1e3a5f; }
#admin-tab-panel .admin-audit-details { min-width: 0; }
#admin-tab-panel .admin-audit-more { grid-column: 1 / -1; color: #475569; }
#admin-tab-panel .admin-audit-more summary { cursor: pointer; font-weight: 700; }
#admin-tab-panel .admin-audit-more pre { max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; background: #f8fbff; border: 1px solid #cad9e6; border-radius: 8px; }
.admin-audit-empty { padding: 18px 16px; color: #475569; text-align: center; background: #f8fbff; border: 1px dashed #9ab7ce; border-radius: 12px; }

@media (max-width: 700px) {
  #admin-tab-panel .admin-audit-row { grid-template-columns: minmax(0, 1fr); }
}

.audit-time {
  color: var(--theme-quiet, #64748b);
  font-size: 0.8rem;
}

.audit-badge {
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.audit-badge.audit-security {
  background: #e0e7ff;
  color: #3730a3;
}

.audit-badge.audit-finance {
  background: #d1fae5;
  color: #065f46;
}

.audit-badge.audit-system {
  background: #fef3c7;
  color: #92400e;
}

.audit-details strong {
  display: block;
  color: var(--theme-text, #0f172a);
}

.audit-details span {
  color: var(--theme-quiet, #475569);
  font-size: 0.8rem;
}

.admin-system-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-system-card {
  background: var(--theme-panel, #f8fafc);
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 8px;
  padding: 14px;
}

.admin-system-card h4 {
  margin: 0 0 6px 0;
  color: var(--theme-text, #0f172a);
  font-size: 0.92rem;
}

.admin-sys-status {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.admin-sys-status.online {
  color: #059669;
}

.admin-sys-status.planned {
  color: #d97706;
}

.admin-system-card p {
  margin: 0;
  color: var(--theme-quiet, #64748b);
  font-size: 0.8rem;
  line-height: 1.4;
}

.admin-access-denied {
  background: var(--theme-panel, #ffffff);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #fee2e2;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.admin-denied-badge {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.admin-access-denied h3 {
  color: #1e1933;
  margin: 0 0 8px 0;
}

.admin-access-denied p {
  color: var(--theme-quiet, #64748b);
  max-width: 500px;
  margin: 0 auto 16px auto;
  font-size: 0.9rem;
}

/* ==========================================================================
   Online Booking Hub Modal (Theme 2 Classic Desktop Design)
   ========================================================================== */
.online-booking-modal-card {
  width: min(880px, calc(100vw - 32px));
  max-height: min(90svh, 860px);
  background: var(--classic-frame-bg, #bcd4e6);
  border: 1.5px solid var(--classic-frame-border, #7d9cb8);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.online-booking-body {
  padding: 16px;
  overflow-y: auto;
  background: var(--classic-frame-bg, #bcd4e6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.online-booking-card {
  background: var(--theme-panel, #ffffff);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid var(--theme-border, #cad9e6);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.online-booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.online-booking-card-title,
.online-booking-card-heading {
  color: var(--theme-text, #21133d);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.online-booking-card-desc,
.online-booking-card-sub {
  color: var(--theme-quiet, #64748b);
  font-size: 0.82rem;
  margin: 0;
}

.online-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.online-status-badge.is-active {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.online-status-badge.is-paused {
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #64748b);
  border: 1px solid var(--theme-border, #cbd5e1);
}

.online-booking-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.online-booking-url-field {
  flex: 1;
  min-width: 240px;
  height: 38px;
  background: var(--theme-panel, #f8fafc);
  border: 1px solid var(--theme-border, #cbd5e1);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--theme-text, #1e293b);
}

.online-booking-action-btn {
  height: 38px;
  padding: 0 16px !important;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
  font-weight: 600;
  cursor: pointer;
}

.online-booking-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.online-booking-toggle-text {
  flex: 1;
  min-width: 240px;
}

.online-booking-toggle-heading {
  color: var(--theme-text, #21133d);
  font-size: 0.96rem;
  display: block;
  margin-bottom: 2px;
}

.online-booking-toggle-sub {
  color: var(--theme-quiet, #64748b);
  font-size: 0.82rem;
  margin: 0;
}

.online-booking-toggle-switch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 18px;
  background: var(--theme-panel, #f1f5f9);
  border: 1.5px solid var(--theme-border, #cbd5e1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 220px;
}

.online-booking-toggle-switch:hover {
  background: var(--theme-panel, #e2e8f0);
}

.online-booking-toggle-switch.is-active {
  background: var(--theme-panel, #eff6ff);
  border-color: #3b82f6;
}

.online-booking-toggle-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--theme-text, #1e293b);
}

.online-booking-toggle-switch.is-active .online-booking-toggle-title {
  color: #1d4ed8;
}

.online-booking-toggle-note {
  font-size: 0.76rem;
  color: var(--theme-quiet, #64748b);
  margin-top: 2px;
}

.online-booking-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.online-booking-meta-pill {
  display: inline-block;
  padding: 2px 10px;
  background: var(--theme-panel, #f1f5f9);
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--theme-quiet, #475569);
}

.online-booking-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.online-booking-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--theme-border, #cad9e6);
  background: var(--theme-panel, #f8fafc);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.online-booking-pill-btn:hover {
  border-color: var(--theme-border, #94a3b8);
  background: var(--theme-panel, #ffffff);
}

.online-booking-pill-btn.is-selected {
  background: var(--theme-panel, #eff6ff);
  border-color: #93c5fd;
}

.online-booking-pill-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--theme-text, #21133d);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.online-booking-pill-btn.is-selected .online-booking-pill-avatar {
  background: #2563eb;
}

.online-booking-pill-label {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--theme-text, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-booking-pill-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
}

.online-booking-pill-badge.badge-visible {
  background: #dcfce7;
  color: #15803d;
}

.online-booking-pill-badge.badge-hidden {
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #94a3b8);
}

.online-booking-weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.online-booking-day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--theme-border, #cad9e6);
  background: var(--theme-panel, #f8fafc);
  cursor: pointer;
  transition: all 0.15s ease;
}

.online-booking-day-btn:hover {
  border-color: var(--theme-border, #94a3b8);
}

.online-booking-day-btn.is-active {
  background: var(--theme-text, #21133d);
  border-color: #21133d;
  color: #ffffff;
}

.online-booking-day-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.online-booking-day-btn.is-active .online-booking-day-name {
  color: #ffffff;
}

.online-booking-day-status {
  font-size: 0.68rem;
  color: var(--theme-quiet, #64748b);
  margin-top: 2px;
}

.online-booking-day-btn.is-active .online-booking-day-status {
  color: #cbd5e1;
}

.online-booking-queue-card {
  background: var(--theme-panel, #f8fafc);
}

.online-booking-queue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.online-booking-queue-desc {
  color: var(--theme-quiet, #475569);
  font-size: 0.85rem;
  margin: 2px 0 0 0;
  font-weight: 500;
}

.online-booking-review-btn {
  font-weight: 600;
}

.online-booking-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--theme-panel, #ffffff);
  border-top: 1px solid var(--theme-border, #cad9e6);
}

/* Settings View Quick Links Bar */
.settings-online-link-bar {
  margin: 10px 0 14px 0;
  padding: 12px;
  background: var(--theme-panel, #f8fafc);
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 8px;
}

.settings-online-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.settings-online-link-row .settings-text-input {
  flex: 1;
  min-width: 220px;
}


