:root {
  --primary: #1E3A8A;
  --primary-light: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-surface: #EFF6FF;
  --primary-border: #BFDBFE;
  --navy: #1E3A8A;
  --accent: #EA580C;
  --accent-light: #FFF7ED;
  --accent-border: #FED7AA;
  --gastro: #EA580C;
  --gastro-light: #FFF7ED;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --success-border: #BBF7D0;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --bg: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-subtle: #CBD5E1;
  --sidebar-w: 260px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  display: flex;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* SIDEBAR - Executive Modern Dark Theme */
.sidebar {
  width: var(--sidebar-w);
  background: #0B132B;
  background: linear-gradient(180deg, #0B132B 0%, #0F172A 100%);
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: white;
  font-weight: 900;
  font-size: 15px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.brand-text h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.badge-role {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-nav {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  font-weight: 700;
}

.nav-item i {
  width: 17px;
  height: 17px;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.admin-user-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-user-pill .avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563EB, #0284C7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.admin-user-pill .name {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.admin-user-pill .email {
  font-size: 10.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.btn-logout {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
}

/* TOPBAR - Frosted Glass Luxury Header */
.topbar {
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 15;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.topbar-title h1 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text-main);
  line-height: 1.25;
}

.topbar-title .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.district-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s;
}

.district-filter:hover {
  border-color: #CBD5E1;
}

.district-filter select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xs);
  line-height: 1.3;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg,
.btn i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: white;
  border-color: #1D4ED8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

.btn-outline {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--primary-light);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--primary-surface);
  color: var(--primary);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: var(--radius-xs);
}

.btn-sm svg,
.btn-sm i {
  width: 13px;
  height: 13px;
}

/* CONTENT BODY */
.content-body {
  padding: 28px 32px;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* STATS GRID - Bento Metric Cards (Square / Stripe Style) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.stat-card:hover .stat-icon {
  transform: scale(1.05);
}

.icon-gastro { background: #FFF7ED; color: #EA580C; border: 1px solid #FED7AA; }
.icon-specials { background: #FEF3C7; color: #D97706; border: 1px solid #FDE68A; }
.icon-clubs { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.icon-stories { background: #FDF4FF; color: #C026D3; border: 1px solid #F5D0FE; }

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-content .label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-content h3 {
  font-size: 24px;
  font-weight: 900;
  margin: 3px 0 2px 0;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.stat-content .trend {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-content .trend.positive {
  color: var(--success);
}

/* PANELS - Clean Elevated Containers */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
}

.panel-header h2 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.panel-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compact-list {
  padding: 10px 20px;
}

.compact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.compact-item:last-child {
  border-bottom: none;
}

.compact-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compact-item-info h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.compact-item-info p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* DATA TABLE - High Quality Clean SaaS Table */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: #F8FAFC;
  padding: 13px 20px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 15px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-main);
  transition: background 0.15s;
}

.data-table tr:hover td {
  background: #F8FAFC;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* BADGES - Modern Soft Pill System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1.25;
}

.badge-success { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.badge-warning { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.badge-danger { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }
.badge-primary { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-district { background: #F1F5F9; color: #334155; font-weight: 700; border: 1px solid #E2E8F0; }

/* MCP PANEL */
.mcp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
}
.mcp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-sm);
}
.mcp-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--primary-light);
}
.mcp-card-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}
.feature-bullets {
  margin-top: 12px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-item {
  background: white;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tool-item code {
  color: var(--primary-light);
  font-weight: 800;
  font-size: 12.5px;
}
.tool-item span {
  font-size: 11.5px;
  color: var(--text-muted);
}
.code-box {
  margin: 0 24px 24px 24px;
  background: #0F172A;
  color: #38BDF8;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.code-header {
  background: #1E293B;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94A3B8;
  font-size: 12px;
}
.code-box pre {
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  overflow-x: auto;
}

/* FORM STYLES */
.form-container {
  padding: 24px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  color: #0F172A;
  background-color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.form-control:hover:not(:focus):not(:disabled) {
  border-color: #94A3B8;
}
.form-control:focus {
  border-color: #2563EB;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14), 0 1px 2px rgba(15, 23, 42, 0.05);
}
.form-control::placeholder {
  color: #94A3B8;
  font-weight: 400;
}
.form-control:disabled,
.form-control[readonly] {
  background-color: #F8FAFC;
  color: #64748B;
  border-color: #E2E8F0;
  cursor: not-allowed;
  box-shadow: none;
}

/* Custom Styled Select Dropdown (Chevron SVG) */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px;
  cursor: pointer;
}
select.form-control:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Modern File Upload Input (Square / Mobbin style) */
input[type="file"].form-control {
  padding: 6px 8px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  font-size: 12.5px;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
}
input[type="file"].form-control::file-selector-button {
  padding: 6px 14px;
  border-radius: 6px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  margin-right: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
input[type="file"].form-control:hover::file-selector-button {
  background: #DBEAFE;
  border-color: #93C5FD;
  color: #1E40AF;
}

/* Date & Time tabular numerals */
input[type="date"].form-control,
input[type="time"].form-control {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator:hover,
input[type="time"].form-control::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Textarea height & resize */
textarea.form-control {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

/* MODAL - Smooth Blur Backdrop & Pop Animation */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.18s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.open {
  display: flex;
}

.modal-dialog {
  background: #FFFFFF;
  width: 100%;
  max-width: 660px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-dialog.modal-dialog-lg {
  max-width: 780px;
}

.modal-dialog.modal-dialog-xl {
  max-width: 960px;
}

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

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
}

.modal-header h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  background: #FFFFFF;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
}

/* =====================================================================
   RESTAURANT HERO & MODERN GASTRO COCKPIT (SQUARE / TOAST / MOBBIN STYLE)
   ===================================================================== */
.restaurant-hero-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 28px;
}

.restaurant-hero-cover {
  width: 100%;
  height: 220px;
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #2563EB 100%);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .restaurant-hero-cover {
    height: 240px;
  }
}

.restaurant-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.restaurant-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.restaurant-hero-badges {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.restaurant-hero-body {
  padding: 0 32px 28px 32px;
  position: relative;
}

@media (max-width: 768px) {
  .restaurant-hero-body {
    padding: 0 20px 20px 20px;
  }
}

.restaurant-hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -52px;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.restaurant-avatar-large {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 4px solid #FFFFFF;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.22);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  font-size: 32px;
  font-weight: 900;
  flex-shrink: 0;
}

.restaurant-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.restaurant-hero-details {
  margin-top: 4px;
  margin-bottom: 22px;
}

.restaurant-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #DCFCE7;
  color: #15803D;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #BBF7D0;
}

.restaurant-hero-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #64748B;
}

.hero-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #DBEAFE;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
}

.hero-meta-item i {
  width: 15px;
  height: 15px;
  color: #64748B;
}

.restaurant-chips-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.hero-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.hero-info-chip:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.hero-info-chip i {
  width: 15px;
  height: 15px;
  color: #2563EB;
}

/* GASTRO QUICK ACTIONS & METRIC CARDS */
.gastro-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .gastro-quick-grid {
    grid-template-columns: 1fr;
  }
}

.quick-action-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.quick-card-orange {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
  border-color: #FED7AA;
}

.quick-card-blue {
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
  border-color: #BFDBFE;
}

/* MODERN FOOD MENU CARDS (Square Online / Shopify / Lieferando Web) */
.menu-section-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  margin-bottom: 28px;
  overflow: hidden;
  transition: all 0.15s;
}

.menu-section-header {
  padding: 18px 24px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-section-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dish-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.dish-card-item:hover {
  background: #F8FAFC;
}

.dish-card-item:last-child {
  border-bottom: none;
}

.dish-thumbnail-box {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dish-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-info-column {
  flex: 1;
  min-width: 0;
}

.dish-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.dish-title-text {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.dish-price-pill {
  font-size: 13.5px;
  font-weight: 900;
  color: #1E3A8A;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: -0.2px;
}

.dish-desc-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.4;
}

.dish-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.btn-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-close:hover {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #DC2626;
}
.btn-close svg,
.btn-close i {
  width: 18px;
  height: 18px;
}

/* AUTH & GATE STYLES */
.auth-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
}

.auth-card {
  background: white;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.auth-logo {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: white;
  font-weight: 900;
  font-size: 24px;
  padding: 12px 18px;
  border-radius: 14px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.auth-brand h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.auth-badge {
  display: inline-block;
  margin-top: 4px;
  background: var(--primary-surface);
  color: var(--primary-light);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
  margin-bottom: 22px;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-alert.error {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 12px;
}

/* Demo Picker */
.auth-demo-picker {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.demo-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
}
.demo-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.demo-chip:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
}
.demo-chip i { width: 14px; height: 14px; }
.chip-admin { border-left: 4px solid var(--primary-light); }
.chip-gastro { border-left: 4px solid var(--gastro); }
.chip-club { border-left: 4px solid var(--success); }
.chip-citizen { border-left: 4px solid #94A3B8; }

/* Citizen blocked */
.text-center { text-align: center; }
.blocked-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-surface);
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.blocked-icon i { width: 32px; height: 32px; }
.app-store-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}
.store-badge {
  background: #0F172A;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mt-4 { margin-top: 16px; }

/* App layout wrapper */
.app-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.btn-logout {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.2s;
}
.btn-logout:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}
.btn-logout i { width: 16px; height: 16px; }

/* Image Preview & Upload Dropzone (Square / Shopify / Mobbin Pattern) */
.img-preview-wrap {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 135px;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #CBD5E1;
  cursor: pointer;
  padding: 16px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  box-sizing: border-box;
}
.img-preview-wrap:hover {
  border-color: #2563EB;
  background: #F0F7FF;
}
.img-preview-wrap.drag-over {
  border-color: #1D4ED8;
  background: #EFF6FF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  transform: scale(1.01);
}
.img-preview-wrap img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.img-preview-wrap span[id$="Placeholder"],
.img-preview-wrap .dropzone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}
.img-preview-wrap .dropzone-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.img-preview-wrap:hover .dropzone-icon-wrap {
  transform: translateY(-2px);
  background: #DBEAFE;
}
.img-preview-wrap .dropzone-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  display: block;
}
.img-preview-wrap .dropzone-hint {
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  display: block;
}
.img-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.img-preview-wrap:hover .img-preview-overlay {
  opacity: 1;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: 9px;
  border: 1px solid #E2E8F0;
}
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  user-select: none;
}
.checkbox-inline input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #CBD5E1;
  accent-color: #2563EB;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tag-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}
.tag-veg { background: #DCFCE7; color: #15803D; }
.tag-vegan { background: #D1FAE5; color: #065F46; }
.tag-gf { background: #FEF3C7; color: #B45309; }
.tag-allergen { background: #F1F5F9; color: #475569; }

.action-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Allergen chips selector */
.allergen-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 8px;
}
.allergen-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  font-size: 11.5px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.allergen-chip:hover {
  background: #EEF2F6;
  border-color: #94A3B8;
}
.allergen-chip.selected {
  background: #1E3A8A !important;
  color: #FFFFFF !important;
  border: 1px solid #1E3A8A !important;
  box-shadow: 0 1px 4px rgba(30, 58, 138, 0.35) !important;
}
.allergen-chip.selected * {
  color: #FFFFFF !important;
}
.allergen-chip-code {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 800;
  font-size: 10.5px;
  color: #0F172A;
}
.allergen-chip.selected .allergen-chip-code {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

/* Allergen Legend list cards */
.allergen-legend-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #FAFAFA;
}
.allergen-legend-card.highlighted {
  background: #EFF6FF;
  border-color: #3B82F6;
}
.allergen-legend-code {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.allergen-legend-card.highlighted .allergen-legend-code {
  background: #2563EB;
}

/* Compliance & Additive Badges & Tabs */
.tag-additive {
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #CBD5E1;
}
.tag-prepacked {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #7DD3FC;
}
.tag-defrosted {
  background: #FEF3C7;
  color: #92400E;
}
.tag-alcohol {
  background: #FFFBEB;
  color: #B45309;
}

.compliance-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.compliance-tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease;
}
.compliance-tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.nutrition-input-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}
@media (max-width: 600px) {
  .nutrition-input-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compliance-banner {
  margin-top: 16px;
  padding: 14px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* =====================================================================
   ARCHITECTURAL FLOOR PLAN & ROOM DESIGNER (WEB)
   ===================================================================== */
.fp-workspace-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  width: 100%;
  height: 100%;
  min-height: 540px;
}
@media (max-width: 960px) {
  .fp-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.fp-canvas-column {
  padding: 16px 20px;
  background: #F1F5F9;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.fp-canvas-wrap {
  position: relative;
  flex: 1;
  background: #EAE4DC;
  border-radius: 14px;
  border: 1px solid #CBD5E1;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

#fpArchCanvas,
#inlineFpArchCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#fpArchCanvas:active,
#inlineFpArchCanvas:active {
  cursor: grabbing;
}

.fp-inspector-column {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  max-height: 72vh;
}

.fp-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.fp-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.fp-mode-tab:hover {
  color: var(--text-main);
  background: #E2E8F0;
}
.fp-mode-tab.active {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.fp-inspector-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fp-zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fp-zone-chip:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}
.fp-zone-chip.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.fp-section-card {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
}

.fp-section-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fp-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fp-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fp-pill-btn:hover {
  border-color: #64748B;
  background: #F8FAFC;
}
.fp-pill-btn.active {
  background: #1E3A8A !important;
  border-color: #1E3A8A !important;
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.35);
}

/* HIGH-CONTRAST BUTTONS FOR DARK CALENDAR TOP BAR */
.btn-dark-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #1E293B;
  border: 1px solid #475569;
  color: #FFFFFF !important;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}
.btn-dark-bar-btn:hover {
  background: #334155;
  border-color: #94A3B8;
  color: #FFFFFF !important;
}
.btn-dark-bar-btn.danger {
  background: #DC2626 !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
}
.btn-dark-bar-btn.danger:hover {
  background: #B91C1C !important;
}
.btn-dark-bar-btn.success {
  background: #15803D !important;
  border-color: #22C55E !important;
  color: #FFFFFF !important;
}
.btn-dark-bar-btn.success:hover {
  background: #166534 !important;
}
.btn-dark-bar-btn.info {
  background: #0284C7 !important;
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
}
.btn-dark-bar-btn.info:hover {
  background: #0369A1 !important;
}

/* STRUCTURED OPENING HOURS BUILDER STYLES */
.hours-builder-container {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.hours-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.hours-builder-header h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hours-day-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  transition: all 0.15s ease;
}
.hours-day-card.closed {
  background: #FEF2F2;
  border-color: #FECACA;
}
.hours-day-name {
  width: 90px;
  font-weight: 800;
  font-size: 12.5px;
  color: #0F172A;
}
.hours-day-toggle-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.hours-day-toggle-btn.open {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}
.hours-day-toggle-btn.closed {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}
.hours-shift-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.hours-time-input {
  padding: 4px 8px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #FFFFFF;
  color: #0F172A;
}
.hours-preview-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: #1E3A8A;
  line-height: 1.4;
}

.fp-template-card {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: #F8FAFC;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.fp-template-card:hover {
  border-color: #94A3B8;
}
.fp-template-card.active {
  background: #EFF6FF;
  border-color: #2563EB;
}

/* =====================================================================
   GANTT RESERVATION TIMELINE ENHANCEMENTS (OpenTable & Toast POS style)
   ===================================================================== */
.gantt-res-card {
  position: absolute;
  height: 42px;
  border-radius: 8px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18);
  z-index: 2;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gantt-res-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28) !important;
  z-index: 20 !important;
}

.gantt-res-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* On hover, micro-actions smoothly appear on the right side without choking text at rest */
.gantt-res-card:hover .gantt-res-actions {
  opacity: 1;
  pointer-events: auto;
}

.btn-gantt-micro {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  color: #0F172A !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.12s ease !important;
}

.btn-gantt-micro:hover {
  background: #F8FAFC !important;
  transform: scale(1.05);
}

.btn-gantt-micro.btn-gantt-free {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
}

.btn-gantt-micro.btn-gantt-free:hover {
  background: #DC2626 !important;
  border-color: #DC2626 !important;
}

/* Modal Tabs (Toast POS / Mobbin B2B pattern) */
.modal-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #F1F5F9;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.modal-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.modal-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 8px;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
  user-select: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.modal-tab-btn svg,
.modal-tab-btn i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.modal-tab-btn:hover:not(.active) {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.65);
}

.modal-tab-btn.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 640px) {
  .modal-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reservation Detail Modal cards */
.res-detail-header-card {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #FFFFFF;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-detail-stat {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 14px;
}

/* Gastro Master Data Enhancements */
.preset-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.preset-chip:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}

.preset-chip.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

.color-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.color-theme-pill .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.color-theme-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.color-theme-pill.active {
  border-color: currentColor;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.closed-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  font-size: 11.5px;
  font-weight: 700;
}

.closed-date-chip button {
  background: none;
  border: none;
  color: #DC2626;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}




