/* 2x2 Feature Grid — Vertical Modern Stack */
.menu-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.menu-quick-grid .menu-quick-tile {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.menu-quick-grid .menu-quick-tile:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.menu-quick-grid .menu-quick-tile:active {
  transform: scale(0.97);
}
.menu-quick-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.menu-quick-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.menu-quick-sub {
  font-size: 10.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.menu-quick-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* Category Sections & Sector Rows */
.menu-group-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.menu-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 6px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94A3B8;
}
.menu-group-count {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

/* Individual Sector Row (.sidebar-link) */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #E2E8F0;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border: 1px solid transparent;
  margin-bottom: 2px;
  user-select: none;
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}
html[dir="rtl"] .sidebar-link:hover {
  transform: translateX(-3px);
}
.sidebar-link:active {
  transform: scale(0.98);
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(139, 92, 246, 0.45);
  color: #FFF;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}
.sidebar-link-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.2s ease;
}
.sidebar-link:hover .sidebar-link-icon-box {
  transform: scale(1.08);
}
.sidebar-link-body {
  flex: 1;
  min-width: 0;
}
.sidebar-link-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.sidebar-link-desc {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.sidebar-link-tag {
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sidebar-link-chevron {
  color: #94A3B8;
  font-size: 14px;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}
.sidebar-link:hover .sidebar-link-chevron {
  opacity: 1;
  transform: translateX(2px);
}
html[dir="rtl"] .sidebar-link:hover .sidebar-link-chevron {
  transform: translateX(-2px);
}
.sidebar-section-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94A3B8;
  padding: 8px 10px 4px;
  margin-top: 4px;
}

/* Fixed Bottom Footer Bar */
.menu-fixed-footer {
  padding: 10px 16px calc(var(--safe-bottom) + 12px);
  background: rgba(8, 12, 26, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-bottom-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.menu-dock-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #CBD5E1;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.menu-dock-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.menu-dock-btn:active {
  transform: scale(0.94);
}
.menu-dock-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.menu-dock-icon {
  font-size: 16px;
}

.menu-sync-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.sync-text-status {
  font-weight: 800;
  color: #10B981;
}
.sync-text-latency {
  font-family: var(--font-mono);
  color: #94A3B8;
  font-size: 10px;
}
.sync-reload-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s ease;
}
.sync-reload-btn:hover {
  color: #FFF;
}
.admin-portal-link {
  color: #8B5CF6;
  text-decoration: none;
  font-weight: 900;
  font-size: 11px;
}
.admin-portal-link:hover {
  text-decoration: underline;
  color: #A855F7;
}

.sync-led-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  display: inline-block;
  animation: pulseLedSync 1.8s infinite ease-in-out;
}
@keyframes pulseLedSync {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10B981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* 10. ULTRA-LUXE SECTOR SUB-TABS & DOMAIN COMPONENTS */
.sector-subtabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sector-subtabs-scroll::-webkit-scrollbar {
  display: none;
}
.sector-subtab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--paper-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}
.sector-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}
.sector-subtab-btn:active {
  transform: scale(0.96);
}
.sector-subtab-btn.active {
  color: #FFF;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.2));
  border-color: var(--purple);
  box-shadow: 0 0 16px var(--purple-glow);
}
.sector-subtab-btn.active-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.2));
  border-color: var(--kr-green);
  box-shadow: 0 0 16px var(--kr-green-glow);
}
.sector-subtab-btn.active-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(249, 115, 22, 0.2));
  border-color: var(--amber);
  box-shadow: 0 0 16px var(--amber-glow);
}
.sector-subtab-btn.active-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.2));
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.sector-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.sector-metric-card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-card);
}
.sector-metric-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--paper-muted);
}
.sector-metric-val {
  font-size: 20px;
  font-weight: 900;
  color: #FFF;
}

/* Numpad & POS Keypad */
.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.numpad-key {
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #FFF;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.numpad-key:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.15);
}

/* KDS Kitchen Display System */
.kds-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.kds-card {
  background: rgba(14, 19, 38, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.kds-card.status-new {
  border-left: 4px solid var(--rose);
}
.kds-card.status-cooking {
  border-left: 4px solid var(--amber);
}
.kds-card.status-ready {
  border-left: 4px solid var(--kr-green);
}

/* Quick Sector Hub Tiles (Home Screen) */
.quick-sector-tile {
  user-select: none;
  -webkit-user-select: none;
}
.quick-sector-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6) !important;
}
.quick-sector-tile:active {
  transform: scale(0.97);
}
